Actions

MediaWiki

Common.css: Difference between revisions

From Anthrodia Atlas

dev>Pppery
Per request
Add codex design token for background color per request on talk
Line 1: Line 1:
/* Default style for navigation boxes */
/*
.navbox {                    /* Navbox container style */
* This is the CSS common to all desktop skins on en.Wikipedia.
box-sizing: border-box;
* Styling inside .mw-parser-output should generally use TemplateStyles.
border: 1px solid #a2a9b1;
*/
width: 100%;
/* Reset italic styling set by user agent */
clear: both;
cite,
font-size: 88%;
dfn {
text-align: center;
font-style: inherit;
padding: 1px;
margin: 1em auto 0;      /* Prevent preceding content from clinging to navboxes */
}
}
.navbox .navbox {
 
margin-top: 0;            /* No top margin for nested navboxes */
/* Straight quote marks for <q> */
q {
quotes: '"' '"' "'" "'";
}
}
.navbox + .navbox {
 
margin-top: -1px;         /* Single pixel border between adjacent navboxes */
/* Avoid collision of blockquote with floating elements by swapping margin and padding */
blockquote {
overflow: hidden;
margin: 1em 0;
padding: 0 40px;
}
}
.navbox-inner,
 
.navbox-subgroup {
/* Consistent size for <small>, <sub> and <sup> */
width: 100%;
small {
font-size: 85%;
}
}
.navbox-group,
 
.navbox-title,
.mw-body-content sub,
.navbox-abovebelow {
.mw-body-content sup {
padding: 0.25em 1em;      /* Title, group and above/below styles */
font-size: 80%;
line-height: 1.5em;
text-align: center;
}
}
th.navbox-group {            /* Group style */
 
white-space: nowrap;
/* Same spacing for indented and unindented paragraphs on talk pages */
/* @noflip */
.ns-talk .mw-body-content dd {
text-align: right;
margin-top: 0.4em;
}
margin-bottom: 0.4em;
.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 */
}
}


/* Default styling for Navbar template */
/* Reduce page jumps by hiding collapsed/dismissed content */
.navbar {
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child),
display: inline;
 
font-size: 88%;
/* Avoid FOUC/reflows on collapsed elements. */
font-weight: normal;
/* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). */
}
/* TODO: Use :is() selector at some reasonable future when support is good for Most Clients */
.navbar ul {
/* Reference: https://gerrit.wikimedia.org/g/mediawiki/core/+/ecda06cb2aef55b77c4b4d7ecda492d634419ead/resources/src/jquery/jquery.makeCollapsible.styles.less#75 */
display: inline;
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > p,
white-space: nowrap;
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > table,
}
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > thead + tbody,
.mw-body-content .navbar ul {
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) tr:not( :first-child ),
line-height: inherit;
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) .mw-collapsible-content,
}
.navbar li {
word-spacing: -0.125em;
}
.navbar.mini li abbr[title] {
font-variant: small-caps;
border-bottom: none;
text-decoration: none;
cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
font-size: 100%;
}
.navbox .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
}


.infobox {
/* Hide charinsert base for those not using the gadget */
border: 1px solid #a2a9b1;
#editpage-specialchars {
border-spacing: 3px;
display: none;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
padding: 0.2em;
text-align: center;
}
.infobox td,
.infobox th {
vertical-align: top;
/* @noflip */
text-align: left;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}
}


.infobox.sisterproject {
/* Make the list of references smaller
width: 20em;
* Keep in sync with Template:Refbegin/styles.css
* And Template:Reflist/styles.css
*/
ol.references {
font-size: 90%;
font-size: 90%;
margin-bottom: 0.5em;
}
}


.infobox.standard-talk {
/* Cite customizations for Parsoid
border: 1px solid #c0c090;
* Once everything uses the one true parser these are just customizations
background-color: #f8eaba;
*/
span[ rel="mw:referencedBy" ] {
counter-reset: mw-ref-linkback 0;
}
}
.infobox.standard-talk.bordered td,
 
.infobox.standard-talk.bordered th {
span[ rel='mw:referencedBy' ] > a::before {
border: 1px solid #c0c090;
content: counter( mw-ref-linkback, lower-alpha );
font-size: 80%;
font-weight: bold;
font-style: italic;
}
}


