From 06ceb32d7622eb34f08b8cac5f2273842f5ac6b7 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Tue, 20 Jul 2010 23:47:54 +0000 Subject: [PATCH] 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. --- includes/DefaultSettings.php | 2 +- skins/vector/main-ltr.css | 6 ++++-- skins/vector/main-rtl.css | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) 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); -- 2.20.1