MediaWiki:Common.css: Difference between revisions
Content deleted Content added
Psephomancy (talk | contribs) reorder to be similar to Wikipedia's |
Psephomancy (talk | contribs) simpler link selector from Wikipedia https://en.wikipedia.org/w/index.php?title=MediaWiki%3ACommon.css&diff=prev&oldid=876845280 https://en.wikipedia.org/w/index.php?title=MediaWiki_talk:Common.css&oldid=876845530#PDF_rules_(pt_1) |
||
Line 26: | Line 26: | ||
/* Change the external link icon to an Adobe icon for all PDF files */ |
/* Change the external link icon to an Adobe icon for all PDF files */ |
||
.mw-parser-output a[href$=".pdf"].external, |
|||
.mw-parser-output a[href*=".pdf?"].external, |
|||
.mw-parser-output a[href*=".pdf#"].external, |
|||
.mw-parser-output a[href$=".PDF"].external, |
|||
.mw-parser-output a[href*=".PDF?"].external, |
|||
.mw-parser-output a[href*=".PDF#"].external { |
|||
div#mw_content a[href$=".pdf"].external, |
|||
div#mw_content a[href*=".pdf?"].external, |
|||
div#mw_content a[href*=".pdf#"].external, |
|||
div#mw_content a[href$=".PDF"].external, |
|||
div#mw_content a[href*=".PDF?"].external, |
|||
div#mw_content a[href*=".PDF#"].external { |
|||
/* Host this image locally? */ |
/* Host this image locally? */ |
||
background: url("https://upload.wikimedia.org/wikipedia/commons/d/d6/Icons-mini-file_acrobat.png") no-repeat right; |
background: url("https://upload.wikimedia.org/wikipedia/commons/d/d6/Icons-mini-file_acrobat.png") no-repeat right; |
||
Line 43: | Line 37: | ||
padding-right: 18px; |
padding-right: 18px; |
||
} |
} |
||
/* Add an icon to Wikipedia interwiki links */ |
/* Add an icon to Wikipedia interwiki links */ |
||
.mw-parser-output a[href*="wikipedia.org/"].extiw { |
|||
div#mw_content a[href*="wikipedia.org/"].extiw { |
|||
/* Host this image locally? */ |
/* Host this image locally? */ |
||
background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/Wikipedia-logo-v2.svg/12px-Wikipedia-logo-v2.svg.png) no-repeat right; |
background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/Wikipedia-logo-v2.svg/12px-Wikipedia-logo-v2.svg.png) no-repeat right; |
||
Line 56: | Line 47: | ||
/* Add an icon to Wiktionary interwiki links */ |
/* Add an icon to Wiktionary interwiki links */ |
||
.mw-parser-output a[href*="wiktionary.org/"].extiw { |
|||
div#mw_content a[href*="wiktionary.org/"].extiw { |
|||
/* Host this image locally? */ |
/* Host this image locally? */ |
||
background: url(https://upload.wikimedia.org/wikipedia/commons/2/26/Small_icon_wiktionary.PNG) no-repeat right; |
background: url(https://upload.wikimedia.org/wikipedia/commons/2/26/Small_icon_wiktionary.PNG) no-repeat right; |