/* styles for bordered infobox with merged rows */
a[ rel="mw:referencedBy" ]::before {
.infobox.bordered .mergedtoprow td,
font-weight: bold;
.infobox.bordered .mergedtoprow th {
content: "^";
border: 0;
border-top: 1px solid #a2a9b1;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
}


.infobox.bordered .mergedrow td,
span[ rel="mw:referencedBy" ]::before {
.infobox.bordered .mergedrow th {
content: "^ ";
border: 0;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
}


/* Styles for geography infoboxes, eg countries,
.mw-ref > a[data-mw-group=lower-alpha]::after {
  country subdivisions, cities, etc.           */
content: '[' counter( mw-Ref, lower-alpha ) ']';
.infobox.geography {
border-collapse: collapse;
line-height: 1.2em;
font-size: 90%;
}
}


.infobox.geography  td,
.mw-ref > a[data-mw-group=upper-alpha]::after {
.infobox.geography  th {
content: '[' counter( mw-Ref, upper-alpha ) ']';
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.2em 0.6em;
}
}


.infobox.geography .mergedrow td,
.mw-ref > a[data-mw-group=decimal]::after {
.infobox.geography .mergedrow th {
content: '[' counter( mw-Ref, decimal ) ']';
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
}


.infobox.geography .mergedbottomrow td,
.mw-ref > a[data-mw-group=lower-roman]::after {
.infobox.geography .mergedbottomrow th {
content: '[' counter( mw-Ref, lower-roman ) ']';
border-top: 0;
border-bottom: 1px solid #a2a9b1;
padding: 0 0.6em 0.4em 0.6em;
}
}


.infobox.geography .maptable td,
.mw-ref > a[data-mw-group=upper-roman]::after {
.infobox.geography .maptable th {
content: '[' counter( mw-Ref, upper-roman ) ']';
border: 0;
padding: 0;
}
}


div.listenlist {
.mw-ref > a[data-mw-group=lower-greek]::after {
background: url("//upload.wikimedia.org/wikipedia/commons/4/47/Sound-icon.svg") no-repeat scroll 0 0 transparent;
content: '[' counter( mw-Ref, lower-greek ) ']';
background-size: 30px;
padding-left: 40px;
}
}


/* Fix for hieroglyphs specificity issue in infoboxes ([[phab:T43869]]) */
/* Styling for jQuery makeCollapsible, matching that of collapseButton */
table.mw-hiero-table td {
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) {
vertical-align: middle;
font-weight: normal;
padding-right: 0.2em;
padding-left: 0.2em;
}
}


/* Style rules for media list templates */
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
/* TemplateStyles */
div.medialist {
min-height: 50px;
margin: 1em;
/* @noflip */
/* @noflip */
background-position: top left;
float: left;
background-repeat: no-repeat;
}
div.medialist ul {
list-style-type: none;
list-style-image: none;
margin: 0;
}
div.medialist ul li {
padding-bottom: 0.5em;
}
div.medialist ul li li {
font-size: 91%;
padding-bottom: 0;
}
}


