summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/doc/DocGenerator.scala40
-rw-r--r--src/compiler/scala/tools/nsc/doc/style.css12
2 files changed, 25 insertions, 27 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala
index 54f8b0b5b9..2e3313cec1 100644
--- a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala
+++ b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala
@@ -201,20 +201,20 @@ abstract class DocGenerator extends Models {
val path = "modules"
val title = "List of all packages"
def modules: TreeMap[String, ModuleClassSymbol]
- def body: NodeSeq = {
- val x = doctitle concat
+ def body: NodeSeq =
+ <div>
+ {doctitle}
<a href="all-classes.html" target={classesFrame} onclick="resetKinds();">{"All objects and classes"}</a>
- val y = <p/><b>Packages</b>
- <table class="list" summary="">
- <tr><td style="white-space:nowrap;">
- { {
- for (val top <- modules.elements.toList) yield
- br(<a href={urlFor(top._2)} target={classesFrame} onclick="resetKinds();">{top._2.fullNameString('.')}</a>)
- } }
- </td></tr>
- </table>;
- x.concat(y)
- }
+ </div>
+ <div class="kinds">
+ Packages
+ </div>
+ <ul class="list">
+ { {
+ for (val top <- modules.elements.toList) yield
+ <li><a href={urlFor(top._2)} target={classesFrame} onclick="resetKinds();">{top._2.fullNameString('.')}</a></li>
+ } }
+ </ul>;
}
abstract class ListModuleContentFrame extends Frame {
@@ -267,14 +267,12 @@ abstract class DocGenerator extends Models {
<div id={pluralFor(kind)} class="kinds">
{Text(pluralFor(kind))}
</div>
- <table class="list" summary="">
- <tr><td style="white-space:nowrap;">
- { {
- for (val mmbr <- classes(kind).toList) yield
- br(urlFor(mmbr.tree, contentFrame));
- } }
- </td></tr>
- </table>
+ <ul class="list">
+ { {
+ for (val mmbr <- classes(kind).toList) yield
+ <li>{urlFor(mmbr.tree, contentFrame)}</li>
+ } }
+ </ul>
} } }</div>;
nav.concat(body)
diff --git a/src/compiler/scala/tools/nsc/doc/style.css b/src/compiler/scala/tools/nsc/doc/style.css
index 2e07756e41..1a864699d2 100644
--- a/src/compiler/scala/tools/nsc/doc/style.css
+++ b/src/compiler/scala/tools/nsc/doc/style.css
@@ -96,12 +96,6 @@ table.navigation {
font-family: Arial,Helvetica,Sans-Serif;
}
-table.list {
- border-collapse: collapse;
- border-style: none;
- width: 100%;
-}
-
td.inherited-members {
border-top: 2px inset #888888;
border-right: 0px;
@@ -141,3 +135,9 @@ td.signature {
width: 90%;
}
+ul.list {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+