TOC: Use padding instead of inline-block for space
authorFomafix <fomafix@googlemail.com>
Sat, 13 Feb 2016 20:33:01 +0000 (20:33 +0000)
committer[[mw:User:Fomafix]] <gerritpatchuploader@gmail.com>
Sat, 13 Feb 2016 20:33:01 +0000 (20:33 +0000)
commit57cf8f26b2965e3b307253d992c683b3b3428f9a
tree14aaf74d5300d6509b62a6b45b467a316625d402
parent179017976f0e7c4e634c806dee9ac51b84e830b2
TOC: Use padding instead of inline-block for space

The padding does not get reduced on table cell size adaption. See T126857.

The padding is also visible for IE7 and lower.
c7894deb used an inline-block because it get ignored by IE7 and lower.
Now the gap between tocnummber and toctext is 0.5em + one space for IE7 and lower.
This is acceptable.

The additional CSS selectors are necessary to get the padding on the correct side.
* On Special:EditWatchlist and
* On content pages with a user interface language with different direction.

Bug: T126857
Change-Id: I61e3835f28cd65152cf7920a17e393dc68b76e41
resources/src/mediawiki.legacy/commonPrint.css
resources/src/mediawiki.skinning/content.css