/* Messagebox templates */
/* Lists in wikitable data cells are always left-aligned */
.messagebox {
.wikitable td ul,
border: 1px solid #a2a9b1;
.wikitable td ol,
background-color: #f8f9fa;
.wikitable td dl {
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,
.messagebox.nested-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
width: 100%;
margin: 2px 0;
padding: 2px;
}
.messagebox.small {
width: 238px;
font-size: 85%;
/* @noflip */
/* @noflip */
float: right;
text-align: left;
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 */
/* Change the external link icon to a PDF icon for all PDF files */
th.mbox-text, td.mbox-text {  /* The message body cell(s) */
.mw-parser-output a[href$=".pdf"].external,
border: none;
.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/4/4d/Icon_pdf_file.png") no-repeat right;
/* @noflip */
/* @noflip */
padding: 0.25em 0.9em;    /* 0.9em left/right */
padding: 8px 18px 8px 0;
width: 100%;              /* Make all mboxes the same width regardless of text length */
}
td.mbox-image {                /* The left image cell */
border: none;
/* @noflip */
padding: 2px 0 2px 0.9em;  /* 0.9em left, 0px right */
text-align: center;
}
td.mbox-imageright {          /* The right image cell */
border: none;
/* @noflip */
padding: 2px 0.9em 2px 0;  /* 0px left, 0.9em right */
text-align: center;
}
td.mbox-empty-cell {          /* An empty narrow cell */
border: none;
padding: 0;
width: 1px;
}
}


/* Article message box styles */
/* System messages styled similarly to fmbox */
table.ambox {
/* for .mw-warning-with-logexcerpt, behavior of this line differs between
margin: 0 10%;                  /* 10% = Will not overlap with other elements */
* the edit-protected notice and the special:Contribs for blocked users
border: 1px solid #a2a9b1;
* The latter has specificity of 3 classes so we have to triple up here.
/* @noflip */
*/
border-left: 10px solid #36c; /* Default "notice" blue */
.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt,
background-color: #fbfbfb;
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: var(--background-color-error-subtle, #ffdbdb);
padding: 0.25em 0.9em;
box-sizing: border-box;
box-sizing: border-box;
}
}
table.ambox + table.ambox {      /* Single border between stacked boxes. */
 
margin-top: -1px;
/* default colors for partial block message */
/* gotta get over the hump introduced by the triple class above */
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt.mw-warning-with-logexcerpt {
border-color: #fc3;
background-color: #fef6e7;
}
}
.ambox th.mbox-text,
 
.ambox td.mbox-text {            /* The message body cell(s) */
/* Minimum thumb width */
padding: 0.25em 0.5em;       /* 0.5em left/right */
figure[typeof~='mw:File/Thumb'],
figure[typeof~='mw:File/Frame'],
.thumbinner {
min-width: 100px;
}
}
.ambox td.mbox-image {          /* The left image cell */
 
/* @noflip */
/* Prevent floating boxes from overlapping any category listings,
padding: 2px 0 2px 0.5em;   /* 0.5em left, 0px right */
  file histories, edit previews, and edit [Show changes] views. */
#mw-subcategories,
#mw-pages,
#mw-category-media,
#filehistory,
#wikiPreview,
#wikiDiff {
clear: both;
}
}
.ambox td.mbox-imageright {      /* The right image cell */
 
/* @noflip */
/* Styling for tags in changes pages */
padding: 2px 0.5em 2px 0;   /* 0px left, 0.5em right */
.mw-tag-markers {
font-style: italic;
font-size: 90%;
}
}


table.ambox-notice {
/* Hide stuff meant for accounts with special permissions. Made visible again in
/* @noflip */
  [[MediaWiki:Group-checkuser.css]], [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-abusefilter.css]],
