MediaWiki:Common.css: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* Reset italic styling set by user agent */ | ||
dfn { | cite, dfn { | ||
font-style: inherit; | font-style: inherit; | ||
} | } | ||
q | |||
q: | /* Straight quote marks for <q> */ | ||
q { | |||
quotes: '"' '"' "'" "'"; | |||
} | |||
/* Avoid collision of blockquote with floating elements by swapping margin and padding */ | |||
blockquote { | |||
overflow: hidden; | |||
margin: 1em 0; | |||
padding: 0 40px; | |||
} | |||
/* Prevent the 'double bold' bug in Firefox when using DirectWrite */ | |||
strong.selflink { | |||
font-weight: 700; | |||
} | |||
/* Consistent size for <sub> and <sup> */ | |||
.mw-body sub, | |||
.mw-body sup, | |||
span.reference /* for Parsoid */ { | |||
font-size: 80%; | |||
} | } | ||
| Line 17: | Line 37: | ||
body.page-Main_Page #mp-topbanner { | body.page-Main_Page #mp-topbanner { | ||
clear: both; | clear: both; | ||
} | |||
/* Unhorrify 'Changed since last visit' colors */ | |||
.updatedmarker { | |||
background-color: transparent; | |||
color: #006400; | |||
} | } | ||
| Line 25: | Line 51: | ||
} | } | ||
/* Highlight | /* Hide charinsert base for those not using the gadget */ | ||
body.action-info :target { | #editpage-specialchars { | ||
background: #DEF; | display: none; | ||
} | |||
/* Highlight linked elements (such as clicked references) in blue */ | |||
body.action-info :target, | |||
.citation:target { | |||
background-color: #DEF; /* Fallback */ | |||
background-color: rgba(0, 127, 255, 0.133); | |||
} | |||
/* Styling for citations. 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 43: | Line 89: | ||
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 */ | ||
} | } | ||
| Line 61: | Line 100: | ||
span.brokenref { | span.brokenref { | ||
display: none; | display: none; | ||
} | } | ||
| Line 112: | Line 137: | ||
/* Style for horizontal lists (separator following item). | /* Style for horizontal lists (separator following item). | ||
@source mediawiki.org/wiki/Snippets/Horizontal_lists | @source mediawiki.org/wiki/Snippets/Horizontal_lists | ||
@revision | @revision 7 (2015-11-12) | ||
@author [[User:Edokter]] | @author [[User:Edokter]] | ||
*/ | */ | ||
| Line 139: | Line 163: | ||
.hlist ul dl, .hlist ul ol, .hlist ul ul { | .hlist ul dl, .hlist ul ol, .hlist ul ul { | ||
display: inline; | display: inline; | ||
} | |||
/* Hide empty list itmes */ | |||
.hlist .mw-empty-li { | |||
display: none; | |||
} | } | ||
/* Generate interpuncts */ | /* Generate interpuncts */ | ||
| Line 152: | Line 180: | ||
.hlist dt:last-child:after, | .hlist dt:last-child:after, | ||
.hlist li:last-child:after { | .hlist li:last-child:after { | ||
content: none; | content: none; | ||
} | } | ||
| Line 170: | Line 192: | ||
.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: ") "; | content: ") "; | ||
font-weight: normal; | font-weight: normal; | ||
| Line 240: | Line 255: | ||
} | } | ||
.navbox-list { | .navbox-list { | ||
line-height: 1. | line-height: 1.5em; | ||
border-color: #fdfdfd; /* Must match background color */ | border-color: #fdfdfd; /* Must match background color */ | ||
} | } | ||
| Line 262: | Line 277: | ||
background: transparent; /* Odd row striping */ | background: transparent; /* Odd row striping */ | ||
} | } | ||
table.navbox | table.navbox { | ||
margin-top: -1px; | margin-top: 1em; /* Prevent preceding content from clinging to navboxes */ | ||
} | |||
table.navbox table.navbox { | |||
margin-top: 0; /* No top margin for nested navboxes */ | |||
} | |||
table.navbox + table.navbox { | |||
margin-top: -1px; /* Single pixel border between adjacent navboxes */ | |||
} | } | ||
.navbox .hlist td dl, | .navbox .hlist td dl, | ||
| Line 272: | Line 293: | ||
.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 */ | ||
} | } | ||
| Line 287: | Line 304: | ||
display: inline; | display: inline; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | |||
.mw-body-content .navbar ul { | |||
line-height: inherit; | |||
} | } | ||
.navbar li { | .navbar li { | ||
word-spacing: -0.125em; | word-spacing: -0.125em; | ||
} | } | ||
.navbar.mini li | .navbar.mini li abbr[title] { | ||
font-variant: small-caps; | font-variant: small-caps; | ||
border-bottom: none; | |||
text-decoration: none; | |||
cursor: inherit; | |||
} | } | ||
/* Navbar styling when nested in infobox and navbox */ | /* Navbar styling when nested in infobox and navbox */ | ||
| Line 343: | Line 366: | ||
.infobox { | .infobox { | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
border-spacing: 3px; | |||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
color: black; | color: black; | ||
| Line 352: | Line 376: | ||
/* @noflip */ | /* @noflip */ | ||
clear: right; | clear: right; | ||
font-size: 88%; | font-size: 88%; | ||
line-height: 1.5em; | line-height: 1.5em; | ||
| Line 360: | Line 382: | ||
font-size: 125%; | font-size: 125%; | ||
font-weight: bold; | font-weight: bold; | ||
padding: 0.2em; | |||
} | } | ||
.infobox td, | .infobox td, | ||
.infobox th { | .infobox th { | ||
vertical-align: top; | vertical-align: top; | ||
/* @noflip */ | |||
text-align: left; | |||
} | } | ||
.infobox.bordered { | .infobox.bordered { | ||
| Line 460: | Line 485: | ||
} | } | ||
/* ...unless they also use the hlist class */ | /* ...unless they also use the hlist class */ | ||
.toc.hlist ul, | |||
#toc.hlist ul, | |||
.wikitable.hlist td ul, | .wikitable.hlist td ul, | ||
.wikitable.hlist td ol, | .wikitable.hlist td ol, | ||
| Line 475: | Line 502: | ||
} | } | ||
/* Fix for hieroglyphs specificality issue in infoboxes ([[ | /* Fix for hieroglyphs specificality issue in infoboxes ([[Phabricator:43869]]) */ | ||
table.mw-hiero-table td { | table.mw-hiero-table td { | ||
vertical-align: middle; | vertical-align: middle; | ||
| Line 866: | Line 893: | ||
div.mw-cascadeprotectedwarning, | div.mw-cascadeprotectedwarning, | ||
div#mw-protect-cascadeon, | div#mw-protect-cascadeon, | ||
div.titleblacklist-warning { | div.titleblacklist-warning, | ||
div.locked-warning { | |||
clear: both; | clear: both; | ||
margin: 0.2em 0; | margin: 0.2em 0; | ||
| Line 938: | Line 966: | ||
line-height: 1.5em; | line-height: 1.5em; | ||
list-style-type: square; | list-style-type: square; | ||
list-style-image: url(/ | list-style-image: url(/w/skins/MonoBook/bullet.gif); | ||
} | } | ||
.skin-vector .compact-ambox table .mbox-text-span { | .skin-vector .compact-ambox table .mbox-text-span { | ||
list-style-type: | list-style-type: disc; | ||
list-style-image: url(// | list-style-image: url(/w/skins/Vector/images/bullet-icon.svg); | ||
list-style-image: url(/w/skins/Vector/images/bullet-icon.png)\9; | |||
} | } | ||
/* Allow for hiding text in compact form */ | /* Allow for hiding text in compact form */ | ||
| Line 1,014: | Line 1,043: | ||
} | } | ||
div.NavFrame div.NavHead { | div.NavFrame div.NavHead { | ||
height: 1.6em; | line-height: 1.6em; | ||
font-weight: bold; | font-weight: bold; | ||
background-color: #ccf; | background-color: #ccf; | ||
| Line 1,040: | Line 1,069: | ||
/* Hatnotes and disambiguation notices */ | /* Hatnotes and disambiguation notices */ | ||
.hatnote { | .hatnote { | ||
font-style: italic; | font-style: italic; | ||
} | } | ||
.hatnote i { | .hatnote i { | ||
font-style: normal; | font-style: normal; | ||
} | } | ||
div.hatnote { | div.hatnote { | ||
/* @noflip */ | /* @noflip */ | ||
padding-left: 1.6em; | padding-left: 1.6em; | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
} | |||
div.hatnote + div.hatnote { | |||
margin-top: -0.5em; | |||
} | } | ||
| Line 1,071: | Line 1,097: | ||
.longitude, .latitude { white-space: nowrap; } | .longitude, .latitude { white-space: nowrap; } | ||
/* Temporary(!) fix for horizontal TOC in Blink (Chrone/Opera) */ | |||
.hlist .tocnumber, | |||
.hlist .toctext { | |||
display: inline; | |||
} | |||
/* 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,104: | Line 1,135: | ||
/* Styling for Template:Quote */ | /* Styling for Template:Quote */ | ||
blockquote.templatequote div.templatequotecite { | blockquote.templatequote div.templatequotecite { | ||
line-height: 1.5em; | line-height: 1.5em; | ||
| Line 1,134: | Line 1,162: | ||
sup.reference a { | sup.reference a { | ||
white-space: nowrap; | white-space: nowrap; | ||
} | |||
.nowrap pre { | |||
white-space: pre; | |||
} | } | ||
/* But allow wrapping where desired: */ | /* But allow wrapping where desired: */ | ||
| Line 1,213: | Line 1,244: | ||
/* Styling for Abuse Filter tags */ | /* Styling for Abuse Filter tags */ | ||
.mw-tag-markers { | .mw-tag-markers { | ||
font-style:italic; | font-style:italic; | ||
font-size:90%; | font-size:90%; | ||
| Line 1,233: | Line 1,263: | ||
* to the same link as well. | * to the same link as well. | ||
* | * | ||
* See [[ | * See [[Phabricator:45013]]. | ||
*/ | */ | ||
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink { | .ve-ui-mwNoticesPopupTool-item .editnotice-redlink, .mw-ve-editNotice .editnotice-redlink { | ||
display: none !important; | display: none !important; | ||
} | } | ||
| Line 1,260: | Line 1,290: | ||
border: solid #000001; | border: solid #000001; | ||
filter: chroma(color=#000001); | filter: chroma(color=#000001); | ||
} | } | ||
| Line 1,279: | Line 1,297: | ||
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; | ||
} | } | ||
span.texhtml { | span.texhtml { | ||
| Line 1,286: | Line 1,304: | ||
span.texhtml span.texhtml { | span.texhtml span.texhtml { | ||
font-size: 100%; | font-size: 100%; | ||
} | |||
span.mwe-math-mathml-inline { | |||
font-size: 118%; | |||
} | } | ||
| Line 1,291: | Line 1,312: | ||
.digits, | .digits, | ||
.texhtml { | .texhtml { | ||
-moz-font-feature-settings: "lnum", "tnum"; | -moz-font-feature-settings: "lnum", "tnum", "kern" 0; | ||
-webkit-font-feature-settings: "lnum", "tnum"; | -webkit-font-feature-settings: "lnum", "tnum", "kern" 0; | ||
font-feature-settings: "lnum", "tnum"; | font-feature-settings: "lnum", "tnum", "kern" 0; | ||
font-variant-numeric: lining-nums tabular-nums; | |||
font-kerning: none; | |||
} | } | ||
/* | /* Make <math display="block"> be left aligned with one space indent for compatibility with style conventions */ | ||
.mwe-math-fallback-image-display, | |||
.mwe-math-mathml-display { | |||
margin-left: 1.6em !important; | |||
margin-top: 0.6em; | |||
margin-bottom: 0.6em; | |||
} | |||
- | .mwe-math-mathml-display math { | ||
display: inline; | |||
} | } | ||
| Line 1,354: | Line 1,376: | ||
} | } | ||
/* | /* Formerly for announcements, now used intermittently */ | ||
#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,403: | Line 1,425: | ||
} | } | ||
/* | /* Work-around for [[Phabricator:25965]] (Kaltura advertisement) */ | ||
.k-player .k-attribution { | .k-player .k-attribution { | ||
visibility: hidden; | visibility: hidden; | ||
} | } | ||
/* | /* Move 'play' button of video player to bottom left corner */ | ||
.PopUpMediaTransform a .play-btn-large { | |||
. | margin: 0; | ||
top: auto; | |||
right: auto; | |||
bottom: 0; | |||
left: 0; | |||
} | } | ||
/* | /* 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; | |||
} | } | ||