TOC: Separate columns for tocnumber and toctext
authorFomafix <fomafix@googlemail.com>
Fri, 13 Mar 2015 07:49:24 +0000 (07:49 +0000)
committerJdlrobson <jrobson@wikimedia.org>
Tue, 3 Nov 2015 01:26:25 +0000 (01:26 +0000)
IE 7 and lower ignores these definitions and shows the TOC as before.

Bug: T92481
Change-Id: Ibed5f02f04e63a4152109ddf9c2a23f4e45880ca

resources/src/mediawiki.legacy/commonPrint.css
resources/src/mediawiki.skinning/content.css

index 77fa753..8807616 100644 (file)
@@ -126,6 +126,20 @@ pre, .mw-code {
        *display: inline;
 }
 
+/* Separate columns for tocnumber and toctext */
+/* Ignored by IE7 and lower */
+.tocnumber,
+.toctext {
+       display: table-cell;
+}
+
+/* Space between the columns for tocnumber and toctext */
+/* Ignored by IE7 and lower */
+.tocnumber:after {
+       content: "";
+       padding-right: 0.5em;
+}
+
 #footer {
        background: white;
        color: black;
index 454fe58..a5dd692 100644 (file)
@@ -87,6 +87,20 @@ table.toc td {
        font-size: 94%;
 }
 
+/* Separate columns for tocnumber and toctext */
+/* Ignored by IE7 and lower */
+.tocnumber,
+.toctext {
+       display: table-cell;
+}
+
+/* Space between the columns for tocnumber and toctext */
+/* Ignored by IE7 and lower */
+.tocnumber:after {
+       content: "";
+       padding-right: 0.5em;
+}
+
 /* Warning */
 .mw-warning {
        margin-left: 50px;