border-left: 10px solid #36c;       /* Blue */
  [[MediaWiki:Group-abusefilter-helper.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,
.abusefilter-show,
.abusefilter-helper-show,
.patroller-show,
.templateeditor-show,
.extendedmover-show,
.extendedconfirmed-show,
.autoconfirmed-show,
.user-show {
display: none;
}
}
table.ambox-speedy {
 
/* @noflip */
/* Hide the redlink generated by {{Editnotice}},
border-left: 10px solid #b32424;    /* Red */
  this overrides the ".sysop-show { display: none; }" above that applies
background-color: #fee7e6;          /* Pink */
   to the same link as well. See [[phab:T45013]]
}
 
table.ambox-delete {
  Hide the images in editnotices to keep them readable in VE view.
/* @noflip */
   Long term, editnotices should become a core feature so that they can be designed responsive. */
border-left: 10px solid #b32424;   /* Red */
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,
}
.ve-ui-mwNoticesPopupTool-item .mbox-image,
table.ambox-content {
.ve-ui-mwNoticesPopupTool-item .mbox-imageright {
/* @noflip */
display: none !important;
border-left: 10px solid #f28500;    /* Orange */
}
table.ambox-style {
/* @noflip */
border-left: 10px solid #fc3;      /* Yellow */
}
table.ambox-move {
/* @noflip */
border-left: 10px solid #9932cc;    /* Purple */
}
table.ambox-protection {
/* @noflip */
border-left: 10px solid #a2a9b1;   /* Gray-gold */
}
}


/* Image message box styles */
/* Remove bullets when there are multiple edit page warnings */
table.imbox {
ul.permissions-errors {
margin: 4px 10%;
margin: 0;
border-collapse: collapse;
border: 3px solid #36c;    /* Default "notice" blue */
background-color: #fbfbfb;
box-sizing: border-box;
}
.imbox .mbox-text .imbox { /* For imboxes inside imbox-text cells. */
margin: 0 -0.5em;      /* 0.9 - 0.5 = 0.4em left/right.        */
display: block;        /* Fix for webkit to force 100% width.  */
}
.mbox-inside .imbox {      /* For imboxes inside other templates.  */
margin: 4px;
}
}


table.imbox-notice {
ul.permissions-errors > li {
border: 3px solid #36c;      /* Blue */
list-style: none;
}
table.imbox-speedy {
border: 3px solid #b32424;    /* Red */
background-color: #fee7e6;    /* Pink */
}
table.imbox-delete {
border: 3px solid #b32424;    /* Red */
}
table.imbox-content {
border: 3px solid #f28500;    /* Orange */
}
table.imbox-style {
border: 3px solid #fc3;       /* Yellow */
}
table.imbox-move {
border: 3px solid #9932cc;    /* Purple */
}
table.imbox-protection {
border: 3px solid #a2a9b1;    /* Gray-gold */
}
table.imbox-license {
border: 3px solid #88a;      /* Dark gray */
background-color: #f7f8ff;    /* Light gray */
}
table.imbox-featured {
border: 3px solid #cba135;    /* Brown-gold */
}
}


/* Category message box styles */
/* larger inline math */
table.cmbox {
span.mwe-math-mathml-inline {
margin: 3px 10%;
font-size: 118%;
border-collapse: collapse;
border: 1px solid #a2a9b1;
background-color: #DFE8FF;    /* Default "notice" blue */
box-sizing: border-box;
}
}


table.cmbox-notice {
/* Make <math display="block"> be left aligned with one space indent for
background-color: #D8E8FF;    /* Blue */
* compatibility with style conventions
}
*/
table.cmbox-speedy {
.mwe-math-fallback-image-display,
margin-top: 4px;
.mwe-math-mathml-display {
margin-bottom: 4px;
margin-left: 1.6em !important;
border: 4px solid #b32424;    /* Red */
margin-top: 0.6em;
background-color: #FFDBDB;    /* Pink */
margin-bottom: 0.6em;
}
table.cmbox-delete {
background-color: #FFDBDB;    /* Red */
}
table.cmbox-content {
background-color: #FFE7CE;   /* Orange */
}
table.cmbox-style {
background-color: #FFF9DB;   /* Yellow */
}
table.cmbox-move {
background-color: #E4D8FF;    /* Purple */
}
table.cmbox-protection {
background-color: #EFEFE1;   /* Gray-gold */
}
}


/* Other pages message box styles */
.mwe-math-mathml-display math {
table.ombox {
display: inline;
margin: 4px 10%;
border-collapse: collapse;
border: 1px solid #a2a9b1;    /* Default "notice" gray */
background-color: #f8f9fa;
box-sizing: border-box;
}
}


table.ombox-notice {
@media screen {
border: 1px solid #a2a9b1;    /* Gray */
/* Put a chequered background behind images, only visible if they have transparency,
}
* except on main, user, and portal namespaces
table.ombox-speedy {
*/
border: 2px solid #b32424;    /* Red */
body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img {
background-color: #fee7e6;    /* Pink */
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
}
}
table.ombox-delete {
border: 2px solid #b32424;    /* Red */
}
table.ombox-content {
border: 1px solid #f28500;    /* Orange */
}
table.ombox-style {
border: 1px solid #fc3;      /* Yellow */
}
table.ombox-move {
border: 1px solid #9932cc;    /* Purple */
}
table.ombox-protection {
border: 2px solid #a2a9b1;    /* Gray-gold */
}


/* Talk page message box styles */
/* Display "From Wikipedia, the free encyclopedia" in skins that support it,
table.tmbox {
  do not apply to print mode */
margin: 4px 10%;
#siteSub {
border-collapse: collapse;
display: block;
border: 1px solid #c0c090;    /* Default "notice" gray-brown */
}
background-color: #f8eaba;
min-width: 80%;
box-sizing: border-box;
}
.tmbox.mbox-small {
min-width: 0;                /* reset the min-width of tmbox above        */
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
margin: 2px 0;              /* this declaration overrides other styles (including mbox-small above)  */
width: 100%;                /* For Safari and Opera */
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
line-height: 1.5em;         /* also "nested", so reset styles that are  */
font-size: 100%;            /* set in "mbox-small" above.                */
}
}


