From: Aryeh Gregor Date: Sun, 12 Nov 2006 22:35:18 +0000 (+0000) Subject: (bug 1578) Add different icons for external links to audio, video, or PDF in Monobook... X-Git-Tag: 1.31.0-rc.0~55202 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=e5d782c9ecc846191fb4a9966f2e58bc03d5a6e4;p=lhc%2Fweb%2Fwiklou.git (bug 1578) Add different icons for external links to audio, video, or PDF in Monobook using CSS attribute selectors. Icons by flamurai . --- 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 0000000000..1c56bdc8d8 Binary files /dev/null and b/skins/monobook/audio.png differ diff --git a/skins/monobook/document.png b/skins/monobook/document.png new file mode 100644 index 0000000000..b48138e90e Binary files /dev/null and b/skins/monobook/document.png differ 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 0000000000..38103dac28 Binary files /dev/null and b/skins/monobook/video.png differ