From: Brion Vibber Date: Tue, 3 Jun 2008 23:36:48 +0000 (+0000) Subject: Revert r35812 (link icons for RTL). X-Git-Tag: 1.31.0-rc.0~47194 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=fef6a3961a371ef2b13ce03f6fb1aebac48bf57c;p=lhc%2Fweb%2Fwiklou.git Revert r35812 (link icons for RTL). Icons overlap text in Firefox 2 and IE 6 (seems worse in IE); haven't tested other browsers extensively yet. --- diff --git a/skins/monobook/main.css b/skins/monobook/main.css index c615f27673..249898aeca 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -551,32 +551,32 @@ div.townBox dl dd { #bodyContent a.external, #bodyContent a[href ^="gopher://"] { background: url(external.png) center right no-repeat; - padding: 0 13px; + padding-right: 13px; } #bodyContent a[href ^="https://"], .link-https { background: url(lock_icon.gif) center right no-repeat; - padding: 0 16px; + padding-right: 16px; } #bodyContent a[href ^="mailto:"], .link-mailto { background: url(mail_icon.gif) center right no-repeat; - padding: 0 18px; + padding-right: 18px; } #bodyContent a[href ^="news://"] { background: url(news_icon.png) center right no-repeat; - padding: 0 18px; + padding-right: 18px; } #bodyContent a[href ^="ftp://"], .link-ftp { background: url(file_icon.gif) center right no-repeat; - padding: 0 18px; + padding-right: 18px; } #bodyContent a[href ^="irc://"], #bodyContent a.extiw[href ^="irc://"], .link-irc { background: url(discussionitem_icon.gif) center right no-repeat; - padding: 0 18px; + padding-right: 18px; } #bodyContent a.external[href $=".ogg"], #bodyContent a.external[href $=".OGG"], #bodyContent a.external[href $=".mid"], #bodyContent a.external[href $=".MID"], @@ -586,7 +586,7 @@ div.townBox dl dd { #bodyContent a.external[href $=".wma"], #bodyContent a.external[href $=".WMA"], .link-audio { background: url("audio.png") center right no-repeat; - padding: 0 13px; + padding-right: 13px; } #bodyContent a.external[href $=".ogm"], #bodyContent a.external[href $=".OGM"], #bodyContent a.external[href $=".avi"], #bodyContent a.external[href $=".AVI"], @@ -594,24 +594,14 @@ div.townBox dl dd { #bodyContent a.external[href $=".mpg"], #bodyContent a.external[href $=".MPG"], .link-video { background: url("video.png") center right no-repeat; - padding: 0 13px; + padding-right: 13px; } #bodyContent a.external[href $=".pdf"], #bodyContent a.external[href $=".PDF"], #bodyContent a.external[href *=".pdf#"], #bodyContent a.external[href *=".PDF#"], #bodyContent a.external[href *=".pdf?"], #bodyContent a.external[href *=".PDF?"], .link-document { background: url("document.png") center right no-repeat; - padding: 0 12px; -} - -/* for rtl wikis */ -.rtl #bodyContent a.external { - background-position: left; - padding-right: 0; -} -/* correction for ltr wikis */ -.ltr #bodyContent a.external { - padding-left: 0; + padding-right: 12px; } /* disable interwiki styling */ diff --git a/skins/monobook/rtl.css b/skins/monobook/rtl.css index 700f8491d6..73bc1451f7 100644 --- a/skins/monobook/rtl.css +++ b/skins/monobook/rtl.css @@ -156,7 +156,11 @@ li#ca-watch { #p-personal li { float: left; } - +/* Fix link icons */ +.external { + padding: 0 !important; + background: none !important; +} #footer { clear: both; }