table.tmbox-speedy {
/* Hide FlaggedRevs notice UI when there are no pending changes */
border: 2px solid #b32424;    /* Red */
.flaggedrevs_draft_synced,
background-color: #fee7e6;    /* Pink */
.flaggedrevs_stable_synced,
}
/* "Temporary" to remove links in sidebar T255381 */
table.tmbox-delete {
#t-upload,
border: 2px solid #b32424;    /* Red */
/* Hide broken download box on Special:Book pending T285400 */
}
.mw-special-Book #coll-downloadbox {
table.tmbox-content {
display: none;
border: 2px solid #f28500;    /* Orange */
}
table.tmbox-style {
border: 2px solid #fc3;      /* Yellow */
}
table.tmbox-move {
border: 2px solid #9932cc;    /* Purple */
}
table.tmbox-protection,
table.tmbox-notice {
border: 1px solid #c0c090;   /* Gray-brown */
}
}


/* Disambig and set index box styles */
/*
table.dmbox {
* BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
clear: both;
* SEE [[MediaWiki talk:Common.css/to do]]
margin: 0.9em 1em;
*/
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
background-color: transparent;
}


/* Footer and header message box styles */
/* Infobox template style */
table.fmbox {
.infobox {
clear: both;
margin: 0.2em 0;
width: 100%;
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;     /* Default "system" gray */
border-spacing: 3px;
box-sizing: border-box;
}
table.fmbox-system {
background-color: #f8f9fa;
background-color: #f8f9fa;
}
color: black;
table.fmbox-warning {
border: 1px solid #bb7070;  /* Dark pink */
background-color: #ffdbdb;  /* Pink */
}
table.fmbox-editnotice {
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;
}
 
/* These mbox-small classes must be placed after all other
  ambox/tmbox/ombox etc classes. "html body.mediawiki" is so
  they override "table.ambox + table.ambox" above. */
html body.mediawiki .mbox-small {  /* For the "small=yes" option. */
/* @noflip */
/* @noflip */
clear: right;
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
/* @noflip */
float: right;
float: right;
/* @noflip */
/* @noflip */
margin: 4px 0 4px 1em;
clear: right;
box-sizing: border-box;
width: 238px;
font-size: 88%;
font-size: 88%;
line-height: 1.25em;
line-height: 1.5em;
width: 22em;
}
 
.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
vertical-align: top;
}
}
html body.mediawiki .mbox-small-left {  /* For the "small=left" option. */
 
.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
/* @noflip */
/* @noflip */
margin: 4px 1em 4px 0;
text-align: left;
box-sizing: border-box;
}
overflow: hidden;
 
width: 238px;
/* Remove .infobox when element selectors above are removed */
border-collapse: collapse;
.infobox .infobox-above,
font-size: 88%;
.infobox .infobox-title,
line-height: 1.25em;
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
font-size: 125%;
font-weight: bold;
text-align: center;
}
}


/* Style for compact ambox */
.infobox-title,
/* Hide the images */
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.compact-ambox table .mbox-image,
.infobox caption {
.compact-ambox table .mbox-imageright,
padding: 0.2em;
.compact-ambox table .mbox-empty-cell {
display: none;
}
}
/* Remove borders, backgrounds, padding, etc. */
 
.compact-ambox table.ambox {
/* Remove .infobox when element selectors above are removed */
border: none;
.infobox .infobox-header,
border-collapse: collapse;
.infobox .infobox-subheader,
background-color: transparent;
.infobox .infobox-image,
margin: 0 0 0 1.6em !important;
.infobox .infobox-full-data,
padding: 0 !important;
.infobox .infobox-below {
width: auto;
text-align: center;
display: block;
}
}
body.mediawiki .compact-ambox table.mbox-small-left {
 
font-size: 100%;
/* Remove .infobox when element selectors above are removed */
width: auto;
.infobox .infobox-navbar {
margin: 0;
/* @noflip */
text-align: right;
}
}
/* Style the text cell as a list item and remove its padding */
 
