From: Mohamed Magdy Date: Thu, 29 May 2008 22:13:23 +0000 (+0000) Subject: Enable external link icon again on RTL wikis after correcting its behavior. Correct... X-Git-Tag: 1.31.0-rc.0~47294 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=2f0394c3d6ad544f606907cfc260fec78f164179;p=lhc%2Fweb%2Fwiklou.git Enable external link icon again on RTL wikis after correcting its behavior. Correct the other link icons too (by mirroring its LTR code). --- diff --git a/skins/monobook/main.css b/skins/monobook/main.css index 249898aeca..4c0d0e5a1e 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -603,6 +603,70 @@ div.townBox dl dd { background: url("document.png") center right no-repeat; padding-right: 12px; } +/* for rtl wikis */ +.rtl #bodyContent a.external, +.rtl #bodyContent a[href ^="gopher://"] { + background: url(external.png) center left no-repeat; + padding-right: 0px; + padding-left: 13px; +} +.rtl #bodyContent a[href ^="https://"], +.link-https { + background: url(lock_icon.gif) center left no-repeat; + padding-right: 0px; + padding-left: 16px; +} +.rtl #bodyContent a[href ^="mailto:"], +.link-mailto { + background: url(mail_icon.gif) center left no-repeat; + padding-right: 0px; + padding-left: 18px; +} +.rtl #bodyContent a[href ^="news://"] { + background: url(news_icon.png) center left no-repeat; + padding-right: 0px; + padding-left: 18px; +} +.rtl #bodyContent a[href ^="ftp://"], +.link-ftp { + background: url(file_icon.gif) center left no-repeat; + padding-right: 0px; + padding-left: 18px; +} +.rtl #bodyContent a[href ^="irc://"], +.link-irc { + background: url(discussionitem_icon.gif) center left no-repeat; + padding-right: 0px; + padding-left: 18px; +} +.rtl #bodyContent a.external[href $=".ogg"], .rtl #bodyContent a.external[href $=".OGG"], +.rtl #bodyContent a.external[href $=".mid"], .rtl #bodyContent a.external[href $=".MID"], +.rtl #bodyContent a.external[href $=".midi"], .rtl #bodyContent a.external[href $=".MIDI"], +.rtl #bodyContent a.external[href $=".mp3"], .rtl #bodyContent a.external[href $=".MP3"], +.rtl #bodyContent a.external[href $=".wav"], .rtl #bodyContent a.external[href $=".WAV"], +.rtl #bodyContent a.external[href $=".wma"], .rtl #bodyContent a.external[href $=".WMA"], +.link-audio { + background: url("audio.png") center left no-repeat; + padding-right: 0px; + padding-left: 13px; +} +.rtl #bodyContent a.external[href $=".ogm"], .rtl #bodyContent a.external[href $=".OGM"], +.rtl #bodyContent a.external[href $=".avi"], .rtl #bodyContent a.external[href $=".AVI"], +.rtl #bodyContent a.external[href $=".mpeg"], .rtl #bodyContent a.external[href $=".MPEG"], +.rtl #bodyContent a.external[href $=".mpg"], .rtl #bodyContent a.external[href $=".MPG"], +.link-video { + background: url("video.png") center left no-repeat; + padding-right: 0px; + padding-left: 13px; +} +.rtl #bodyContent a.external[href $=".pdf"], .rtl #bodyContent a.external[href $=".PDF"], +.rtl #bodyContent a.external[href *=".pdf#"], .rtl #bodyContent a.external[href *=".PDF#"], +.rtl #bodyContent a.external[href *=".pdf?"], .rtl #bodyContent a.external[href *=".PDF?"], +.link-document { + background: url("document.png") center left no-repeat; + padding-right: 0px; + padding-left: 12px; +} /* disable interwiki styling */ #bodyContent a.extiw, diff --git a/skins/monobook/rtl.css b/skins/monobook/rtl.css index 73bc1451f7..700f8491d6 100644 --- a/skins/monobook/rtl.css +++ b/skins/monobook/rtl.css @@ -156,11 +156,7 @@ li#ca-watch { #p-personal li { float: left; } -/* Fix link icons */ -.external { - padding: 0 !important; - background: none !important; -} + #footer { clear: both; }