Merge "TOC: Restore missing underlines in Firefox"
[lhc/web/wiklou.git] / resources / src / mediawiki.skinning / content.css
index 454fe58..4399f3e 100644 (file)
@@ -87,6 +87,27 @@ table.toc td {
        font-size: 94%;
 }
 
+/* Separate columns for tocnumber and toctext */
+/* Ignored by IE7 and lower */
+.tocnumber,
+.toctext {
+       display: table-cell;
+       /*
+       Text decorations are not propagated to the contents of inline blocks and inline tables,
+       according to <http://www.w3.org/TR/css-text-decor-3/#line-decoration>, and 'display: table-cell'
+       generates an inline table when used without any parent table-rows and tables.
+       */
+       text-decoration: inherit;
+}
+
+/* Space between the columns for tocnumber and toctext */
+/* Ignored by IE7 and lower */
+.tocnumber:after {
+       content: "";
+       display: inline-block;
+       width: 0.5em;
+}
+
 /* Warning */
 .mw-warning {
        margin-left: 50px;