From c7894deb8aab62f514afed5180e6fc3c91af39af Mon Sep 17 00:00:00 2001 From: Fomafix Date: Fri, 13 Mar 2015 07:49:24 +0000 Subject: [PATCH] TOC: Separate columns for tocnumber and toctext IE 7 and lower ignores these definitions and shows the TOC as before. Bug: T92481 Change-Id: Ibed5f02f04e63a4152109ddf9c2a23f4e45880ca --- resources/src/mediawiki.legacy/commonPrint.css | 14 ++++++++++++++ resources/src/mediawiki.skinning/content.css | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/resources/src/mediawiki.legacy/commonPrint.css b/resources/src/mediawiki.legacy/commonPrint.css index 77fa753482..8807616eba 100644 --- a/resources/src/mediawiki.legacy/commonPrint.css +++ b/resources/src/mediawiki.legacy/commonPrint.css @@ -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; diff --git a/resources/src/mediawiki.skinning/content.css b/resources/src/mediawiki.skinning/content.css index 454fe58dc4..a5dd692965 100644 --- a/resources/src/mediawiki.skinning/content.css +++ b/resources/src/mediawiki.skinning/content.css @@ -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; -- 2.20.1