Remove semantically incorrect wrapper table from toc and replace it with an inline...
authorLeo Koppelkamm <diebuche@users.mediawiki.org>
Wed, 27 Jul 2011 13:24:19 +0000 (13:24 +0000)
committerLeo Koppelkamm <diebuche@users.mediawiki.org>
Wed, 27 Jul 2011 13:24:19 +0000 (13:24 +0000)
includes/Linker.php
skins/common/shared.css
skins/modern/main.css
skins/monobook/main.css
skins/vector/screen.css

index f724ca6..525a6fa 100644 (file)
@@ -1456,10 +1456,10 @@ class Linker {
        static function tocList( $toc, $lang = false ) {
                $title = wfMsgExt( 'toc', array( 'language' => $lang, 'escape' ) );
                return
-                  '<table id="toc" class="toc"><tr><td>'
+                  '<div id="toc" class="toc">'
                 . '<div id="toctitle"><h2>' . $title . "</h2></div>\n"
                 . $toc
-                . "</ul>\n</td></tr></table>\n";
+                . "</ul>\n</div>\n";
        }
 
        /**
index f01b4b4..b0d0689 100644 (file)
@@ -783,4 +783,14 @@ div.floatright, table.floatright, div.floatleft, table.floatleft {
 }
 
 /* bug 12205 */
-#mw-credits a { unicode-bidi: embed; }
\ No newline at end of file
+#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
index 49af0b9..5c6f67a 100644 (file)
@@ -556,11 +556,6 @@ img.thumbborder {
        border: solid 1px #bbb;
 }
 
-#toc tr, #toc td {
-       margin: 0;
-       padding: 0;
-}
-
 #toctitle {
        border-bottom: solid 1px #3c78b5;
        background-color: #ddd;
@@ -587,7 +582,7 @@ img.thumbborder {
        list-style-type: none;
        list-style-image: none;
        margin: 0 1em;
-       padding-left: 0;
+       padding: 0;
        text-align: left;
 }
 
index 75b57e3..0fcb478 100644 (file)
@@ -348,8 +348,7 @@ table.small {
 .toc ul {
        list-style-type: none;
        list-style-image: none;
-       margin-left: 0;
-       padding-left: 0;
+       padding: 0 .4em;
        text-align: left;
 }
 #toc ul ul,
index 8f611b7..ba604b4 100644 (file)
@@ -884,8 +884,7 @@ select {
 .toc ul {
        list-style-type: none;
        list-style-image: none;
-       margin-left: 0;
-       padding-left: 0;
+       padding: 0 .4em;
        text-align: left;
 }
 #toc ul ul,