From: Trevor Parscal Date: Tue, 20 Jul 2010 23:47:54 +0000 (+0000) Subject: This improves on the CSS hack used in r69317 - which worked fine but in some crazy... X-Git-Tag: 1.31.0-rc.0~36035 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=06ceb32d7622eb34f08b8cac5f2273842f5ac6b7;p=lhc%2Fweb%2Fwiklou.git This improves on the CSS hack used in r69317 - which worked fine but in some crazy extreme hypothetical case could end up showing the text. --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index ddab4111c6..893251d4e8 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1547,7 +1547,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches do not keep obsolete copies of global * styles. */ -$wgStyleVersion = '298'; +$wgStyleVersion = '299'; /** * This will cache static pages for non-logged-in users to reduce diff --git a/skins/vector/main-ltr.css b/skins/vector/main-ltr.css index 180dc9a9c3..e334464bf8 100644 --- a/skins/vector/main-ltr.css +++ b/skins/vector/main-ltr.css @@ -1111,8 +1111,10 @@ div#bodyContent { outline: none; display: block; width: 26px; - height: 3.1em; - text-indent: -9999px; + /* This hides the text but shows the background image */ + padding-top: 3.1em; + height: 0; + overflow: hidden; } #ca-unwatch.icon a { background-image: url(images/watch-icons.png?1); diff --git a/skins/vector/main-rtl.css b/skins/vector/main-rtl.css index 22f2ea7023..f1de16ebc4 100644 --- a/skins/vector/main-rtl.css +++ b/skins/vector/main-rtl.css @@ -1111,8 +1111,10 @@ div#bodyContent { outline: none; display: block; width: 26px; - height: 3.1em; - text-indent: -9999px; + /* This hides the text but shows the background image */ + padding-top: 3.1em; + height: 0; + overflow: hidden; } #ca-unwatch.icon a { background-image: url(images/watch-icons.png?1);