diff options
author | michelou <michelou@epfl.ch> | 2006-12-02 08:53:25 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-12-02 08:53:25 +0000 |
commit | 6c347e39718c4be48de5679a88896c311ff245f2 (patch) | |
tree | 87217e845d3513b20c57ec8d30b89113bb302b52 | |
parent | 4cb43c77880464a629fd8f8687692d7824de6285 (diff) | |
download | scala-6c347e39718c4be48de5679a88896c311ff245f2.tar.gz scala-6c347e39718c4be48de5679a88896c311ff245f2.tar.bz2 scala-6c347e39718c4be48de5679a88896c311ff245f2.zip |
replaced tables by lists in generated API docum...
replaced tables by lists in generated API documentation
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/DocGenerator.scala | 40 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/style.css | 12 |
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; +} + |