.compact-ambox table .mbox-text {
/* Normal font styling for wikitable row headers with scope="row" tag */
padding: 0 !important;
.wikitable.plainrowheaders th[scope=row],
margin: 0 !important;
.wikitable.plainrowheaders th[scope=rowgroup] {
font-weight: normal;
/* @noflip */
text-align: left;
}
}
.compact-ambox table .mbox-text-span {
 
display: list-item;
/* Remove underlines from certain links */
line-height: 1.5em;
.nounderlines a,
list-style-type: square;
.IPA a:link,
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.gif);
.IPA a:visited {
text-decoration: none !important;
}
}
.skin-vector .compact-ambox table .mbox-text-span {
 
list-style-type: disc;
/* Prevent line breaks in silly places where desired (nowrap)
list-style-image: url(/w/skins/Vector/images/bullet-icon.svg);
  and links when we don't want them to (nowraplinks a) */
list-style-image: url(/w/skins/Vector/images/bullet-icon.png)\9;
.nowrap,
.nowraplinks a {
white-space: nowrap;
}
}
/* Allow for hiding text in compact form */
 
.compact-ambox .hide-when-compact {
/* But allow wrapping where desired: */
display: none;
.wrap,
.wraplinks a {
white-space: normal;
}
}


/* For template documentation */
/* texhtml class for inline math (based on generic times-serif class) */
/* TemplateStyles */
span.texhtml {
.template-documentation {
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
clear: both;
font-size: 118%;
margin: 1em 0 0 0;
line-height: 1;
border: 1px solid #a2a9b1;
white-space: nowrap;
background-color: #ecfcf4;
/* Force tabular and lining display for texhtml */
padding: 1em;
font-variant-numeric: lining-nums tabular-nums;
font-kerning: none;
}
}


.floatright {
span.texhtml span.texhtml {
    margin: 0 0 0.5em 0.5em;
font-size: 100%;
    clear: right;
    float: right;
}
}


.floatleft {
@media screen {
    margin: 0 0.5em 0.5em 0;
.nochecker .gallerybox .thumb img {
    float: left;
background-image: none;
    clear: left;
}
}
}
/* Put anything you mean to be a sitewide addition above the TemplateStyles
* comment above.
*/

Revision as of 17:34, 17 June 2024

/*
 * This is the CSS common to all desktop skins on en.Wikipedia.
 * Styling inside .mw-parser-output should generally use TemplateStyles.
 */
/* 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;
}

/* Consistent size for <small>, <sub> and <sup> */
small {
	font-size: 85%;
}

.mw-body-content sub,
.mw-body-content sup {
	font-size: 80%;
}

/* Same spacing for indented and unindented paragraphs on talk pages */
.ns-talk .mw-body-content dd {
	margin-top: 0.4em;
	margin-bottom: 0.4em;
}

/* Reduce page jumps by hiding collapsed/dismissed content */
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child),

/* Avoid FOUC/reflows on collapsed elements. */
/* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). */
/* TODO: Use :is() selector at some reasonable future when support is good for Most Clients */
/* Reference: https://gerrit.wikimedia.org/g/mediawiki/core/+/ecda06cb2aef55b77c4b4d7ecda492d634419ead/resources/src/jquery/jquery.makeCollapsible.styles.less#75 */
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > p,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > table,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > thead + tbody,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) tr:not( :first-child ),
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) .mw-collapsible-content,

/* Hide charinsert base for those not using the gadget */
#editpage-specialchars {
	display: none;
}

/* Make the list of references smaller
 * Keep in sync with Template:Refbegin/styles.css
 * And Template:Reflist/styles.css
 */
ol.references {
	font-size: 90%;
	margin-bottom: 0.5em;
}

/* Cite customizations for Parsoid
 * Once everything uses the one true parser these are just customizations
 */
span[ rel="mw:referencedBy" ] {
	counter-reset: mw-ref-linkback 0;
}

span[ rel='mw:referencedBy' ] > a::before {
	content: counter( mw-ref-linkback, lower-alpha );
	font-size: 80%;
	font-weight: bold;
	font-style: italic;
}

a[ rel="mw:referencedBy" ]::before {
	font-weight: bold;
	content: "^";
}

