From e5d782c9ecc846191fb4a9966f2e58bc03d5a6e4 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Sun, 12 Nov 2006 22:35:18 +0000 Subject: [PATCH] (bug 1578) Add different icons for external links to audio, video, or PDF in Monobook using CSS attribute selectors. Icons by flamurai . --- RELEASE-NOTES | 2 ++ includes/DefaultSettings.php | 2 +- skins/monobook/audio.png | Bin 0 -> 312 bytes skins/monobook/document.png | Bin 0 -> 270 bytes skins/monobook/main.css | 25 +++++++++++++++++++++++++ skins/monobook/video.png | Bin 0 -> 215 bytes 6 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 skins/monobook/audio.png create mode 100644 skins/monobook/document.png create mode 100644 skins/monobook/video.png diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1e0e7fea78..95ca9f8d91 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -179,6 +179,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6440) Updated indexes to improve backlinking queries (links, templates, images) * Switched 'anon-only' block mode to default for IP blocks * (bug 3687) Add distinct heading for media files in category display. +* (bug 1578) Add different icons for external links to audio, video, or PDF in + Monobook. == Languages updated == diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 5157c98d92..4ec38c7186 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1037,7 +1037,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '26'; +$wgStyleVersion = '27'; # Server-side caching: diff --git a/skins/monobook/audio.png b/skins/monobook/audio.png new file mode 100644 index 0000000000000000000000000000000000000000..1c56bdc8d8bcef5c6b1a9f588462dd622fe911c7 GIT binary patch literal 312 zcmeAS@N?(olHy`uVBq!ia0vp^+(695!3-or^+GlRDVB6cUq=Rp^(V|(yIunMk|nMY zCBgY=CFO}lsSJ)O`AMk?p1FzXsX?iUDV2pMQ*D5X>;rs4T${K4Kl9-KtV93f=l_qM z`~U5i|7*|v|NZy>)A#?U?EgRa$p5|9|2J*<@7VkQ*@ypSYyYP${$Ic8>Hq)#8Pd)G z$vx|pdw@oXmIV0)1GyN0LHlOyE1-fnPZ!6Kid#tnj7*M+0-8($4m=6V4CL93?X4Xc z3^};CxVSlsH*WZ3#Ka=dykWzJ2@^JSFi5NO10@+E70iU0w=*~}C~jtC;)vu0GG4QC lD5MxOGIcPX)N5d1W|$Jmw(?|p<0PO>44$rjF6*2UngG5OfRX?J literal 0 HcmV?d00001 diff --git a/skins/monobook/document.png b/skins/monobook/document.png new file mode 100644 index 0000000000000000000000000000000000000000..b48138e90e81ea81c473287bbe07e0078d9211d4 GIT binary patch literal 270 zcmeAS@N?(olHy`uVBq!ia0vp^96-#)!3-q#Nxt6%q*&4&eH|GX)}JtE?Rp91OP07s zlmzFem6RtIr7}3C*qlmz(&gG8Z#LFoRub3pM3PZ!6Kid#t! zn3&SU^70xOk{&#I^5jWU!b3I=1vb5~vNAn2H!+ZK(&GmVCz)6TB3kCooyx7ya6m~$ yCMSl0kwu)5LtzJp14HB1W*-KSCJhD-1BRTrOpOPNYCZw&VDNPHb6Mw<&;$VcA7>5# literal 0 HcmV?d00001 diff --git a/skins/monobook/main.css b/skins/monobook/main.css index 8c065b240c..a63508cd27 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -610,6 +610,31 @@ span.diffchange { background: url(discussionitem_icon.gif) center right no-repeat; padding-right: 18px; } +#bodyContent a.external[href $=".ogg"], #bodyContent a.external[href $=".OGG"], +#bodyContent a.external[href $=".mid"], #bodyContent a.external[href $=".MID"], +#bodyContent a.external[href $=".midi"], #bodyContent a.external[href $=".MIDI"], +#bodyContent a.external[href $=".mp3"], #bodyContent a.external[href $=".MP3"], +#bodyContent a.external[href $=".wav"], #bodyContent a.external[href $=".WAV"], +#bodyContent a.external[href $=".wma"], #bodyContent a.external[href $=".WMA"], +.link-audio { + background: url("audio.png") center right no-repeat; + padding-right: 13px; +} +#bodyContent a.external[href $=".ogm"], #bodyContent a.external[href $=".OGM"], +#bodyContent a.external[href $=".avi"], #bodyContent a.external[href $=".AVI"], +#bodyContent a.external[href $=".mpeg"], #bodyContent a.external[href $=".MPEG"], +#bodyContent a.external[href $=".mpg"], #bodyContent a.external[href $=".MPG"], +#bodyContent a.external[href $=".swf"], #bodyContent a.external[href $=".SWF"], +.link-video { + background: url("video.png") center right no-repeat; + padding-right: 13px; +} +#bodyContent a.external[href $=".pdf"], #bodyContent a.external[href $=".PDF"], +.link-document { + background: url("document.png") center right no-repeat; + padding-right: 12px; +} + /* disable interwiki styling */ #bodyContent a.extiw, #bodyContent a.extiw:active { diff --git a/skins/monobook/video.png b/skins/monobook/video.png new file mode 100644 index 0000000000000000000000000000000000000000..38103dac285e8dd202a60c43e2be1a2f5a077aa5 GIT binary patch literal 215 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2VGmzZ%#=aj&v7|ftIx;YR|DNig)WpGT%PfAtr%uP&B4N6T+sVqF1Y6Dax6yOu$dgj5`O&32Hw_ZzI{NVrp z{|sqo_KP<917*EET^vIyZY3q8rKYANCZ?pOvT-P|rLn1nDI_E%fY>b>4h)ShkqrzQ zTmlXrix?PNmWU}dOmJaj;_%dUU{LI2ViA}W)xf~a;FiniygTskTcEKFp00i_>zopr E054NO8~^|S literal 0 HcmV?d00001 -- 2.20.1