1,194
edits
Tags: Undo Reverted |
No edit summary Tag: Manual revert |
||
Line 1: | Line 1: | ||
/* Reset italic styling set by user agent */ | /* Reset italic styling set by user agent */ | ||
cite, | cite, | ||
Line 36: | Line 32: | ||
margin-top: 0.4em; | margin-top: 0.4em; | ||
margin-bottom: 0.4em; | margin-bottom: 0.4em; | ||
} | |||
/* Main page fixes */ | |||
#interwiki-completelist { | |||
font-weight: bold; | |||
} | } | ||
Line 50: | Line 51: | ||
.mw-rcfilters-enabled .mw-specialpage-summary { | .mw-rcfilters-enabled .mw-specialpage-summary { | ||
margin-top: 1em; | margin-top: 1em; | ||
} | |||
/* Highlight linked elements (such as clicked references) in blue */ | |||
.citation:target { | |||
background-color: rgba(0, 127, 255, 0.133); | |||
} | |||
/* Styling for citations. Breaks long urls, etc., rather than overflowing box */ | |||
.citation { | |||
word-wrap: break-word; | |||
} | } | ||
Line 60: | Line 71: | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
} | } | ||
/* Style for horizontal lists (separator following item). | /* Style for horizontal lists (separator following item). | ||
Line 371: | Line 194: | ||
.plainlist ul li { | .plainlist ul li { | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | |||
/* Default style for navigation boxes */ | |||
.navbox { /* Navbox container style */ | |||
box-sizing: border-box; | |||
border: 1px solid #a2a9b1; | |||
width: 100%; | |||
clear: both; | |||
font-size: 88%; | |||
text-align: center; | |||
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-subgroup { | |||
width: 100%; | |||
} | |||
.navbox-group, | |||
.navbox-title, | |||
.navbox-abovebelow { | |||
padding: 0.25em 1em; /* Title, group and above/below styles */ | |||
line-height: 1.5em; | |||
text-align: center; | |||
} | |||
th.navbox-group { /* Group style */ | |||
white-space: nowrap; | |||
/* @noflip */ | |||
text-align: right; | |||
} | |||
.navbox, | |||
.navbox-subgroup { | |||
background-color: #fdfdfd; /* Background color */ | |||
} | |||
.navbox-list { | |||
line-height: 1.5em; | |||
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-title { | |||
background-color: #ccccff; /* Level 1 color */ | |||
} | |||
.navbox-abovebelow, | |||
th.navbox-group, | |||
.navbox-subgroup .navbox-title { | |||
background-color: #ddddff; /* Level 2 color */ | |||
} | |||
.navbox-subgroup .navbox-group, | |||
.navbox-subgroup .navbox-abovebelow { | |||
background-color: #e6e6ff; /* Level 3 color */ | |||
} | |||
.navbox-even { | |||
background-color: #f7f7f7; /* Even row striping */ | |||
} | |||
.navbox-odd { | |||
background-color: transparent; /* Odd row striping */ | |||
} | |||
.navbox .hlist td dl, | |||
.navbox .hlist td ol, | |||
.navbox .hlist td ul, | |||
.navbox td.hlist dl, | |||
.navbox td.hlist ol, | |||
.navbox td.hlist ul { | |||
padding: 0.125em 0; /* Adjust hlist padding in navboxes */ | |||
} | |||
/* Styling for JQuery makeCollapsible, matching that of collapseButton */ | |||
.mw-parser-output .mw-collapsible-toggle { | |||
font-weight: normal; | |||
/* @noflip */ | |||
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; | |||
} | } | ||
Line 389: | Line 318: | ||
line-height: 1.5em; | line-height: 1.5em; | ||
width: 22em; | width: 22em; | ||
} | |||
/* not strictly certain these styles are necessary | |||
* just replicating the module faithfully | |||
*/ | |||
.infobox-subbox { | |||
padding: 0; | |||
border: none; | |||
margin: -3px; | |||
width: auto; | |||
min-width: 100%; | |||
font-size: 100%; | |||
clear: none; | |||
float: none; | |||
background-color: transparent; | |||
} | } | ||
Line 400: | Line 344: | ||
.infobox-image, | .infobox-image, | ||
.infobox-navbar, | .infobox-navbar, | ||
/* Remove element | /* Remove element declaration when both a) infobox3cols is migrated and | ||
* b) when every .infobox thing is using the standard module/templates */ | |||
.infobox th, | .infobox th, | ||
.infobox td { | .infobox td { | ||
Line 408: | Line 353: | ||
.infobox-label, | .infobox-label, | ||
.infobox-data, | .infobox-data, | ||
/* Remove element | /* Remove element declaration when both a) infobox3cols is migrated and | ||
* b) when every .infobox thing is using the standard module/templates */ | |||
.infobox th, | .infobox th, | ||
.infobox td { | .infobox td { | ||
Line 415: | Line 361: | ||
} | } | ||
/* | /* remove .infobox when th, td above are removed */ | ||
.infobox .infobox-above, | .infobox .infobox-above, | ||
.infobox .infobox-title, | .infobox .infobox-title, | ||
/* Remove element | /* Remove element declaration when both a) infobox3cols is migrated and | ||
* b) when every .infobox thing is using the standard module/templates */ | |||
.infobox caption { | .infobox caption { | ||
font-size: 125%; | font-size: 125%; | ||
Line 426: | Line 373: | ||
.infobox-title, | .infobox-title, | ||
/* Remove element | /* Remove element declaration when both a) infobox3cols is migrated and | ||
* b) when every .infobox thing is using the standard module/templates */ | |||
.infobox caption { | .infobox caption { | ||
padding: 0.2em; | padding: 0.2em; | ||
} | } | ||
/* | /* remove .infobox when th, td above are removed */ | ||
.infobox .infobox-header, | .infobox .infobox-header, | ||
.infobox .infobox-subheader, | .infobox .infobox-subheader, | ||
Line 440: | Line 388: | ||
} | } | ||
/* | /* remove .infobox when th, td above are removed */ | ||
.infobox .infobox-navbar { | .infobox .infobox-navbar { | ||
/* @noflip */ | /* @noflip */ | ||
text-align: right; | text-align: right; | ||
} | |||
.infobox.bordered { | |||
border-collapse: collapse; | |||
} | |||
/* TODO split definitions to appropriate class names when live from HTML element */ | |||
.infobox.bordered td, | |||
.infobox.bordered th { | |||
border: 1px solid #a2a9b1; | |||
} | |||
/* TODO split definitions to appropriate class names when live from HTML element */ | |||
.infobox.bordered .borderless td, | |||
.infobox.bordered .borderless th { | |||
border: 0; | |||
} | |||
/* styles for bordered infobox with merged rows */ | |||
/* TODO split definitions to appropriate class names when live from HTML element */ | |||
.infobox.bordered .mergedtoprow td, | |||
.infobox.bordered .mergedtoprow th { | |||
border: 0; | |||
border-top: 1px solid #a2a9b1; | |||
/* @noflip */ | |||
border-right: 1px solid #a2a9b1; | |||
} | |||
/* TODO split definitions to appropriate class names when live from HTML element */ | |||
.infobox.bordered .mergedrow td, | |||
.infobox.bordered .mergedrow th { | |||
border: 0; | |||
/* @noflip */ | |||
border-right: 1px solid #a2a9b1; | |||
} | |||
/* Styles for geography infoboxes, eg countries, | |||
country subdivisions, cities, etc. */ | |||
.infobox.geography { | |||
border-collapse: collapse; | |||
line-height: 1.2em; | |||
font-size: 90%; | |||
} | |||
/* TODO split definitions to appropriate class names when live from HTML element */ | |||
.infobox.geography td, | |||
.infobox.geography th { | |||
border-top: 1px solid #a2a9b1; | |||
padding: 0.4em 0.6em 0.4em 0.6em; | |||
} | |||
/* TODO split definitions to appropriate class names when live from HTML element */ | |||
.infobox.geography .mergedtoprow td, | |||
.infobox.geography .mergedtoprow th { | |||
border-top: 1px solid #a2a9b1; | |||
padding: 0.4em 0.6em 0.2em 0.6em; | |||
} | |||
/* TODO split definitions to appropriate class names when live from HTML element */ | |||
.infobox.geography .mergedrow td, | |||
.infobox.geography .mergedrow th { | |||
border: 0; | |||
padding: 0 0.6em 0.2em 0.6em; | |||
} | |||
/* TODO split definitions to appropriate class names when live from HTML element */ | |||
.infobox.geography .mergedbottomrow td, | |||
.infobox.geography .mergedbottomrow th { | |||
border-top: 0; | |||
border-bottom: 1px solid #a2a9b1; | |||
padding: 0 0.6em 0.4em 0.6em; | |||
} | |||
/* TODO split definitions to appropriate class names when live from HTML element */ | |||
.infobox.geography .maptable td, | |||
.infobox.geography .maptable th { | |||
border: 0; | |||
padding: 0; | |||
} | } | ||
/* Normal font styling for wikitable row headers with scope="row" tag */ | /* Normal font styling for wikitable row headers with scope="row" tag */ | ||
.wikitable.plainrowheaders th[scope=row | .wikitable.plainrowheaders th[scope=row] { | ||
font-weight: normal; | font-weight: normal; | ||
/* @noflip */ | /* @noflip */ | ||
Line 454: | Line 479: | ||
} | } | ||
/* ambox/tmbox/imbox/cmbox/ombox/fmbox message boxes */ | /* Lists in wikitable data cells are always left-aligned */ | ||
th.mbox-text, | .wikitable td ul, | ||
td.mbox-text { /* The message body cell(s) */ | .wikitable td ol, | ||
.wikitable td dl { | |||
/* @noflip */ | |||
text-align: left; | |||
} | |||
/* ...unless they also use the hlist class */ | |||
.toc.hlist ul, | |||
#toc.hlist ul, | |||
.wikitable.hlist td ul, | |||
.wikitable.hlist td ol, | |||
.wikitable.hlist td dl { | |||
text-align: inherit; | |||
} | |||
/* Fix for hieroglyphs specificity issue in infoboxes ([[phab:T43869]]) */ | |||
table.mw-hiero-table td { | |||
vertical-align: middle; | |||
} | |||
/* 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 { | |||
background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right; | |||
/* @noflip */ | |||
padding-right: 18px; | |||
} | |||
/* Messagebox templates */ | |||
.messagebox { | |||
border: 1px solid #a2a9b1; | |||
background-color: #f8f9fa; | |||
width: 80%; | |||
margin: 0 auto 1em auto; | |||
padding: .2em; | |||
} | |||
.messagebox.merge { | |||
border: 1px solid #c0b8cc; | |||
background-color: #f0e5ff; | |||
text-align: center; | |||
} | |||
.messagebox.cleanup { | |||
border: 1px solid #9f9fff; | |||
background-color: #efefff; | |||
text-align: center; | |||
} | |||
.messagebox.standard-talk { | |||
border: 1px solid #c0c090; | |||
background-color: #f8eaba; | |||
margin: 4px auto; | |||
} | |||
/* For old WikiProject banners inside banner shells. */ | |||
.mbox-inside .standard-talk { | |||
border: 1px solid #c0c090; | |||
background-color: #f8eaba; | |||
width: 100%; | |||
margin: 2px 0; | |||
padding: 2px; | |||
} | |||
.messagebox.small { | |||
width: 238px; | |||
font-size: 85%; | |||
/* @noflip */ | |||
float: right; | |||
clear: both; | |||
/* @noflip */ | |||
margin: 0 0 1em 1em; | |||
line-height: 1.25em; | |||
} | |||
.messagebox.small-talk { | |||
width: 238px; | |||
font-size: 85%; | |||
/* @noflip */ | |||
float: right; | |||
clear: both; | |||
/* @noflip */ | |||
margin: 0 0 1em 1em; | |||
line-height: 1.25em; | |||
background-color: #f8eaba; | |||
} | |||
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */ | |||
th.mbox-text, td.mbox-text { /* The message body cell(s) */ | |||
border: none; | border: none; | ||
/* @noflip */ | /* @noflip */ | ||
Line 493: | Line 610: | ||
} | } | ||
/* Single border between stacked boxes. */ | table.ambox + table.ambox { /* Single border between stacked boxes. */ | ||
margin-top: -1px; | margin-top: -1px; | ||
} | } | ||
Line 755: | Line 870: | ||
table.fmbox-editnotice { | table.fmbox-editnotice { | ||
background-color: transparent; | background-color: transparent; | ||
} | |||
/* Div based "warning" style fmbox messages. */ | |||
div.mw-warning-with-logexcerpt, | |||
div.mw-lag-warn-high, | |||
div.mw-cascadeprotectedwarning, | |||
div#mw-protect-cascadeon, | |||
div.titleblacklist-warning, | |||
div.locked-warning { | |||
clear: both; | |||
margin: 0.2em 0; | |||
border: 1px solid #bb7070; | |||
background-color: #ffdbdb; | |||
padding: 0.25em 0.9em; | |||
box-sizing: border-box; | |||
} | |||
/* Use default color for partial block fmbox banner per [[Special:PermaLink/1028105567#pblock-style]] */ | |||
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt { | |||
border-color: #fc3; | |||
background-color: #fef6e7; | |||
} | } | ||
Line 782: | Line 918: | ||
font-size: 88%; | font-size: 88%; | ||
line-height: 1.25em; | line-height: 1.25em; | ||
} | |||
/* Style for compact ambox */ | |||
/* Hide the images */ | |||
.compact-ambox table .mbox-image, | |||
.compact-ambox table .mbox-imageright, | |||
.compact-ambox table .mbox-empty-cell { | |||
display: none; | |||
} | |||
/* Remove borders, backgrounds, padding, etc. */ | |||
.compact-ambox table.ambox { | |||
border: none; | |||
border-collapse: collapse; | |||
background-color: transparent; | |||
margin: 0 0 0 1.6em !important; | |||
padding: 0 !important; | |||
width: auto; | |||
display: block; | |||
} | |||
body.mediawiki .compact-ambox table.mbox-small-left { | |||
font-size: 100%; | |||
width: auto; | |||
margin: 0; | |||
} | |||
/* Style the text cell as a list item and remove its padding */ | |||
.compact-ambox table .mbox-text { | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
} | |||
.compact-ambox table .mbox-text-span { | |||
display: list-item; | |||
line-height: 1.5em; | |||
list-style-type: square; | |||
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg); | |||
} | |||
/* Allow for hiding text in compact form */ | |||
.compact-ambox .hide-when-compact { | |||
display: none; | |||
} | } | ||
Line 802: | Line 981: | ||
.wraplinks a { | .wraplinks a { | ||
white-space: normal; | white-space: normal; | ||
} | |||
/* Increase the height of the image upload box */ | |||
#wpUploadDescription { | |||
height: 13em; | |||
} | |||
/* Minimum thumb width */ | |||
.thumbinner { | |||
min-width: 100px; | |||
} | |||
/* Prevent floating boxes from overlapping any category listings, | |||
file histories, edit previews, and edit [Show changes] views. */ | |||
#mw-subcategories, | |||
#mw-pages, | |||
#mw-category-media, | |||
#filehistory, | |||
#wikiPreview, | |||
#wikiDiff { | |||
clear: both; | |||
} | |||
/* Selectively hide headers in WikiProject banners */ | |||
/* TemplateStyles */ | |||
.wpb .wpb-header { | |||
display: none; | |||
} | |||
.wpbs-inner .wpb .wpb-header { | |||
display: table-row; | |||
} | |||
.wpbs-inner .wpb-outside { | |||
display: none; /* hide things that should only display outside shells */ | |||
} | |||
/* Styling for Abuse Filter tags */ | |||
.mw-tag-markers { | |||
font-style: italic; | |||
font-size: 90%; | |||
} | |||
/* Hide stuff meant for accounts with special permissions. Made visible again in | |||
[[MediaWiki:Group-checkuser.css]], [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-patroller.css]], | |||
[[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]], | |||
[[MediaWiki:Group-extendedconfirmed.css]], and [[Mediawiki:Group-autoconfirmed.css]]. */ | |||
.checkuser-show, | |||
.sysop-show, | |||
.patroller-show, | |||
.templateeditor-show, | |||
.extendedmover-show, | |||
.extendedconfirmed-show, | |||
.autoconfirmed-show, | |||
.user-show { | |||
display: none; | |||
} | |||
/* Hide the redlink generated by {{Editnotice}}, | |||
this overrides the ".sysop-show { display: none; }" above that applies | |||
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 .mbox-image, | |||
.ve-ui-mwNoticesPopupTool-item .mbox-imageright { | |||
display: none !important; | |||
} | |||
/* Remove bullets when there are multiple edit page warnings */ | |||
ul.permissions-errors > li { | |||
list-style: none none; | |||
} | |||
ul.permissions-errors { | |||
margin: 0; | |||
} | } | ||
Line 811: | Line 1,067: | ||
white-space: nowrap; | white-space: nowrap; | ||
/* Force tabular and lining display for texhtml */ | /* Force tabular and lining display for texhtml */ | ||
-moz-font-feature-settings: "lnum", "tnum", "kern" 0; | |||
-webkit-font-feature-settings: "lnum", "tnum", "kern" 0; | -webkit-font-feature-settings: "lnum", "tnum", "kern" 0; | ||
font-feature-settings: "lnum", "tnum", "kern" 0; | font-feature-settings: "lnum", "tnum", "kern" 0; | ||
Line 819: | Line 1,076: | ||
span.texhtml span.texhtml { | span.texhtml span.texhtml { | ||
font-size: 100%; | font-size: 100%; | ||
} | |||
span.mwe-math-mathml-inline { | |||
font-size: 118%; | |||
} | |||
/* 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; | |||
} | |||
/* Work-around for [[phab:T25965]] / [[phab:T100106]] (Kaltura advertisement) */ | |||
.k-player .k-attribution { | |||
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; | |||
} | } | ||
@media screen { | @media screen { | ||
/* Gallery styles background changes are restricted to screen view. | |||
In printing we should avoid applying backgrounds. */ | |||
/* 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 { | .nochecker .gallerybox .thumb img { | ||
background-image: none; | background-image: none; | ||
} | |||
/* Display "From Wikipedia, the free encyclopedia" in skins that support it, | |||
do not apply to print mode */ | |||
#siteSub { | |||
display: block; | |||
} | } | ||
} | } | ||
/* | /* Hide FlaggedRevs notice UI when there are no pending changes */ | ||
.flaggedrevs_draft_synced, | |||
.flaggedrevs_stable_synced, | |||
/* "Temporary" to remove links in sidebar T255381 */ | |||
#t-upload, | |||
/* Hide broken download box on Special:Book pending T285400 */ | |||
.mw-special-Book #coll-downloadbox { | |||
display: none; | |||
} |