span[ rel="mw:referencedBy" ]::before {
	content: "^ ";
}

.mw-ref > a[data-mw-group=lower-alpha]::after {
	content: '[' counter( mw-Ref, lower-alpha ) ']';
}

.mw-ref > a[data-mw-group=upper-alpha]::after {
	content: '[' counter( mw-Ref, upper-alpha ) ']';
}

.mw-ref > a[data-mw-group=decimal]::after {
	content: '[' counter( mw-Ref, decimal ) ']';
}

.mw-ref > a[data-mw-group=lower-roman]::after {
	content: '[' counter( mw-Ref, lower-roman ) ']';
}

.mw-ref > a[data-mw-group=upper-roman]::after {
	content: '[' counter( mw-Ref, upper-roman ) ']';
}

.mw-ref > a[data-mw-group=lower-greek]::after {
	content: '[' counter( mw-Ref, lower-greek ) ']';
}

/* Styling for jQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) {
	font-weight: normal;
	padding-right: 0.2em;
	padding-left: 0.2em;
}

.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
	/* @noflip */
	float: left;
}

/* Lists in wikitable data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
	/* @noflip */
	text-align: left;
}

/* Change the external link icon to a PDF 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/4/4d/Icon_pdf_file.png") no-repeat right;
	/* @noflip */
	padding: 8px 18px 8px 0;
}

/* System messages styled similarly to fmbox */
/* for .mw-warning-with-logexcerpt, behavior of this line differs between
 * the edit-protected notice and the special:Contribs for blocked users
 * The latter has specificity of 3 classes so we have to triple up here.
 */
.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon {
	clear: both;
	margin: 0.2em 0;
	border: 1px solid #bb7070;
	background-color: var(--background-color-error-subtle, #ffdbdb);
	padding: 0.25em 0.9em;
	box-sizing: border-box;
}

/* default colors for partial block message */
/* gotta get over the hump introduced by the triple class above */
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt.mw-warning-with-logexcerpt {
	border-color: #fc3;
	background-color: #fef6e7;
}

/* Minimum thumb width */
figure[typeof~='mw:File/Thumb'],
figure[typeof~='mw:File/Frame'],
.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;
}

/* Styling for tags in changes pages */
.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-abusefilter.css]],
   [[MediaWiki:Group-abusefilter-helper.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,
.abusefilter-show,
.abusefilter-helper-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 {
	margin: 0;
}

ul.permissions-errors > li {
	list-style: none;
}

/* larger inline math */
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;
}

@media screen {
	/* Put a chequered background behind images, only visible if they have transparency,
	 * except on main, user, and portal namespaces
	 */
	body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img {
		background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
	}

	/* 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;
}

/*
 * BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
 * SEE [[MediaWiki talk:Common.css/to do]]
 */

/* Infobox template style */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	/* @noflip */
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	/* @noflip */
	float: right;
	/* @noflip */
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
	width: 22em;
}

.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	vertical-align: top;
}

.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	/* @noflip */
	text-align: left;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	font-size: 125%;
	font-weight: bold;
	text-align: center;
}

.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	padding: 0.2em;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
	text-align: center;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
	/* @noflip */
	text-align: right;
}

/* Normal font styling for wikitable row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row],
.wikitable.plainrowheaders th[scope=rowgroup] {
	font-weight: normal;
	/* @noflip */
	text-align: left;
}

/* Remove underlines from certain links */
.nounderlines a,
.IPA a:link,
.IPA a:visited {
	text-decoration: none !important;
}

/* Prevent line breaks in silly places where desired (nowrap)
   and links when we don't want them to (nowraplinks a) */
.nowrap,
.nowraplinks a {
	white-space: nowrap;
}

/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
	white-space: normal;
}

/* texhtml class for inline math (based on generic times-serif class) */
span.texhtml {
	font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
	font-size: 118%;
	line-height: 1;
	white-space: nowrap;
	/* Force tabular and lining display for texhtml */
	font-variant-numeric: lining-nums tabular-nums;
	font-kerning: none;
}

span.texhtml span.texhtml {
	font-size: 100%;
}

@media screen {
	.nochecker .gallerybox .thumb img {
		background-image: none;
	}
}

/* Put anything you mean to be a sitewide addition above the TemplateStyles
 * comment above.
 */