MediaWiki:Common.css: Difference between revisions
Undo revision 3793 by Manomow (talk)
No edit summary |
|||
| Line 1: | Line 1: | ||
/* | /* Default styling for HTML elements */ | ||
dfn { | |||
font-style: inherit; | font-style: inherit; /* Reset default styling for <dfn> */ | ||
} | } | ||
q:before, | |||
q:after { | |||
q { | content: '"'; /* Consistent quote marks for <q> */ | ||
/* Consistent | |||
} | } | ||
| Line 37: | Line 17: | ||
body.page-Main_Page #mp-topbanner { | body.page-Main_Page #mp-topbanner { | ||
clear: both; | clear: both; | ||
} | } | ||
| Line 51: | Line 25: | ||
} | } | ||
/* | /* Highlight data points in the info action if specified in the URL */ | ||
body.action-info :target { | |||
background: #DEF; | |||
body.action-info | |||
background | |||
} | } | ||
| Line 89: | Line 43: | ||
font-size: 100%; /* Reset font-size when nested in div.reflist */ | font-size: 100%; /* Reset font-size when nested in div.reflist */ | ||
list-style-type: inherit; /* Enable custom list style types */ | list-style-type: inherit; /* Enable custom list style types */ | ||
} | |||
/* Highlight clicked reference in blue to help navigation */ | |||
ol.references li:target, | |||
sup.reference:target, | |||
span.citation:target { | |||
background-color: #DEF; | |||
} | } | ||
| Line 100: | Line 61: | ||
span.brokenref { | span.brokenref { | ||
display: none; | display: none; | ||
} | |||
/* Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box */ | |||
.citation { | |||
word-wrap: break-word; | |||
} | |||
/* For linked citation numbers and document IDs, where | |||
the number need not be shown on a screen or a handheld, | |||
but should be included in the printed version */ | |||
@media screen, handheld { | |||
.citation .printonly { | |||
display: none; | |||
} | |||
} | } | ||
| Line 137: | Line 112: | ||
/* Style for horizontal lists (separator following item). | /* Style for horizontal lists (separator following item). | ||
IE8-specific classes are assigned in [[MediaWiki:Common.js/IEFixes.js]]. | |||
@source mediawiki.org/wiki/Snippets/Horizontal_lists | @source mediawiki.org/wiki/Snippets/Horizontal_lists | ||
@revision | @revision 6 (2014-05-09) | ||
@author [[User:Edokter]] | @author [[User:Edokter]] | ||
*/ | */ | ||
| Line 163: | Line 139: | ||
.hlist ul dl, .hlist ul ol, .hlist ul ul { | .hlist ul dl, .hlist ul ol, .hlist ul ul { | ||
display: inline; | display: inline; | ||
} | } | ||
/* Generate interpuncts */ | /* Generate interpuncts */ | ||
| Line 180: | Line 152: | ||
.hlist dt:last-child:after, | .hlist dt:last-child:after, | ||
.hlist li:last-child:after { | .hlist li:last-child:after { | ||
content: none; | |||
} | |||
/* For IE8 */ | |||
.hlist dd.hlist-last-child:after, | |||
.hlist dt.hlist-last-child:after, | |||
.hlist li.hlist-last-child:after { | |||
content: none; | content: none; | ||
} | } | ||
| Line 192: | Line 170: | ||
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after, | .hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after, | ||
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after { | .hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after { | ||
content: ") "; | |||
font-weight: normal; | |||
} | |||
/* For IE8 */ | |||
.hlist dd dd.hlist-last-child:after, .hlist dd dt.hlist-last-child:after, .hlist dd li.hlist-last-child:after, | |||
.hlist dt dd.hlist-last-child:after, .hlist dt dt.hlist-last-child:after, .hlist dt li.hlist-last-child:after, | |||
.hlist li dd.hlist-last-child:after, .hlist li dt.hlist-last-child:after, .hlist li li.hlist-last-child:after { | |||
content: ") "; | content: ") "; | ||
font-weight: normal; | font-weight: normal; | ||
| Line 255: | Line 240: | ||
} | } | ||
.navbox-list { | .navbox-list { | ||
line-height: 1. | line-height: 1.8em; | ||
border-color: #fdfdfd; /* Must match background color */ | border-color: #fdfdfd; /* Must match background color */ | ||
} | } | ||
| Line 277: | Line 262: | ||
background: transparent; /* Odd row striping */ | background: transparent; /* Odd row striping */ | ||
} | } | ||
table.navbox | table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */ | ||
margin-top: -1px; /* (doesn't work for IE6, but that's okay) */ | |||
margin-top: -1px; | |||
} | } | ||
.navbox .hlist td dl, | .navbox .hlist td dl, | ||
| Line 293: | Line 272: | ||
.navbox td.hlist ul { | .navbox td.hlist ul { | ||
padding: 0.125em 0; /* Adjust hlist padding in navboxes */ | padding: 0.125em 0; /* Adjust hlist padding in navboxes */ | ||
} | |||
ol + table.navbox, | |||
ul + table.navbox { | |||
margin-top: 0.5em; /* Prevent lists from clinging to navboxes */ | |||
} | } | ||
| Line 304: | Line 287: | ||
display: inline; | display: inline; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
.navbar li { | .navbar li { | ||
word-spacing: -0.125em; | word-spacing: -0.125em; | ||
} | } | ||
.navbar.mini li | .navbar.mini li span { | ||
font-variant: small-caps; | font-variant: small-caps; | ||
} | } | ||
/* Navbar styling when nested in infobox and navbox */ | /* Navbar styling when nested in infobox and navbox */ | ||
| Line 366: | Line 343: | ||
.infobox { | .infobox { | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
color: black; | color: black; | ||
| Line 376: | Line 352: | ||
/* @noflip */ | /* @noflip */ | ||
clear: right; | clear: right; | ||
/* @noflip */ | |||
text-align: left; | |||
font-size: 88%; | font-size: 88%; | ||
line-height: 1.5em; | line-height: 1.5em; | ||
| Line 382: | Line 360: | ||
font-size: 125%; | font-size: 125%; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
.infobox td, | .infobox td, | ||
.infobox th { | .infobox th { | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
.infobox.bordered { | .infobox.bordered { | ||
| Line 485: | Line 460: | ||
} | } | ||
/* ...unless they also use the hlist class */ | /* ...unless they also use the hlist class */ | ||
.wikitable.hlist td ul, | .wikitable.hlist td ul, | ||
.wikitable.hlist td ol, | .wikitable.hlist td ol, | ||
| Line 502: | Line 475: | ||
} | } | ||
/* Fix for hieroglyphs specificality issue in infoboxes ([[ | /* Fix for hieroglyphs specificality issue in infoboxes ([[Bugzilla:41869]]) */ | ||
table.mw-hiero-table td { | table.mw-hiero-table td { | ||
vertical-align: middle; | vertical-align: middle; | ||
| Line 893: | Line 866: | ||
div.mw-cascadeprotectedwarning, | div.mw-cascadeprotectedwarning, | ||
div#mw-protect-cascadeon, | div#mw-protect-cascadeon, | ||
div.titleblacklist | div.titleblacklist-warning { | ||
clear: both; | clear: both; | ||
margin: 0.2em 0; | margin: 0.2em 0; | ||
| Line 966: | Line 938: | ||
line-height: 1.5em; | line-height: 1.5em; | ||
list-style-type: square; | list-style-type: square; | ||
list-style-image: url(/ | list-style-image: url(//bits.wikimedia.org/static-current/skins/common/images/bullet.gif); | ||
} | } | ||
.skin-vector .compact-ambox table .mbox-text-span { | .skin-vector .compact-ambox table .mbox-text-span { | ||
list-style-type: | list-style-type: circle; | ||
list-style-image: url(/ | list-style-image: url(//bits.wikimedia.org/static-current/skins/Vector/images/bullet-icon.png) | ||
} | } | ||
/* Allow for hiding text in compact form */ | /* Allow for hiding text in compact form */ | ||
| Line 1,043: | Line 1,014: | ||
} | } | ||
div.NavFrame div.NavHead { | div.NavFrame div.NavHead { | ||
height: 1.6em; | |||
font-weight: bold; | font-weight: bold; | ||
background-color: #ccf; | background-color: #ccf; | ||
| Line 1,069: | Line 1,040: | ||
/* Hatnotes and disambiguation notices */ | /* Hatnotes and disambiguation notices */ | ||
.rellink, | |||
.dablink, | |||
.hatnote { | .hatnote { | ||
font-style: italic; | font-style: italic; | ||
} | } | ||
.rellink i, | |||
.dablink i, | |||
.hatnote i { | .hatnote i { | ||
font-style: normal; | font-style: normal; | ||
} | } | ||
div.rellink, | |||
div.dablink, | |||
div.hatnote { | div.hatnote { | ||
/* @noflip */ | /* @noflip */ | ||
padding-left: 1.6em; | padding-left: 1.6em; | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
} | } | ||
| Line 1,097: | Line 1,071: | ||
.longitude, .latitude { white-space: nowrap; } | .longitude, .latitude { white-space: nowrap; } | ||
/* When <div class="nonumtoc"> is used on the table of contents, | /* When <div class="nonumtoc"> is used on the table of contents, | ||
the ToC will display without numbers */ | the ToC will display without numbers */ | ||
| Line 1,135: | Line 1,104: | ||
/* Styling for Template:Quote */ | /* Styling for Template:Quote */ | ||
blockquote.templatequote { | |||
margin-top: 0; | |||
} | |||
blockquote.templatequote div.templatequotecite { | blockquote.templatequote div.templatequotecite { | ||
line-height: 1.5em; | line-height: 1.5em; | ||
| Line 1,162: | Line 1,134: | ||
sup.reference a { | sup.reference a { | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
/* But allow wrapping where desired: */ | /* But allow wrapping where desired: */ | ||
| Line 1,244: | Line 1,213: | ||
/* Styling for Abuse Filter tags */ | /* Styling for Abuse Filter tags */ | ||
.mw-tag-markers { | .mw-tag-markers { | ||
font-family:sans-serif; | |||
font-style:italic; | font-style:italic; | ||
font-size:90%; | font-size:90%; | ||
| Line 1,263: | Line 1,233: | ||
* to the same link as well. | * to the same link as well. | ||
* | * | ||
* See [[ | * See [[bugzilla:43013]]. | ||
*/ | */ | ||
.ve-ui-mwNoticesPopupTool-item | .ve-ui-mwNoticesPopupTool-item .editnotice-redlink { | ||
display: none !important; | display: none !important; | ||
} | } | ||
| Line 1,290: | Line 1,260: | ||
border: solid #000001; | border: solid #000001; | ||
filter: chroma(color=#000001); | filter: chroma(color=#000001); | ||
} | |||
/* Styling for updated markers on watchlist, history and recent/related changes. | |||
Bullets are handled in skin-specific stylesheets. */ | |||
.updatedmarker { | |||
background-color: transparent; | |||
color: #006400; | |||
} | |||
li.mw-changeslist-line-watched .mw-title, | |||
table.mw-changeslist-line-watched .mw-title, | |||
table.mw-enhanced-watch .mw-enhanced-rctime { | |||
font-weight: normal; | |||
} | } | ||
| Line 1,297: | Line 1,279: | ||
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif; | font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif; | ||
font-size: 118%; | font-size: 118%; | ||
line-height: 1; | line-height: 1.35em; | ||
} | } | ||
span.texhtml { | span.texhtml { | ||
| Line 1,304: | Line 1,286: | ||
span.texhtml span.texhtml { | span.texhtml span.texhtml { | ||
font-size: 100%; | font-size: 100%; | ||
} | } | ||
| Line 1,312: | Line 1,291: | ||
.digits, | .digits, | ||
.texhtml { | .texhtml { | ||
-moz-font-feature-settings: "lnum", "tnum" | -moz-font-feature-settings: "lnum", "tnum"; | ||
-webkit-font-feature-settings: "lnum", "tnum" | -webkit-font-feature-settings: "lnum", "tnum"; | ||
font-feature-settings: "lnum", "tnum" | font-feature-settings: "lnum", "tnum"; | ||
} | } | ||
/* | /* Display tabs with 4 spaces, see [[Bugzilla:57824]] and [[Bugzilla:57825]] */ | ||
. | div.mw-geshi div, | ||
. | div.mw-geshi div pre, | ||
span.mw-geshi, | |||
pre.source-css, | |||
pre.source-javascript, | |||
pre.source-lua { | |||
-moz-tab-size: 4; | |||
-o-tab-size: 4; | |||
tab-size: 4; | |||
} | } | ||
| Line 1,376: | Line 1,354: | ||
} | } | ||
/* | /* For announcements */ | ||
#bodyContent .letterhead { | #bodyContent .letterhead { | ||
background-image:url('//upload.wikimedia.org/wikipedia/commons/e/e0/Tan-page-corner.png'); | background-image:url('//upload.wikimedia.org/wikipedia/commons/e/e0/Tan-page-corner.png'); | ||
| Line 1,425: | Line 1,403: | ||
} | } | ||
/* | /* Hide charinsert base for those not using the gadget */ | ||
#editpage-specialchars { | |||
display: none; | |||
} | |||
/* work-around for [[bugzilla:23965]] (Kaltura advertisement) */ | |||
.k-player .k-attribution { | .k-player .k-attribution { | ||
visibility: hidden; | visibility: hidden; | ||
} | } | ||
/* | /* workaround to keep editnotices readable in VE view. | ||
. | Long term, editnotices should become a core feature so that they can be designed responsive. */ | ||
.mw-ve-editNotice .mbox-image { | |||
display: none; | |||
} | } | ||
/* | /* [[MediaZilla:35337]] */ | ||
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) { | |||
#p-logo a { | |||
background-image: url("http://wiki.raythe.org/images/b/bc/Wiki.png") !important; | |||
background-size: 136px auto; | |||
} | |||
} | |||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) { | |||
#p-logo a { | |||
background-image: url("http://wiki.raythe.org/images/b/bc/Wiki.png") !important; | |||
background-size: 135px auto; | |||
} | |||
} | } | ||