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 */ | |||
cite, dfn { | |||
font-style: inherit; | |||
} | |||
/* 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 <small>, <sub> and <sup> */ | ||
small { | |||
font- | font-size: 85%; | ||
} | } | ||
.mw-body-content sub, | |||
.mw-body-content sup, | |||
span.reference /* for Parsoid */ { | |||
font-size: 80%; | |||
} | } | ||
/* Same spacing for indented and unidented paragraphs on talk pages */ | |||
.ns-talk .mw-body-content dd {margin-top:0.4em; margin-bottom:0.4em;} | |||
/* Main page fixes */ | /* Main page fixes */ | ||
| Line 23: | Line 45: | ||
} | } | ||
/* Tone down 'Changed since last visit' colors */ | |||
span.updatedmarker { | |||
background-color: transparent; | |||
color: #006400; | |||
} | } | ||
| Line 36: | Line 57: | ||
} | } | ||
/* 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 .mw-body-content :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 53: | Line 94: | ||
div.reflist ol.references { | div.reflist ol.references { | ||
font-size: 100%; /* Reset font-size when nested in div.reflist */ | font-size: 100%; /* Reset font-size when nested in div.reflist */ | ||
margin-bottom: 0; /* Avoid double margin when nested in div.reflist */ | |||
list-style-type: inherit; /* Enable custom list style types */ | list-style-type: inherit; /* Enable custom list style types */ | ||
} | } | ||
| Line 74: | Line 109: | ||
} | } | ||
/* | /* Hanging indentation for Template:Refbegin */ | ||
. | .refbegin-hanging-indents > ul { | ||
list-style-type: none; | |||
margin-left: 0; | |||
} | } | ||
.refbegin-hanging-indents > ul > li, | |||
.refbegin-hanging-indents > dl > dd { | |||
margin-left: 0; | |||
padding-left: 3.2em; | |||
text-indent: -3.2em; | |||
list-style: none; | |||
} | } | ||
| Line 123: | Line 157: | ||
/* 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 8 (2016-05-21) | ||
@author [[User:Edokter]] | @author [[User:Edokter]] | ||
*/ | */ | ||
| Line 150: | Line 183: | ||
.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 items */ | |||
.hlist .mw-empty-li { | |||
display: none; | |||
} | } | ||
/* Generate interpuncts */ | /* Generate interpuncts */ | ||
| Line 163: | Line 200: | ||
.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 181: | Line 212: | ||
.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 199: | Line 223: | ||
} | } | ||
.hlist ol > li:before { | .hlist ol > li:before { | ||
content: " " counter(listitem) " " | content: " " counter(listitem) "\a0"; | ||
} | } | ||
.hlist dd ol > li:first-child:before, | .hlist dd ol > li:first-child:before, | ||
.hlist dt ol > li:first-child:before, | .hlist dt ol > li:first-child:before, | ||
.hlist li ol > li:first-child:before { | .hlist li ol > li:first-child:before { | ||
content: " (" counter(listitem) " "; | content: " (" counter(listitem) "\a0"; | ||
} | } | ||
| Line 222: | Line 245: | ||
/* Default style for navigation boxes */ | /* Default style for navigation boxes */ | ||
.navbox { /* Navbox container style */ | .navbox { /* Navbox container style */ | ||
border: 1px solid # | box-sizing: border-box; | ||
border: 1px solid #a2a9b1; | |||
width: 100%; | width: 100%; | ||
clear: both; | clear: both; | ||
font-size: 88%; | font-size: 88%; | ||
text-align: center; | text-align: center; | ||
padding: 1px; | padding: 1px; | ||
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */ | |||
} | |||
.navbox .navbox { | |||
margin-top: 0; /* No top margin for nested navboxes */ | |||
} | |||
.navbox + .navbox { | |||
margin-top: -1px; /* Single pixel border between adjacent navboxes */ | |||
} | } | ||
.navbox-inner, | .navbox-inner, | ||
| Line 251: | Line 281: | ||
} | } | ||
.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 */ | ||
} | |||
/* cell spacing for navbox cells */ | |||
tr + tr > .navbox-abovebelow, | |||
tr + tr > .navbox-group, | |||
tr + tr > .navbox-image, | |||
tr + tr > .navbox-list { /* Borders above 2nd, 3rd, etc. rows */ | |||
border-top: 2px solid #fdfdfd; /* Must match background color */ | |||
} | } | ||
.navbox th, | .navbox th, | ||
| Line 272: | Line 309: | ||
.navbox-odd { | .navbox-odd { | ||
background: transparent; /* Odd row striping */ | background: transparent; /* Odd row striping */ | ||
} | } | ||
.navbox .hlist td dl, | .navbox .hlist td dl, | ||
| Line 283: | Line 317: | ||
.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 298: | Line 328: | ||
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 320: | Line 356: | ||
/* @noflip */ | /* @noflip */ | ||
margin-right: 0.5em; | margin-right: 0.5em; | ||
} | } | ||
| Line 334: | Line 369: | ||
text-align: right; | text-align: right; | ||
width: auto; | width: auto; | ||
} | } | ||
/* Styling for JQuery makeCollapsible, matching that of collapseButton */ | /* Styling for JQuery makeCollapsible, matching that of collapseButton */ | ||
.mw-collapsible-toggle { | .mw-parser-output .mw-collapsible-toggle { | ||
font-weight: normal; | font-weight: normal; | ||
/* @noflip */ | /* @noflip */ | ||
text-align: right; | text-align: right; | ||
padding-right: 0.2em; | |||
padding-left: 0.2em; | |||
} | } | ||
. | .mw-collapsible-leftside-toggle .mw-collapsible-toggle { | ||
/* @noflip */ | |||
float: left; | |||
/* @noflip */ | |||
text-align: left; | |||
} | } | ||
/* Infobox template style */ | /* Infobox template style */ | ||
.infobox { | .infobox { | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
background-color: # | border-spacing: 3px; | ||
background-color: #f8f9fa; | |||
color: black; | color: black; | ||
/* @noflip */ | /* @noflip */ | ||
| Line 363: | Line 399: | ||
/* @noflip */ | /* @noflip */ | ||
clear: right; | clear: right; | ||
font-size: 88%; | font-size: 88%; | ||
line-height: 1.5em; | line-height: 1.5em; | ||
| Line 371: | Line 405: | ||
font-size: 125%; | font-size: 125%; | ||
font-weight: bold; | font-weight: bold; | ||
padding: 0.2em; | |||
text-align: center; | |||
} | } | ||
.infobox td, | .infobox td, | ||
.infobox th { | .infobox th { | ||
vertical-align: top; | vertical-align: top; | ||
/* @noflip */ | |||
text-align: left; | |||
} | } | ||
.infobox.bordered { | .infobox.bordered { | ||
| Line 381: | Line 419: | ||
.infobox.bordered td, | .infobox.bordered td, | ||
.infobox.bordered th { | .infobox.bordered th { | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
} | } | ||
.infobox.bordered .borderless td, | .infobox.bordered .borderless td, | ||
| Line 406: | Line 444: | ||
.infobox.bordered .mergedtoprow th { | .infobox.bordered .mergedtoprow th { | ||
border: 0; | border: 0; | ||
border-top: 1px solid # | border-top: 1px solid #a2a9b1; | ||
/* @noflip */ | /* @noflip */ | ||
border-right: 1px solid # | border-right: 1px solid #a2a9b1; | ||
} | } | ||
| Line 415: | Line 453: | ||
border: 0; | border: 0; | ||
/* @noflip */ | /* @noflip */ | ||
border-right: 1px solid # | border-right: 1px solid #a2a9b1; | ||
} | } | ||
| Line 428: | Line 466: | ||
.infobox.geography td, | .infobox.geography td, | ||
.infobox.geography th { | .infobox.geography th { | ||
border-top: 1px solid # | border-top: 1px solid #a2a9b1; | ||
padding: 0.4em 0.6em 0.4em 0.6em; | padding: 0.4em 0.6em 0.4em 0.6em; | ||
} | } | ||
.infobox.geography .mergedtoprow td, | .infobox.geography .mergedtoprow td, | ||
.infobox.geography .mergedtoprow th { | .infobox.geography .mergedtoprow th { | ||
border-top: 1px solid # | border-top: 1px solid #a2a9b1; | ||
padding: 0.4em 0.6em 0.2em 0.6em; | padding: 0.4em 0.6em 0.2em 0.6em; | ||
} | } | ||
| Line 446: | Line 484: | ||
.infobox.geography .mergedbottomrow th { | .infobox.geography .mergedbottomrow th { | ||
border-top: 0; | border-top: 0; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #a2a9b1; | ||
padding: 0 0.6em 0.4em 0.6em; | padding: 0 0.6em 0.4em 0.6em; | ||
} | } | ||
| Line 471: | Line 509: | ||
} | } | ||
/* ...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 486: | Line 526: | ||
} | } | ||
/* 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 526: | Line 566: | ||
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 { | ||
background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right; | background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right; | ||
/* @noflip */ | /* @noflip */ | ||
| Line 568: | Line 599: | ||
/* Messagebox templates */ | /* Messagebox templates */ | ||
.messagebox { | .messagebox { | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
background-color: # | background-color: #f8f9fa; | ||
width: 80%; | width: 80%; | ||
margin: 0 auto 1em auto; | margin: 0 auto 1em auto; | ||
| Line 648: | Line 679: | ||
table.ambox { | table.ambox { | ||
margin: 0 10%; /* 10% = Will not overlap with other elements */ | margin: 0 10%; /* 10% = Will not overlap with other elements */ | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
/* @noflip */ | /* @noflip */ | ||
border-left: 10px solid # | border-left: 10px solid #36c; /* Default "notice" blue */ | ||
background: #fbfbfb; | background: #fbfbfb; | ||
} | } | ||
| Line 671: | Line 702: | ||
table.ambox-notice { | table.ambox-notice { | ||
/* @noflip */ | /* @noflip */ | ||
border-left: 10px solid # | border-left: 10px solid #36c; /* Blue */ | ||
} | } | ||
table.ambox-speedy { | table.ambox-speedy { | ||
/* @noflip */ | /* @noflip */ | ||
border-left: 10px solid # | border-left: 10px solid #b32424; /* Red */ | ||
background: # | background: #fee7e6; /* Pink */ | ||
} | } | ||
table.ambox-delete { | table.ambox-delete { | ||
/* @noflip */ | /* @noflip */ | ||
border-left: 10px solid # | border-left: 10px solid #b32424; /* Red */ | ||
} | } | ||
table.ambox-content { | table.ambox-content { | ||
| Line 688: | Line 719: | ||
table.ambox-style { | table.ambox-style { | ||
/* @noflip */ | /* @noflip */ | ||
border-left: 10px solid # | border-left: 10px solid #fc3; /* Yellow */ | ||
} | } | ||
table.ambox-move { | table.ambox-move { | ||
| Line 696: | Line 727: | ||
table.ambox-protection { | table.ambox-protection { | ||
/* @noflip */ | /* @noflip */ | ||
border-left: 10px solid # | border-left: 10px solid #a2a9b1; /* Gray-gold */ | ||
} | } | ||
| Line 703: | Line 734: | ||
margin: 4px 10%; | margin: 4px 10%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
border: 3px solid # | border: 3px solid #36c; /* Default "notice" blue */ | ||
background: #fbfbfb; | background: #fbfbfb; | ||
} | } | ||
| Line 715: | Line 746: | ||
table.imbox-notice { | table.imbox-notice { | ||
border: 3px solid # | border: 3px solid #36c; /* Blue */ | ||
} | } | ||
table.imbox-speedy { | table.imbox-speedy { | ||
border: 3px solid # | border: 3px solid #b32424; /* Red */ | ||
background: # | background: #fee7e6; /* Pink */ | ||
} | } | ||
table.imbox-delete { | table.imbox-delete { | ||
border: 3px solid # | border: 3px solid #b32424; /* Red */ | ||
} | } | ||
table.imbox-content { | table.imbox-content { | ||
| Line 728: | Line 759: | ||
} | } | ||
table.imbox-style { | table.imbox-style { | ||
border: 3px solid # | border: 3px solid #fc3; /* Yellow */ | ||
} | } | ||
table.imbox-move { | table.imbox-move { | ||
| Line 734: | Line 765: | ||
} | } | ||
table.imbox-protection { | table.imbox-protection { | ||
border: 3px solid # | border: 3px solid #a2a9b1; /* Gray-gold */ | ||
} | } | ||
table.imbox-license { | table.imbox-license { | ||
| Line 748: | Line 779: | ||
margin: 3px 10%; | margin: 3px 10%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
background: #DFE8FF; /* Default "notice" blue */ | background: #DFE8FF; /* Default "notice" blue */ | ||
} | } | ||
| Line 758: | Line 789: | ||
margin-top: 4px; | margin-top: 4px; | ||
margin-bottom: 4px; | margin-bottom: 4px; | ||
border: 4px solid # | border: 4px solid #b32424; /* Red */ | ||
background: #FFDBDB; /* Pink */ | background: #FFDBDB; /* Pink */ | ||
} | } | ||
| Line 781: | Line 812: | ||
margin: 4px 10%; | margin: 4px 10%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
border: 1px solid # | border: 1px solid #a2a9b1; /* Default "notice" gray */ | ||
background: # | background: #f8f9fa; | ||
} | } | ||
table.ombox-notice { | table.ombox-notice { | ||
border: 1px solid # | border: 1px solid #a2a9b1; /* Gray */ | ||
} | } | ||
table.ombox-speedy { | table.ombox-speedy { | ||
border: 2px solid # | border: 2px solid #b32424; /* Red */ | ||
background: # | background: #fee7e6; /* Pink */ | ||
} | } | ||
table.ombox-delete { | table.ombox-delete { | ||
border: 2px solid # | border: 2px solid #b32424; /* Red */ | ||
} | } | ||
table.ombox-content { | table.ombox-content { | ||
| Line 799: | Line 830: | ||
} | } | ||
table.ombox-style { | table.ombox-style { | ||
border: 1px solid # | border: 1px solid #fc3; /* Yellow */ | ||
} | } | ||
table.ombox-move { | table.ombox-move { | ||
| Line 805: | Line 836: | ||
} | } | ||
table.ombox-protection { | table.ombox-protection { | ||
border: 2px solid # | border: 2px solid #a2a9b1; /* Gray-gold */ | ||
} | } | ||
| Line 825: | Line 856: | ||
table.tmbox-speedy { | table.tmbox-speedy { | ||
border: 2px solid # | border: 2px solid #b32424; /* Red */ | ||
background: # | background: #fee7e6; /* Pink */ | ||
} | } | ||
table.tmbox-delete { | table.tmbox-delete { | ||
border: 2px solid # | border: 2px solid #b32424; /* Red */ | ||
} | } | ||
table.tmbox-content { | table.tmbox-content { | ||
| Line 835: | Line 866: | ||
} | } | ||
table.tmbox-style { | table.tmbox-style { | ||
border: 2px solid # | border: 2px solid #fc3; /* Yellow */ | ||
} | } | ||
table.tmbox-move { | table.tmbox-move { | ||
| Line 859: | Line 890: | ||
margin: 0.2em 0; | margin: 0.2em 0; | ||
width: 100%; | width: 100%; | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
background: # | background: #f8f9fa; /* Default "system" gray */ | ||
} | } | ||
table.fmbox-system { | table.fmbox-system { | ||
background: # | background: #f8f9fa; | ||
} | } | ||
table.fmbox-warning { | table.fmbox-warning { | ||
| Line 877: | Line 908: | ||
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 890: | Line 922: | ||
clear: both; | clear: both; | ||
margin: 0.2em 0; | margin: 0.2em 0; | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
background: # | background: #f8f9fa; | ||
padding: 0.25em 0.9em; | padding: 0.25em 0.9em; | ||
} | } | ||
/* These mbox-small classes must be placed after all other | /* These mbox-small classes must be placed after all other | ||
ambox/tmbox/ombox etc classes. "body.mediawiki" is so | ambox/tmbox/ombox etc classes. "html body.mediawiki" is so | ||
they override "table.ambox + table.ambox" above. */ | they override "table.ambox + table.ambox" above. */ | ||
body.mediawiki | html body.mediawiki .mbox-small { /* For the "small=yes" option. */ | ||
/* @noflip */ | /* @noflip */ | ||
clear: right; | clear: right; | ||
| Line 905: | Line 937: | ||
/* @noflip */ | /* @noflip */ | ||
margin: 4px 0 4px 1em; | margin: 4px 0 4px 1em; | ||
box-sizing: border-box; | |||
width: 238px; | width: 238px; | ||
font-size: 88%; | font-size: 88%; | ||
line-height: 1.25em; | line-height: 1.25em; | ||
} | } | ||
body.mediawiki | html body.mediawiki .mbox-small-left { /* For the "small=left" option. */ | ||
/* @noflip */ | /* @noflip */ | ||
margin: 4px 1em 4px 0; | margin: 4px 1em 4px 0; | ||
box-sizing: border-box; | |||
overflow: hidden; | |||
width: 238px; | width: 238px; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
| Line 949: | Line 984: | ||
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,008: | Line 1,044: | ||
margin: 0; | margin: 0; | ||
padding: 4px; | padding: 4px; | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
text-align: center; | text-align: center; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
| Line 1,025: | Line 1,061: | ||
} | } | ||
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,051: | Line 1,087: | ||
/* 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; | |||
} | } | ||
/* Allow transcluded pages to display in lists rather than a table | /* Allow transcluded pages to display in lists rather than a table. */ | ||
.listify td { display: list-item; } | .listify td { display: list-item; } | ||
.listify tr { display: block; } | .listify tr { display: block; } | ||
| Line 1,082: | Line 1,114: | ||
.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,115: | Line 1,152: | ||
/* 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,138: | Line 1,172: | ||
1) Where desired | 1) Where desired | ||
2) Links when we don't want them to | 2) Links when we don't want them to | ||
3) Bold "links" to the page itself | 3) Bold "links" to the page itself */ | ||
.nowrap, | .nowrap, | ||
.nowraplinks a, | .nowraplinks a, | ||
.nowraplinks .selflink | .nowraplinks .selflink { | ||
white-space: nowrap; | white-space: nowrap; | ||
} | |||
.nowrap pre { | |||
white-space: pre; | |||
} | } | ||
/* But allow wrapping where desired: */ | /* But allow wrapping where desired: */ | ||
| Line 1,156: | Line 1,191: | ||
clear: both; | clear: both; | ||
margin: 1em 0 0 0; | margin: 1em 0 0 0; | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
background-color: #ecfcf4; | background-color: #ecfcf4; | ||
padding: 1em; | padding: 1em; | ||
} | } | ||
| Line 1,174: | Line 1,204: | ||
.thumbinner { | .thumbinner { | ||
min-width: 100px; | min-width: 100px; | ||
} | } | ||
| Line 1,205: | Line 1,211: | ||
#filehistory, #wikiPreview, #wikiDiff { | #filehistory, #wikiPreview, #wikiDiff { | ||
clear: both; | clear: both; | ||
} | } | ||
| Line 1,224: | Line 1,221: | ||
/* 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,231: | Line 1,227: | ||
/* Hide stuff meant for accounts with special permissions. Made visible again in | /* Hide stuff meant for accounts with special permissions. Made visible again in | ||
[[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-accountcreator.css]], | [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-accountcreator.css]], | ||
[[MediaWiki:Group-templateeditor.css]] and [[Mediawiki:Group-autoconfirmed.css]]. */ | [[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]] and [[Mediawiki:Group-autoconfirmed.css]]. */ | ||
.sysop-show, | .sysop-show, | ||
.accountcreator-show, | .accountcreator-show, | ||
.templateeditor-show, | .templateeditor-show, | ||
.autoconfirmed-show { | .extendedmover-show, | ||
.autoconfirmed-show, | |||
.user-show { | |||
display: none; | display: none; | ||
} | } | ||
| Line 1,242: | Line 1,240: | ||
* Hide the redlink generated by {{Editnotice}}, | * Hide the redlink generated by {{Editnotice}}, | ||
* this overrides the ".sysop-show { display: none; }" above that applies | * this overrides the ".sysop-show { display: none; }" above that applies | ||
* to the same link as well. | * to the same link as well. See [[phab:T45013]] | ||
* | * | ||
* | * Hide the images in editnotices to keep them readable in VE view. | ||
* Long term, editnotices should become a core feature so that they can be designed responsive. | |||
*/ | */ | ||
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink { | .ve-ui-mwNoticesPopupTool-item .editnotice-redlink, | ||
.ve-ui-mwNoticesPopupTool-item .mbox-image, | |||
.ve-ui-mwNoticesPopupTool-item .mbox-imageright { | |||
display: none !important; | display: none !important; | ||
} | } | ||
| Line 1,258: | Line 1,259: | ||
} | } | ||
/* Pie chart: transparent borders */ | |||
/* Pie chart | |||
.transborder { | .transborder { | ||
border: solid transparent; | border: solid transparent; | ||
} | } | ||
| Line 1,290: | Line 1,269: | ||
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,297: | Line 1,276: | ||
span.texhtml span.texhtml { | span.texhtml span.texhtml { | ||
font-size: 100%; | font-size: 100%; | ||
} | |||
span.mwe-math-mathml-inline { | |||
font-size: 118%; | |||
} | } | ||
| Line 1,302: | Line 1,284: | ||
.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,365: | Line 1,348: | ||
} | } | ||
/* | /* 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,383: | Line 1,366: | ||
list-style-type: none; | list-style-type: none; | ||
list-style-image: none; | list-style-image: none; | ||
} | } | ||
.treeview li li { | .treeview li li { | ||
| Line 1,410: | Line 1,392: | ||
/* Make it possible to hide checkboxes in <inputbox> */ | /* Make it possible to hide checkboxes in <inputbox> */ | ||
.inputbox-hidecheckboxes form .inputbox-element { | .inputbox-hidecheckboxes form .inputbox-element, | ||
.inputbox-hidecheckboxes .mw-ui-checkbox { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 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; | |||
} | } | ||
/* | /* Hide FlaggedRevs notice UI when there are no pending changes */ | ||
.flaggedrevs_draft_synced, | |||
.flaggedrevs_stable_synced { | |||
display: none; | |||
} | } | ||
@media | |||
/* Gallery styles background changes are restricted to screen view. In printing we should avoid applying backgrounds. */ | |||
@media screen { | |||
/* The backgrounds for galleries. */ | |||
#content .gallerybox div.thumb { | |||
/* Light gray padding */ | |||
background-color: #f8f9fa; | |||
} | |||
/* Put a chequered background behind images, only visible if they have transparency. | |||
'.filehistory a img' and '#file img:hover' are handled by MediaWiki core (as of 1.19) */ | |||
.gallerybox .thumb img { | |||
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat; | |||
} | |||
/* But not on articles, user pages, portals or with opt-out. */ | |||
.ns-0 .gallerybox .thumb img, | |||
.ns-2 .gallerybox .thumb img, | |||
.ns-100 .gallerybox .thumb img, | |||
.nochecker .gallerybox .thumb img { | |||
background: #fff; | |||
} | |||
} | } | ||