Please update the parser tests and reapply.
static function tocList( $toc, $lang = false ) {
$title = wfMsgExt( 'toc', array( 'language' => $lang, 'escape' ) );
return
- '<div id="toc" class="toc">'
+ '<table id="toc" class="toc"><tr><td>'
. '<div id="toctitle"><h2>' . $title . "</h2></div>\n"
. $toc
- . "</ul>\n</div>\n";
+ . "</ul>\n</td></tr></table>\n";
}
/**
}
/* bug 12205 */
-#mw-credits a {
- unicode-bidi: embed;
-}
-
-/* Standard toc */
-#toc {
- display: inline-block;
- /* IE6+7 workaround */
- zoom: 1;
- display: inline !ie;
-}
\ No newline at end of file
+#mw-credits a { unicode-bidi: embed; }
\ No newline at end of file
border: solid 1px #bbb;
}
+#toc tr, #toc td {
+ margin: 0;
+ padding: 0;
+}
+
#toctitle {
border-bottom: solid 1px #3c78b5;
background-color: #ddd;
list-style-type: none;
list-style-image: none;
margin: 0 1em;
- padding: 0;
+ padding-left: 0;
text-align: left;
}
.toc ul {
list-style-type: none;
list-style-image: none;
- padding: 0 .4em;
+ margin-left: 0;
+ padding-left: 0;
text-align: left;
}
#toc ul ul,
.toc ul {
list-style-type: none;
list-style-image: none;
- padding: 0 .4em;
+ margin-left: 0;
+ padding-left: 0;
text-align: left;
}
#toc ul ul,