MediaWiki:Common.css: Difference between revisions

From PZwiki
mNo edit summary
(rounded corners fix for 'wikitable sortable')
 
(230 intermediate revisions by 4 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */  
/* CSS placed here will be applied to all skins */


/* Custom pztable */
/* pz-theme */
.pztable {
:root {
background-color: #F0EEDE;
  --color-mw: #eaecf0;
color: #222;
  --color-mw-border: #a2a9b1;
margin: 1em 0;
  --color-red: #68191b;
border: 1px solid #000;
  --color-blue: #185893;
border-collapse: collapse;
  --link-red: #ddd6c1;
  --link-blue: #c1d6dd;
  --background-mw: #f8f9fa;
  --background-mw-even: #f2f2f2;
  --background-mw-odd: #f9f9f9;
  --background-mw-heading: #e5e5e5;
  --background-red: #f4f3eb;
  --background-blue: #ebf3f4;
  --background-message-error: #fee7e6;
  --background-message-warn: #fef6e7;
  --background-message-info: #a3caff;
  --border-mw: 1px solid #a2a9b1;
  --border-red: 1px solid #460c10;
  --border-blue: 1px solid #0f304a;
  --border-message-error: 1px solid #d33;
  --border-message-warn: 1px solid #fc3;
  --border-message-info: 1px solid #3366cc;
  --border-radius: 0.5em;
  --shadow-mw: 0 0 0.5em 0.1em #00000080;
}
}


.pztable > tr > th,
/* Provide pixel art support, from https://stackoverflow.com/a/8888964/ */
.pztable > tr > td,
ul.mw-search-results > li.mw-search-result img,
.pztable > * > tr > th,
.gallery .gallerybox div.thumb img,
.pztable > * > tr > td {
img.pixelart {
border: 1px solid #000;
    image-rendering: optimizeSpeed;            /* Legal fallback */
padding: 0.2em 0.4em;
    image-rendering: -moz-crisp-edges;          /* Firefox        */
    image-rendering: -o-crisp-edges;            /* Opera          */
    image-rendering: -webkit-optimize-contrast; /* Safari        */
    image-rendering: optimize-contrast;        /* CSS3 Proposed  */
    image-rendering: pixelated;                /* CSS4 Proposed  */
    image-rendering: crisp-edges;               /* CSS4 Proposed  */
    -ms-interpolation-mode: nearest-neighbor;   /* IE8+          */
}
}


.pztable > tr > th,
/* Remove text decoration on link */
.pztable > * > tr > th {
.no-decoration a:hover {
background-color: #eaecf0;
    text-decoration: none;
color: #FFF;
text-align: center;
}
}


.pztable > caption {
/* TEMPORARY CLASS: change link colour for mw collapsible toggle */
font-weight: bold;
td.mw-collapse-data-color > span > a {
    color: #ffffff;
    text-decoration: none;  
}
}


/* Clearer background color for wikitable */
table.wikitable > tr > th,
table.wikitable > * > tr > th {
  background-color: var(--background-mw-heading);
}
table.wikitable tr:nth-child(even) td{
background-color: var(--background-mw-even);
}
table.wikitable tr:nth-child(odd) td{
background-color: var(--background-mw-odd);
}
/* rounded corners wikitable */
table.wikitable {
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    background: none;
    padding: 0;
}
table.wikitable > tr:first-child > th:first-child,
table.wikitable > tr:first-child > td:first-child,
table.wikitable > * > tr:first-child > th:first-child,
table.wikitable > * > tr:first-child > td:first-child {
    border-top-left-radius: var(--border-radius);
}
table.wikitable > tr:first-child > th:last-child,
table.wikitable > tr:first-child > td:last-child,
table.wikitable > * > tr:first-child > th:last-child,
table.wikitable > * > tr:first-child > td:last-child {
    border-top-right-radius: var(--border-radius);
}
table.wikitable > tr:last-child > td:first-child,
table.wikitable > tr:last-child > th:first-child,
table.wikitable > * > tr:last-child > td:first-child,
table.wikitable > * > tr:last-child > th:first-child {
    border-bottom-left-radius: var(--border-radius);
}
table.wikitable > tr:last-child > td:last-child,
table.wikitable > tr:last-child > th:last-child,
table.wikitable > * > tr:last-child > td:last-child,
table.wikitable > * > tr:last-child > th:last-child {
    border-bottom-right-radius: var(--border-radius);
}
/* remove some rounded corners for sortable wikitable  */
table.wikitable.sortable > tr:first-child > td:first-child,
table.wikitable.sortable > * > tr:first-child > td:first-child {
    border-top-left-radius: 0;
}
table.wikitable.sortable > tr:first-child > td:last-child,
table.wikitable.sortable > * > tr:first-child > td:last-child {
    border-top-right-radius: 0;
}
table.wikitable.sortable > tr:last-child > th:first-child,
table.wikitable.sortable > * > tr:last-child > th:first-child {
    border-bottom-left-radius: 0;
}
table.wikitable.sortable > tr:last-child > th:last-child,
table.wikitable.sortable > * > tr:last-child > th:last-child {
    border-bottom-right-radius: 0;
}
/* Custom table styles */
table.wikitable.theme-red > tr > th,
table.wikitable.theme-red > * > tr > th {
  background-color: var(--color-red);
  color: white;
}
table.wikitable.theme-blue > tr > th,
table.wikitable.theme-blue > * > tr > th {
  background-color: var(--color-blue);
  color: white;
}
table.wikitable.theme-red > tr > th a,
table.wikitable.theme-red > * > tr > th a {
  color: var(--link-red);
}
table.wikitable.theme-blue > tr > th a,
table.wikitable.theme-blue > * > tr > th a {
  color: var(--link-blue);
}
table.wikitable.theme-red > tr > th,
table.wikitable.theme-red > tr > td,
table.wikitable.theme-red > * > tr > th,
table.wikitable.theme-red > * > tr > td {
  border: var(--border-red);
}
table.wikitable.theme-blue > tr > th,
table.wikitable.theme-blue > tr > td,
table.wikitable.theme-blue > * > tr > th,
table.wikitable.theme-blue > * > tr > td {
  border: var(--border-blue);
}


/* Button style */
/* Button style */
table.button {
table.button {
   
}
}
table.button td {
table.button td {
     background-color: black;
     background-color: #68191b;
     border: 1px solid black;
     border: 2px solid #000000;
     color: white
     color: #ffffff;
}
}
table.button td:hover {
table.button td:hover {
     background-color: #3A120A;
     background-color: #b22328;
}
}
td.button a {
td.button a {
     display:block;
     display: block;
     width:100%;
     width: 100%;
     height:100%;
     height: 100%;
}
}
.button a {
.button a {
     text-decoration: none;  
     text-decoration: none;  
}
}
/* Removes link underline */
.nounderlines a {
    text-decoration: none;
}
/* Clickable cell
Note: this will only make the text area clickable,
therefore any padding or changes from outside
the td will not be affected by this.
*/
td.clickablecell a {
    display:block;
    width:100%;
}
/* Alternating row background */
.oddrow:nth-child(odd) {
background-color: #F9F9F9;
}
.evenrow:nth-child(even) {
background-color: #EEEEEE;
}
table.collapsed
tr.collapsible {
display: none;
}
.collapseButton {
/* 'show'/'hide' buttons created dynamically by the */
/* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
/* are styled here so they can be customised. */
float: right;
font-weight: normal;
text-align: right;
width: auto;
}
/* <source lang="css"> */
/* Main page fixes */
#interwiki-completelist {
font-weight: bold;
}
body.page-Main_Page
#ca-delete {
display: none !important;
}
body.page-Main_Page
#mp-topbanner {
clear: both;
/* Edit window toolbar */
#toolbar {
height: 22px;
margin-bottom: 6px;
/* Margins for <ol> and <ul> */
#content ol,
#content ul,
#mw_content ol,
#mw_content ul {
margin-bottom: 0.5em;


/* Make the list of references smaller */
/* Make the list of references smaller */
Line 125: Line 169:
font-size: 100%;
font-size: 100%;
}  
}  
.references-small {
.references-small {
font-size: 90%;  
font-size: 90%;  
Line 143: Line 186:
/* Highlight clicked reference in blue to help navigation */
/* Highlight clicked reference in blue to help navigation */
ol.references > li:target, sup.reference:target, cite:target {
ol.references > li:target, sup.reference:target, cite:target {
background-color: #DEF;
background-color: #ddeeff;
}
}


Line 168: Line 211:
}
}
}   
}   
 
/* wikitable/prettytable class for skinning normal tables */
table.wikitable,
table.prettytable {
margin: 1em 1em 1em 0;
background: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
}
.wikitable th,
.wikitable td,
.prettytable th,
.prettytable td {
border: 1px #aaa solid;
padding: 0.2em;
}
.wikitable th,
.prettytable th {
background: #f2f2f2;
text-align: center;
}
.wikitable caption,
.prettytable caption {
font-weight: bold;
}
/* Default skin for navigation boxes */
table.navbox {
/* Navbox container style */
border: 1px solid #aaa;
width: 100%;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
}
table.navbox + table.navbox {
/* Single pixel border between adjacent navboxes */
margin-top: -1px;
/* (doesn't work for IE6, but that's okay)      */
}
.navbox-title,
.navbox-abovebelow,
table.navbox th {
text-align: center;
/* Title and above/below styles */
padding-left: 1em;
padding-right: 1em;
}
.navbox-group {
/* Group style */
white-space: nowrap;
text-align: right;
font-weight: bold;
padding-left: 1em;
padding-right: 1em;
}
.navbox,
.navbox-subgroup {
background: #fdfdfd;
/* Background color */
}
.navbox-list {
border-color: #fdfdfd;
/* Must match background color */
}
.navbox-title,
table.navbox th {
background: #ccccff;
/* Level 1 color */
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup
.navbox-title {
background: #ddddff;
/* Level 2 color */
}
.navbox-subgroup
.navbox-group,
.navbox-subgroup
.navbox-abovebelow {
background: #e6e6ff;
/* Level 3 color */
}
.navbox-even {
background: #f7f7f7;
/* Even row striping */
}
.navbox-odd {
background: transparent;
/* Odd row striping */
}
.collapseButton {
/* 'show'/'hide' buttons created dynamically */
float: right;
/* by the CollapsibleTables javascript in    */
font-weight: normal;
/* [[MediaWiki:Common.js]]are styled here    */
text-align: right;
/* so they can be customised.                */
width: auto;
}
.navbox
.collapseButton {
/* In navboxes, the show/hide button balances */
width: 6em;
/* the vde links from [[Template:Tnavbar]],  */
}


/* so they need to be the same width. */
/* so they need to be the same width. */
/* Infobox template style */
/* Infobox template style */
.infobox {
/* TODO: remove after "infobox-old" replaced by "infobox" (new Template:Infobox) */
border: 1px solid #aaa;
.infobox-old {
border: 1px solid #aaaaaa;
background-color: #f9f9f9;
background-color: #f9f9f9;
color: black;
color: black;
Line 290: Line 224:
clear: right;
clear: right;
}
}
 
.infobox-old td,
.infobox td,
.infobox-old th {
.infobox th {
vertical-align: top;
vertical-align: top;
}
}
 
.infobox-old caption {
.infobox caption {
font-size: larger;
font-size: larger;
}
}
 
.infobox-old.bordered {
.infobox.bordered {
border-collapse: collapse;
border-collapse: collapse;
}
}
 
.infobox-old.bordered td,
.infobox.bordered td,
.infobox-old.bordered th {
.infobox.bordered th {
border: 1px solid #aaaaaa;
border: 1px solid #aaa;
}
}
 
.infobox-old.bordered
.infobox.bordered
.borderless td,
.borderless td,
.infobox.bordered
.infobox-old.bordered
.borderless th {
.borderless th {
border: 0;
border: 0;
}
}
.infobox-old.sisterproject {
.infobox.sisterproject {
width: 20em;
width: 20em;
font-size: 90%;
font-size: 90%;
}
}
.infobox-old.standard-talk {
.infobox.standard-talk {
border: 1px solid #c0c090;
border: 1px solid #c0c090;
background-color: #f8eaba;
background-color: #f8eaba;
}
}
 
.infobox-old.standard-talk.bordered td,
.infobox.standard-talk.bordered td,
.infobox-old.standard-talk.bordered th {
.infobox.standard-talk.bordered th {
border: 1px solid #c0c090;
border: 1px solid #c0c090;
}
}


/* styles for bordered infobox with merged rows */
/* Styles for bordered infobox with merged rows */
.infobox.bordered
.infobox-old.bordered .mergedtoprow td,
.mergedtoprow td,
.infobox-old.bordered .mergedtoprow th {
.infobox.bordered
.mergedtoprow th {
border: 0;
border: 0;
border-top: 1px solid #aaa;
border-top: 1px solid #aaaaaa;
border-right: 1px solid #aaa;
border-right: 1px solid #aaaaaa;
}
}
.infobox.bordered
.infobox-old.bordered .mergedrow td,
.mergedrow td,
.infobox-old.bordered .mergedrow th {
.infobox.bordered
.mergedrow th {
border: 0;
border: 0;
border-right: 1px solid #aaa;
border-right: 1px solid #aaaaaa;
}
}


/* Styles for geography infoboxes, eg countries, country subdivisions, cities, etc.*/
/* Styles for geography infoboxes, e.g., countries, country subdivisions, cities, etc.*/
.infobox.geography {
.infobox-old.geography {
text-align: left;
text-align: left;
border-collapse: collapse;
border-collapse: collapse;
Line 355: Line 277:
font-size: 90%;
font-size: 90%;
}
}
.infobox.geography  td,
.infobox-old.geography  td,
.infobox.geography  th {
.infobox-old.geography  th {
border-top: solid 1px #aaa;
border-top: solid 1px #aaaaaa;
padding: 0.4em 0.6em 0.4em 0.6em;
padding: 0.4em 0.6em 0.4em 0.6em;
}
}
.infobox.geography
.infobox-old.geography .mergedtoprow td,
.mergedtoprow td,
.infobox-old.geography
.infobox.geography
.mergedtoprow th {
.mergedtoprow th {
border-top: solid 1px #aaa;
border-top: solid 1px #aaaaaa;
padding: 0.4em 0.6em 0.2em 0.6em;
padding: 0.4em 0.6em 0.2em 0.6em;
}
}
.infobox.geography
.infobox-old.geography
.mergedrow td,
.mergedrow td,
.infobox.geography
.infobox-old.geography
.mergedrow th {
.mergedrow th {
border: 0;
border: 0;
padding: 0 0.6em 0.2em 0.6em;
padding: 0 0.6em 0.2em 0.6em;
}
}
.infobox.geography
.infobox-old.geography
.mergedbottomrow td,
.mergedbottomrow td,
.infobox.geography
.infobox-old.geography
.mergedbottomrow th {
.mergedbottomrow th {
border-top: 0;
border-top: 0;
border-bottom: solid 1px #aaa;
border-bottom: solid 1px #aaaaaa;
padding: 0 0.6em 0.4em 0.6em;
padding: 0 0.6em 0.4em 0.6em;
}
}
.infobox.geography
.infobox-old.geography
.maptable td,
.maptable td,
.infobox.geography
.infobox-old.geography
.maptable th {
.maptable th {
border: 0;
border: 0;
padding: 0;
padding: 0;
}
/* Makes redirects appear in italics in categories and on [[Special:Allpages]] */
.redirect-in-category,
.allpagesredirect {
font-style: italic;
}
/* Icons for medialist templates [[Template:Listen]],    [[Template:Multi-listen_start]], [[Template:Video]],    [[Template:Multi-video_start]] */
div.listenlist {
background:
    url("http://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Gnome-speakernotes.png/30px-Gnome-speakernotes.png");
padding-left: 40px;
}
}


Line 423: Line 331:
}
}


/* Change the external link icon to an Adobe icon for all PDF files    in browsers that suppоrt these CSS selectors, like Mozilla and Opera */
/* Colored watchlist numbers */
#bodyContent a[href$=".pdf" ].external,
.mw-plusminus-pos {
#bodyContent a[href*=".pdf?"].external,
color: #006400;
#bodyContent a[href*=".pdf#"].external,
#bodyContent a[href$=".PDF" ].external,
#bodyContent a[href*=".PDF?"].external,
#bodyContent a[href*=".PDF#"].external,
#mw_content  a[href$=".pdf" ].external,
#mw_content  a[href*=".pdf?"].external,
#mw_content  a[href*=".pdf#"].external,
#mw_content  a[href$=".PDF" ].external,
#mw_content  a[href*=".PDF?"].external,
#mw_content  a[href*=".PDF#"].external {
background: url("http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Icons-mini-file_acrobat.gif/15px-Icons-mini-file_acrobat.gif")
center right no-repeat;
padding-right: 16px;
}
}


/* Change the external link icon to an Adobe icon anywhere the PDFlink class    is used (notably Template:PDFlink). This works in IE, unlike the above. */
/* dark green */
#bodyContent span.PDFlink a, #mw_content span.PDFlink a {
.mw-plusminus-neg {
background:
color: #8b0000;
url("http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Icons-mini-file_acrobat.gif/15px-Icons-mini-file_acrobat.gif")
center right no-repeat;
padding-right: 17px;
}
}


/* Remove link styling. Already defined in monobook and modern, but not defined in the other skins. Bug 18708 */
/* dark red */
#bodyContent.plainlinks a {
.rellink,
background: none !important;
.dablink {
padding: 0 !important;
font-style: italic;
padding-left: 2em;
}
.rellink i,
.dablink i {
font-style: normal;
}
}


/* Content in columns with CSS instead of tables [[Template:Columns]] */
/* Style for horizontal UL lists */
div.columns-2 div.column {
.horizontal ul {
float: left;
padding: 0;
width: 50%;
margin: 0;
min-width: 300px;
}
}
div.columns-3 div.column {
.horizontal li {
float: left;
padding: 0 0.6em 0 0.4em;
width: 33.3%;
display: inline;
min-width: 200px;
border-right: 1px solid;
}
}
div.columns-4 div.column {
.horizontal li:last-child {
float: left;
border-right: none;
width: 25%;
padding-right: 0;
min-width: 150px;
}
div.columns-5 div.column {
float: left;
width: 20%;
min-width: 120px;
}
}


/* Make sure that "external references" from templates like [[Template:Ref]]
/* When <div class="nonumtoc"> is used on the table of contents,
do not get URL expansion, not even when printed. The anchor itself has
the ToC will display without numbers */
class "external autonumber" and the url expansion is inserted when printing
.nonumtoc .tocnumber {
(see [http://en.wikipedia.org/skins-1.5/common/commonPrint.css]) using the
display: none;
":after" pseudo-element. */
.nourlexpansion a.external.text:after,
.nourlexpansion a.external.autonumber:after {
display: none !important;
}
}
 
.nonumtoc #toc ul,
/* The legacy implementation of this was with "plainlinksneverexpand", which    also simulated "plainlinks".  "plainlinksneverexpand" is deprecated and
.nonumtoc .toc ul {
should be replaced with "plainlinks nourlexpansion". When this has been    done, the rules below can be removed. */
line-height: 1.5em;
.plainlinksneverexpand a {
list-style: none;
background: none !important;
margin:
padding: 0 !important;
.3em 0 0;
padding: 0;
}
}
.plainlinksneverexpand a.external.text:after,
.nonumtoc #toc ul ul,  
.plainlinksneverexpand a.external.autonumber:after {
.nonumtoc
display: none !important;
.toc ul ul {
margin: 0 0 0 2em;  
}
}


/* Messagebox templates */
/* Prevent line breaks in silly places:
.messagebox {
1) links when we don't want them to
border: 1px solid #aaa;
2) HTML formulae
background-color: #f9f9f9;
3) Ref tags with group names <ref group="Note"> --> "[Note 1]" */
width: 80%;
.nowraplinks a, span.texhtml, sup.reference a {
margin: 0 auto 1em auto;
white-space: nowrap;
padding: .2em;
}
}


.messagebox.merge {
.thumbinner {
border: 1px solid #c0b8cc;
min-width: 100px;
background-color: #f0e5ff;
text-align: center;
}
}


.messagebox.cleanup {
/* Inline divs in ImageMaps (code borrowed from de.wiki) */
border: 1px solid #9f9fff;
.imagemap-inline div {
background-color: #efefff;
display: inline;
text-align: center;
}
}


.messagebox.standard-talk {
/* Increase the height of the image upload box */
border: 1px solid #c0c090;
#wpUploadDescription {
background-color: #f8eaba;
height: 13em;
margin: 4px auto;
}
}


/* For old WikiProject banners inside banner shells. */
/* Reduce line-height for <sup> and <sub> */
.mbox-inside
sup, sub {
.standard-talk,
line-height: 1em; }
.messagebox.nested-talk {
 
border: 1px solid #c0c090;
/* Prevent floating boxes from overlapping any category listings,
background-color: #f8eaba;
file histories, edit previews, and edit [Show changes] views */
width: 100%;
#mw-subcategories, #mw-pages, #mw-category-media,
margin: 2px 0;
#filehistory, #wikiPreview, #wikiDiff {
padding: 2px;
clear: both;
}
}
.messagebox.small {
 
width: 238px;
/* Div based "warning" style system messages (system messages). */
font-size: 85%;
div.mw-warning-with-logexcerpt,
float: right;
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning {
clear: both;
clear: both;
margin: 0 0 1em 1em;
margin: 0.2em 0;
line-height: 1.25em;  
border: 1px solid #bb7070;
background: #ffdbdb;
padding: 0.25em 0.9em;
}
}
.messagebox.small-talk {
/* Div based "system" style messages (system messages). */
width: 238px;
div.mw-lag-warn-normal,
font-size: 85%;
div.noarticletext,
float: right;
div.fmbox-system {
clear: both;
clear: both;
margin: 0 0 1em 1em;
margin: 0.2em 0;
line-height: 1.25em;
border: 1px solid #aaa;
background: #F8EABA;
background: #f9f9f9;
padding: 0.25em 0.9em;
}
}
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
 
th.mbox-text, td.mbox-text {
/* Selectively hide headers in WikiProject banners */
/* The message body cell(s) */
.wpb .wpb-header            { display: none; }
border: none;
.wpbs-inner .wpb .wpb-header { display: block; }    /* for IE */
padding: 0.25em 0.9em;
.wpbs-inner .wpb .wpb-header { display: table-row; } /* for real browsers */
/* 0.9em left/right */
.wpbs-inner .wpb-outside    { display: none; }      /* hide things that should only display outside shells */
width: 100%;
 
/* Make all mboxes the same width regardless of text length */
/* Allow limiting of which header levels are shown in a TOC;
<div class="toclimit-3">, for instance, will limit to
showing ==headings== and ===headings=== but no further
(as long as there are no =headings= on the page, which
there shouldn't be according to the MoS).  */
.toclimit-2 .toclevel-2,
.toclimit-3 .toclevel-3,
.toclimit-4 .toclevel-4,
.toclimit-5 .toclevel-5,
.toclimit-6 .toclevel-6,
.toclimit-7 .toclevel-7 {
display: none;
}
 
/* Numbered lists (ordered) */
/* Use #, ##, ### wikitext to produce the usual system of numbered lists (1, 2, 3; then a, b, c; then i, ii, iii) */
ol {
list-style-type: decimal;  
}
ol li > ol {
list-style-type: lower-alpha;  
}
ol li > ol li > ol {
list-style-type: lower-roman;  
}
}
td.mbox-image {
 
/* The left image cell */
/* Bulleted lists (unordered) */
border: none;
/* Use *, **, *** wikitext to produce the usual system of bulleted lists (•; then ◦; then ▪) */
padding: 2px 0 2px 0.9em;
ul {
/* 0.9em left, 0px right */
list-style-image: none;
text-align: center;  
list-style-type: disc;
}
}
td.mbox-imageright {
ul li > ul {  
/* The right image cell */
list-style-type: circle;
border: none;
padding: 2px 0.9em 2px 0;
/* 0px left, 0.9em right */
text-align: center;  
}
}
td.mbox-empty-cell {
ul li > ul li > ul {  
/* An empty narrow cell */
list-style-type: square;
border: none;
padding: 0px;
width: 1px;
}
}


/* Article message box styles */
/* Regional logos
table.ambox {
.mw-wiki-logo:lang(en-gb) {
margin: 0px 10%;
background-image: url(https://pzwiki.net/w/images/3/37/Spiffo_rummage.png) !important;
/* 10% = Will not overlap with other elements */
} */
border: 1px solid #aaa;
 
border-left: 10px solid #1e90ff;
/* Custom CSS for code */
/* Default "notice" blue */
pre.code {
background: #fbfbfb;  
    background-color: #f8f9fa;
    border: 1px solid #eaecf0;
    color: #000000;
    line-height: 1.3;
    padding: 1em;
    tab-size: 4;
}
}
table.ambox + table.ambox {
pre.code span.comment {
/* Single border between stacked boxes. */
    color: #408080;
margin-top: -1px;
    font-style: italic;
}
}
.ambox th.mbox-text,
pre.code span.function {
.ambox td.mbox-text {
    color: #0000ff;
/* The message body cell(s) */
padding: 0.25em 0.5em;
/* 0.5em left/right */
}
}
.ambox td.mbox-image {
pre.code span.keyword {
/* The left image cell */
    color: #008000;
padding: 2px 0 2px 0.5em;
    font-weight: bold;
/* 0.5em left, 0px right */
}
}
.ambox td.mbox-imageright {
span.obsolete {
/* The right image cell */
    color: #ff0000;
padding: 2px 0.5em 2px 0;
/* 0px left, 0.5em right */
}
}
  table.ambox-notice {
 
border-left: 10px solid #1e90ff;
/* Template:Section */
/* Blue */
div.pz-section {
  display: flex;
  flex-direction: column;
  border: var(--border-mw);
  border-radius: calc(var(--border-radius) * 2);
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: var(--shadow-mw);
}
}
table.ambox-speedy {
div.pz-section.theme-red {
border-left: 10px solid #b22222;
  background-color: var(--background-red);
/* Red */
  border: var(--border-red);
background: #fee;
/* Pink */
}
}
table.ambox-delete {
div.pz-section.theme-blue {
border-left: 10px solid #b22222;
  background-color: var(--background-blue);
/* Red */
  border: var(--border-blue);
}
}
table.ambox-content {
div.pz-section > h2 {
border-left: 10px solid #f28500;
  text-align: center;
/* Orange */
  margin: 0;
  padding: calc(var(--border-radius) / 2);
}
}
table.ambox-style {
div.pz-section.theme-red > h2 {
border-left: 10px solid #f4c430;
  background-color: var(--color-red);
/* Yellow */
  color: white;
}
}
table.ambox-move {
div.pz-section.theme-blue > h2 {
border-left: 10px solid #9932cc;
  background-color: var(--color-blue);
/* Purple */
  color: white;
}
}
table.ambox-protection {
div.pz-section.theme-red > h2 a {
border-left: 10px solid #bba;
  color: var(--link-red);
/* Gray-gold */
}
}
/* Image message box styles */
div.pz-section.theme-blue > h2 a {
table.imbox {
  color: var(--link-blue);
margin: 4px 10%;
border-collapse: collapse;
border: 3px solid #1e90ff;
/* Default "notice" blue */
background: #fbfbfb;
}
}
.imbox
div.pz-section > div {
.mbox-text
  flex-grow: 1;
.imbox {
  padding: var(--border-radius);
/* For imboxes inside imbox-text cells. */
margin: 0 -0.5em;
/* 0.9 - 0.5 = 0.4em left/right. */
}
}
.mbox-inside
div.pz-section > div h3 {
.imbox {
  text-align: center;
/* For imboxes inside other templates. */
  border-bottom: var(--border-mw);
margin: 4px;
}
}
table.imbox-notice {
 
border: 3px solid #1e90ff;
/* Responsive layout */
/* Blue */
/* TODO: remove after "pz-responsive" replaced with "pz-container" */
div.pz-responsive {
  width: 100%;
  display: flex;
}
}
table.imbox-speedy {
div.pz-responsive > div {
border: 3px solid #b22222;
  display: flex;
/* Red */
  flex-direction: column;
background: #fee;
/* Pink */
}
}
table.imbox-delete {
div.pz-responsive > div:first-child {
border: 3px solid #b22222;
  flex-basis: 70%;
/* Red */
  margin-right: 10px;
}
}
table.imbox-content {
div.pz-responsive > div:last-child {
border: 3px solid #f28500;
  flex-basis: 30%;
/* Orange */
}
}
table.imbox-style {
div.pz-responsive > div > div {
border: 3px solid #f4c430;
  margin-bottom: 10px;
/* Yellow */
}
}
table.imbox-move {
div.pz-responsive > div > div:last-child {
border: 3px solid #9932cc;
  margin-bottom: 0;
/* Purple */
  flex-grow: 1;
}
}
table.imbox-protection {
/** Responsive images **/
border: 3px solid #bba;
div.pz-responsive img {
/* Gray-gold */
  width: 100%;
  height: auto;
}
}
table.imbox-license {
/** Mobile layout **/
border: 3px solid #88a;
@media screen and (max-width: 1280px) {
  /* Dark gray */
  div.pz-responsive {
background: #f7f8ff;
    flex-direction: column;
/* Light gray */
  }
  div.pz-responsive > div:first-child {
    margin-right: 0;
    margin-bottom: 10px;
  }
}
}
table.imbox-featured {
 
border: 3px solid #cba135;
/* Template:Mbox */
/* Brown-gold */
div.mbox {
  position: relative;
  display: flex;
  align-items: center;
  border: var(--border-mw);
  border-radius: var(--border-radius);
  background-color: var(--background-mw);
  margin-bottom: 0.5em;
  padding-left: var(--border-radius);
  overflow: hidden;
}
}
/* Category message box styles */
div.mbox > div:first-child {
table.cmbox {
  position: absolute;
margin: 3px 10%;
  top: 0;
border-collapse: collapse;
  left: 0;
border: 1px solid #aaa;
  bottom: 0;
background: #DFE8FF;
  width: var(--border-radius);
/* Default "notice" blue */
  background-color: var(--color-mw);
}
}
table.cmbox-notice {
div.mbox > div:first-child + div {
background: #D8E8FF;
  flex-shrink: 0;
/* Blue */
  padding: var(--border-radius);
  text-align: center;
  border-right: var(--border-mw);
}
}
table.cmbox-speedy {
div.mbox > div:first-child + div img {
margin-top: 4px;
  width: 32px;
margin-bottom: 4px;
  height: auto;
border: 4px solid #b22222;
/* Red */
background: #FFDBDB;
/* Pink */
}
}
table.cmbox-delete {
div.mbox > div:last-child {
background: #FFDBDB;
  flex-grow: 1;
/* Red */
  padding: calc(var(--border-radius) / 2) var(--border-radius);
}
}
table.cmbox-content {
 
background: #FFE7CE;
/* Template:Infobox */
/* Orange */
div.infobox {
  float: right;
  clear: right;
  width: 350px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: var(--background-mw);
  border: 1px solid var(--color-red);
  border-radius: calc(var(--border-radius) * 2);
  margin: 0.5em 0 0.5em 1em;
  box-shadow: var(--shadow-mw);
  overflow: hidden;
}
}
table.cmbox-style {
div.infobox > div:first-child {
background: #FFF9DB;
  text-align: center;
/* Yellow */
  font-size: 1.5em;
  font-weight: bold;
  padding: calc(var(--border-radius) / 2);
}
}
table.cmbox-move {
div.infobox div.infobox-image {
background: #E4D8FF;
  display: flex;
/* Purple */
  flex-direction: column;
  gap: 4px;
}
}
table.cmbox-protection {
div.infobox div.infobox-image > div.infobox-preview {
background: #EFEFE1;
  display: none; /* handled with js */
/* Gray-gold */
  margin: 0 auto;
}
}
/* Other pages message box styles */
div.infobox div.infobox-image > div.infobox-preview img {
table.ombox {
  max-width: 200px;
margin: 4px 10%;
  height: auto;
border-collapse: collapse;
border: 1px solid #aaa;
/* Default "notice" gray */
background: #f9f9f9;
}
}
table.ombox-notice {
div.infobox div.infobox-image > div.infobox-caption {
border: 1px solid #aaa;
  text-align: center;
/* Gray */
  font-style: italic;
}
}
table.ombox-speedy {
div.infobox div.infobox-image > div.infobox-gallery {
border: 2px solid #b22222;
  display: flex;
/* Red */
  justify-content: center;
background: #fee;
  gap: 4px;
/* Pink */
  padding: 4px;
  flex-wrap: wrap;
}
}
table.ombox-delete {
div.infobox div.infobox-image > div.infobox-gallery img {
border: 2px solid #b22222;
  border: var(--border-mw);
/* Red */
  border-radius: var(--border-radius);
  padding: 1px;
  width: auto;
  max-height: 32px;
  cursor: pointer;
}
}
table.ombox-content {
div.infobox div.infobox-image > div.infobox-gallery img:hover {
border: 1px solid #f28500;
  background: var(--color-mw);
/* Orange */
  box-shadow: 0 0 0.25em var(--color-mw-border);
}
}
table.ombox-style {
div.infobox div.infobox-image > div.infobox-gallery img.selected {
border: 1px solid #f4c430;
  background: var(--color-mw);
/* Yellow */
  box-shadow: 0 0 0.25em var(--color-mw-border) inset;
}
}
table.ombox-move {
div.infobox div.infobox-section {
border: 1px solid #9932cc;
    position: relative;
/* Purple */
}
}
table.ombox-protection {
div.infobox div.infobox-section > div:first-child {
border: 2px solid #bba;
  text-align: center;
/* Gray-gold */
  font-size: 1.0em;
  font-weight: bold;
  padding: calc(var(--border-radius) / 2);
}
}
  /* Talk page message box styles */
div.infobox div.infobox-section > div.mw-collapsible {
table.tmbox {
  display: flex;
margin: 4px 10%;
  flex-direction: column;
border-collapse: collapse;
  gap: 2px;
border: 1px solid #c0c090;
  margin-top: 2px;
/* Default "notice" gray-brown */
background: #f8eaba;
}
}
.mediawiki
div.infobox div.infobox-section > div.toggle {
.mbox-inside
  color: white;
.tmbox {
/* For tmboxes inside other templates. The "mediawiki" */
margin: 2px 0;
/* class ensures that this declaration overrides other */
width: 100%;
/* For Safari and Opera */
/* styles (including mbox-small above) */
}
}
.mbox-inside
div.infobox div.infobox-item {
.tmbox.mbox-small { /* "small" tmboxes should not be small when  */
   display: flex;
line-height: 1.5em;
/* also "nested", so reset styles that are   */
font-size: 100%;
/* set in "mbox-small" above. */
}
}
table.tmbox-speedy {
div.infobox div.infobox-item > div {
border: 2px solid #b22222;
  padding: 0 0.5em;
/* Red */
  overflow:auto; /* temporary fix for long values (item_id) */
background: #fee;
/* Pink */
}
}
table.tmbox-delete {
div.infobox div.infobox-item > div:first-child {
border: 2px solid #b22222;
  width: 40%;
/* Red */
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
  background-color: var(--background-mw-even);
}
}
table.tmbox-content {
div.infobox div.infobox-item > div:first-child img {
border: 2px solid #f28500;
  width: 1.5em;
/* Orange */
  height: 1.5em;
}
}
table.tmbox-style {
div.infobox div.infobox-item > div:first-child img.auto-size {
border: 2px solid #f4c430;
  width: auto;
/* Yellow */
  height: auto;
}
}
table.tmbox-move {
 
border: 2px solid #9932cc;
/* Template:Documentation */
/* Purple */
div.documentation {
  display: flex;
  flex-direction: column;
}
}
table.tmbox-protection, table.tmbox-notice {
div.documentation > div {
border: 1px solid #c0c090;
  border: var(--border-mw);
/* Gray-brown */
  padding: var(--border-radius);
}
}
/* Disambig and set index box styles */
div.documentation > div:first-child {
table.dmbox {
  background-color: var(--background-mw-heading);
clear: both;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
margin: 0.9em 1em;
  margin-bottom: 0.2em;
border-top: 1px solid #ccc;
  text-transform: uppercase;
border-bottom: 1px solid #ccc;
  font-weight: bold;
background: transparent;
}
}
/* Footer and header message box styles */
div.documentation > div:first-child img {
table.fmbox {
  max-width: 2em;
clear: both;
  max-height: 2em;
margin: 0.2em 0;
width: 100%;
border: 1px solid #aaa;
background: #f9f9f9;
/* Default "system" gray */
}
}
table.fmbox-system {
div.documentation > div:first-child + div {
background: #f9f9f9;
  background-color: var(--background-mw);
  margin-bottom: 0.2em;
}
}
table.fmbox-warning {
div.documentation > div:last-child {
border: 1px solid #bb7070;
  background-color: var(--background-mw-heading);
/* Dark pink */
  border-radius: 0 0 var(--border-radius) var(--border-radius);
background: #ffdbdb;
  text-align: right;
/* Pink */
  font-style: italic;
}
}
table.fmbox-editnotice {
 
background: transparent;
/* Template:Header */
div.header {
  display: flex;
  padding: 0.5em 0;
  margin-bottom: 0.5em;
  border-radius: var(--border-radius);
}
}
/* Div based "warning" style fmbox messages. */
div.header.theme-red {
div.mw-warning-with-logexcerpt,
  background-color: var(--color-red);
div.mw-lag-warn-high,
  border: var(--border-red);
div.mw-cascadeprotectedwarning {
  color: white;
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background: #ffdbdb;
padding: 0.25em 0.9em;
}
}
/* Div based "system" style fmbox messages. Used in [[MediaWiki:Noarticletext]] and [[MediaWiki:Readonly lag]]. */
div.header.theme-blue {
div.mw-lag-warn-normal,
  background-color: var(--color-blue);
div.noarticletext,
  border: var(--border-blue);
div.fmbox-system {
  color: white;
clear: both;
margin: 0.2em 0;
border: 1px solid #aaa;
background: #f9f9f9;
padding: 0.25em 0.9em;
}
}
/* These mbox-small classes must be placed after all other
div.header.theme-red a {
ambox/tmbox/ombox etc classes. "body.mediawiki" is so
  color: var(--link-red);
they override "table.ambox + table.ambox" above. */
body.mediawiki table.mbox-small {
/* For the "small=yes" option. */
clear: right;
float: right;
margin: 4px 0 4px 1em;
width: 238px;
font-size: 88%;
line-height: 1.25em;
}
}
body.mediawiki table.mbox-small-left {
div.header.theme-blue a {
/* For the "small=left" option. */
  color: var(--link-blue);
margin: 4px 1em 4px 0;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em; }
/* Suppоrt for Template:IPA, Template:Unicode and Template:Polytonic.
The second declarations reset the styles for all browsers except
IE6, which chokes on the empty comment tags. Please copy any changes
to [[Template:IPA fonts]] and [[Template:Unicode fonts]]. */
.IPA {
font-family: "Charis SIL", "Doulos SIL", Gentium, GentiumAlt,
"DejaVu Sans",
Code2000,
"TITUS Cyberbit Basic",
"Arial Unicode MS",
"Lucida Sans Unicode",
"Chrysanthi Unicode";
font-family /**/: inherit;
}
}
.Unicode {
div.header > div:first-child {
font-family: Code2000,
  font-weight: bold;
Code2001,
  padding: 0 0.5em;
"Free Serif",
"TITUS Cyberbit Basic",
"Doulos SIL",
"Chrysanthi Unicode",
"Bitstream Cyberbit",
"Bitstream CyberBase",
Thryomanes,
Gentium,
GentiumAlt,
"Lucida Grande",
"Free Sans",
"Arial Unicode MS",
"Microsoft Sans Serif",
"Lucida Sans Unicode";
font-family /**/: inherit;
}
}
.latinx {
div.header > div:last-child {
font-family: Code2000, Code2001, "TITUS Cyberbit Basic", "Microsoft Sans Serif";
  flex-grow: 1;
font-family /**/: inherit;
  padding: 0 0.5em;
}
}
.polytonic {
div.header.theme-red > div:first-child {
font-family: "Athena Unicode",
  border-right: 1px solid var(--link-red);
Gentium, "Palatino Linotype",
"Arial Unicode MS",
"Lucida Sans Unicode",
"Lucida Grande",
Code2000;
font-family /**/: inherit;
}
}
#wpSave {
div.header.theme-blue > div:first-child {
font-weight: bold;
  border-right: 1px solid var(--link-blue);
}
}


/* class hiddenStructure is defunct. See [[Wikipedia:hiddenStructure]] */
/* Template:Mask */
.hiddenStructure {
.mask {
display: inline ! important;
  color: black;
color: #f00;
  background-color: black;
background-color: #0f0;
  transition: color 0.2s linear;
}
.mask:hover {
  color: white;
}
}


/* suppress missing interwiki image links where #ifexist cannot    be used due to high number of requests see
/* Template:Navbox */
.hidden-redlink on
div.navbox {
http://meta.wikimedia.org/wiki/MediaWiki:Common.css */
  position: relative;
.check-icon a.new {
  display: flex;
display: none;
  flex-direction: column;
speak: none;
  background-color: var(--background-mw);
  border: 1px solid var(--color-mw);
  border-radius: var(--border-radius);
  margin: 0.5em auto;
  overflow: hidden;
}
div.navbox.theme-red {
  border: var(--border-red);
}
div.navbox.theme-blue {
  border: var(--border-blue);
}
div.navbox > div:first-child {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  padding: calc(var(--border-radius) / 2) var(--border-radius); /* <!-- */
}
div.navbox.theme-red > div:first-child {
  background-color: var(--color-red);
  color: white;
}
div.navbox.theme-blue > div:first-child {
  background-color: var(--color-blue);
  color: white;
}
div.navbox.theme-red > div:first-child a {
  color: var(--link-red);
}
div.navbox.theme-blue > div:first-child a {
  color: var(--link-blue);
}
/* second-level of navbox */
div.navbox div.navbox > div:first-child {
    font-size: 1.0em;
    filter: brightness(120%);
}
/* third-level of navbox */
div.navbox div.navbox div.navbox > div:first-child {
    font-size: 0.9em;
    filter: brightness(150%)
}
div.navbox > div.mw-collapsible {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
div.navbox.theme-red > div.toggle,
div.navbox.theme-blue > div.toggle {
  color: white;
}
div.navbox div.navbox-row {
  background-color: var(--color-mw);
  text-align: center;
}
div.navbox > div.mw-collapsible .navbox {
  border: none;
  border-radius: 0;
  box-shadow: 0 0;
  margin: 0;
}
div.navbox > div.mw-collapsible div.navbox-section {
  display: flex;
  gap: 2px;
}
div.navbox > div.mw-collapsible div.navbox-section > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}
div.navbox > div.mw-collapsible div.navbox-section > div:first-child + div {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
div.navbox > div.mw-collapsible div.navbox-item {
  display: flex;
  gap: 2px;
}
div.navbox > div.mw-collapsible div.navbox-item > div:first-child {
  width: 20%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--background-mw-even);
  font-weight: bold;
  text-align: center;
}
div.navbox > div.mw-collapsible div.navbox-item > div:last-child {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
}


/* Removes underlines from links */
/* Scale image on hover */
.nounderlines a {
/* Used on main page for quick links */
text-decoration: none;
.scale-image img {
    transition: all 0.2s ease-in-out;
}
.scale-image img:hover {
    transform: scale(1.05);
}
}


/* Remove underline from IPA links */
/* Images should be responsive */
.IPA a:link,
/* Image will resize based on container size, instead of being static. */
.IPA a:visited {
.res-img img {
text-decoration: none;
    max-width: 100%;
    height: auto;
}
}


/* Standard Navigationsleisten, aka box hiding thingy    from
/* Template:Togglebox */
.de.  Documentation at [[Wikipedia:NavFrame]]. */
div.togglebox {
div.NavFrame {
  position: relative;
margin: 0;
  display: flex;
padding: 4px;
  flex-direction: column;
border: 1px solid #aaa;
  border-radius: var(--border-radius);
text-align: center;
  margin: 0.5em auto;
border-collapse: collapse;
  padding: var(--border-radius);
font-size: 95%;
}
div.togglebox.theme-red {
  background-color: var(--color-red);
}
div.togglebox.theme-blue {
  background-color: var(--color-blue);
}
div.togglebox > div:first-child {
  font-size: 1.2em;
  font-weight: bold;
  padding: 0 var(--border-radius);
}
}
div.NavFrame + div.NavFrame {
div.togglebox.theme-red > div:first-child {
border-top-style: none;
  color: white;
border-top-style: hidden;
}
}
div.NavPic {
div.togglebox.theme-blue > div:first-child {
background-color: #fff;
  color: white;
margin: 0;
padding: 2px;
float: left;
}
}
div.NavFrame div.NavHead {
div.togglebox.theme-red > div:first-child a {
height: 1.6em;
  color: var(--link-red);
font-weight: bold;
background-color: #ccf;
position: relative;
}
}
div.NavFrame p {
div.togglebox.theme-blue > div:first-child a {
font-size: 100%;
  color: var(--link-blue);
}
}
div.NavFrame div.NavContent {
div.togglebox > div.mw-collapsible {
font-size: 100%;
  background-color: var(--background-mw);
  border-radius: var(--border-radius);
  padding: var(--border-radius);
  margin-top: 0.5em;
}
}
div.NavFrame div.NavContent p {
div.togglebox.theme-red > div.mw-collapsible { /* ToggleBox content div red */
font-size: 100%;
  /* background-color: var(--background-red); */
}
}
div.NavEnd {
div.togglebox.theme-blue > div.mw-collapsible { /* ToggleBox content div blue */
margin: 0;
  /* background-color: var(--background-blue); */
padding: 0;
line-height: 1.0px;
clear: both;
}
}
a.NavToggle {
div.togglebox > div.toggle {
position: absolute;
  color: white;
top: 0;
right: 3px;
font-weight: normal;
font-size: 90%;
}
}


/* Coloured watchlist numbers */
/* used in Project Zomboid Wiki and PZwiki:Community Portal */
.mw-plusminus-pos {
div.pz-container {
color: #006400;
  width: 100%;
  display: flex;
  gap: 0.5em;
}
div.pz-container > div {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
div.pz-container > div:first-child {
  flex-basis: 70%;
}
div.pz-container > div:last-child {
  flex-basis: 30%;
}
}
 
div.pz-container > div > div:last-child {
/* dark green */
  flex-grow: 1;
.mw-plusminus-neg {
color: #8B0000;
}
}
 
div.pz-container img {
/* dark red */
  width: auto;
.rellink,
  height: auto;
.dablink {
font-style: italic;
padding-left: 2em;
}
}
.rellink i,
@media screen and (max-width: 1280px) {
.dablink i {
  div.pz-container {
font-style: normal;
    flex-direction: column;
  }
}
}


/* Style for horizontal UL lists */
/* Toggle for collapsible templates */
.horizontal ul {
div.toggle::after {
padding: 0;
  content: "◥";
margin: 0;
  position: absolute;
  top: 0.2em;
  right: 0.7em;
  font-size: 1.2em;
  font-weight: bold;
  transition: transform 0.2s linear;
}
div.toggle.small::after {
    font-size: 1.1em;
}
}
.horizontal li {
div.toggle.large::after {
padding: 0 0.6em 0 0.4em;
  top: 0.5em;
display: inline;
  right: 1em;
border-right: 1px solid;
}
}
.horizontal li:last-child {
div.mw-collapsed + div.toggle::after {
border-right: none;
  transform: rotate(90deg);
padding-right: 0;
}
}


/* Allow transcluded pages to display in lists rather than a table.
/* Template:Userbox showcase */
Compatible in Firefox; incompatible in IE6. */
div.userbox-showcase {
.listify td    {
  min-width: 240px;
display: list-item;
  float: right;
  clear: right;
  margin: 0 0 1em 0.5em;
  border: var(--border-blue);
  border-radius: calc(var(--border-radius) * 2);
  overflow: hidden;
}
div.userbox-showcase > div {
  padding: var(--border-radius);
}
div.userbox-showcase > div:first-child {
  text-align: center;
  background-color: var(--color-blue);
  color: white;
  font-size: 1.2em;
  font-weight: bold;
}
}
.listify tr    {
div.userbox-showcase > div:first-child a {
display: block;
  color: var(--link-blue);
}
}
.listify table {
div.userbox-showcase > div:last-child {
display: block;
  display: flex;
  flex-direction: column;
  gap: var(--border-radius);
  background-color: var(--background-blue);
}
}


/* Geographical coordinates defaults. See [[Template:Coord/link]]
/* Template: Userbox */
for how these are used. The classes "geo", "longitude", and
div.userbox {
"latitude" are used by the [[Geo microformat]]. */
  display: flex;
.geo-default,
  min-height: 40px;
.geo-dms,
  max-width: 240px;
.geo-dec  {
  border: var(--border-mw);
display: inline;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: 0.5em;
}
div.userbox > div {
  padding: var(--border-radius);
  min-height: 32px;
  display: flex;
  align-items: center;
}
div.userbox > div:first-child {
  text-align: center;
  font-weight: bold;
  flex-basis: 32px;
  flex-shrink: 0;
  border-right: var(--border-mw);
  justify-content: center;
}
}
.geo-nondefault,
div.userbox > div:first-child img {
.geo-multi-punct {
  max-width: 32px;
display: none;
  height: auto;
}
}
.longitude,
div.userbox > div:last-child {
.latitude {
  flex-grow: 1;
white-space: nowrap;
  font-size: 0.75em;
  padding: 0 var(--border-radius);
}
}
 
div.userbox.awards {
/* When <div class="nonumtoc"> is used on the table of contents,
  display: block;
the ToC will display without numbers */
.nonumtoc
.tocnumber {
display: none;
}
}
.nonumtoc #toc ul,
div.userbox.awards > div:first-child {
.nonumtoc
  float: left;
.toc ul {
line-height: 1.5em;
list-style: none;
margin:
.3em 0 0;
padding: 0;
}
}
.nonumtoc #toc ul ul,
div.userbox-showcase > div:last-child > div.userbox {
.nonumtoc
  margin: 0;
.toc ul ul {
margin: 0 0 0 2em;  
}
}


/* Allow limiting of which header levels are shown in a TOC;
/* for nav bar */
<div class="toclimit-3">, for instance, will limit to
div.navbar {
showing ==headings== and ===headings=== but no further
  display: flex;
(as long as there are no =headings= on the page, which
  justify-content: center;
there shouldn't be according to the MoS).  */
  flex-wrap: wrap;
.toclimit-2
  gap: 0.5em;
.toclevel-2,
  padding: var(--border-radius);
.toclimit-3
  border-radius: calc(2 * var(--border-radius));
.toclevel-3,
}
.toclimit-4
div.navbar > a {
.toclevel-4,
  padding: var(--border-radius);
.toclimit-5
  border-radius: var(--border-radius);
.toclevel-5,
  border: var(--border-mw);
.toclimit-6
  background-color: var(--color-mw);
.toclevel-6,
  transition: all 0.2s linear;
.toclimit-7
  text-decoration: none;
.toclevel-7 {
display: none;
}
}
 
div.navbar.theme-red > a {
/* Styling for Template:Quote */
  background-color: var(--color-red);
blockquote.templatequote {
  color: var(--link-red);
margin-top: 0;  
  border: var(--border-red);
}
}
blockquote.templatequote div.templatequotecite {
div.navbar.theme-blue > a {
line-height: 1em;
  background-color: var(--color-blue);
text-align: left;
  color: var(--link-blue);
padding-left: 2em;
  border: var(--border-blue);
margin-top: 0;
}
}
blockquote.templatequote div.templatequotecite cite {
div.navbar > a:first-child {
font-size: 85%;
  font-weight: bold;
}
}
div.user-block {
div.navbar > a:hover {
padding: 5px;
  border-radius: calc(var(--border-radius) * 2);
border: 1px solid #A9A9A9;
background-color: #FFEFD5;
}
}
 
div.navbar.theme-red > a:hover {
/* Prevent line breaks in silly places:
  background-color: #b22328; /* light red */
1) links when we don't want them to
2) HTML formulae
3) Ref tags with group names <ref group="Note"> --> "[Note 1]" */
.nowraplinks a, span.texhtml, sup.reference a {
white-space: nowrap;
}
}
 
div.navbar.theme-blue > a:hover {
/* For template documentation */
  background-color: #2f8cd8; /* light blue */
.template-documentation {
clear: both;
margin: 1em 0 0 0;
border: 1px solid #aaa;
background-color: #ecfcf4;
padding: 5px;
}
}
 
div.navbar > a.mw-selflink {
.thumbinner {
  border-radius: calc(var(--border-radius) * 2);
min-width: 100px;
  color: white;
}
}
 
div.navbar.theme-red > a.mw-selflink {
/* Inline divs in ImageMaps (code borrowed from de.wiki) */
  background-color: #b22328; /* light red */
.imagemap-inline div {
display: inline;
}
}
 
div.navbar.theme-blue > a.mw-selflink {
/* Increase the height of the image upload box */
  background-color: #2f8cd8; /* light blue */
#wpUploadDescription {
height: 13em;
}
}


/* Reduce line-height for <sup> and <sub> */
/* Don't show In other languages when editing pages on Vector skins, until we find better solution */
sup, sub {
#p-lang {
line-height: 1em; }
  display: none;
 
/* The backgrounds for galleries. */
#content
.gallerybox div.thumb {
background-color: #F9F9F9;
/* Light gray padding */
}
}


/* Put a chequered background behind images, only visible if they have transparency */
/* Template:Key */
.gallerybox
kbd.keyboard-key {
.thumb img, #file img {
  border: 1px solid #aaaaaa;
background: white url("http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat;
  border-radius: 0.2em;
  box-shadow: 0.1em 0.2em 0.2em #dddddd;
  background-image: linear-gradient(to bottom, #eeeeee, #f9f9f9, #eeeeee);
  padding: 0.1em 0.3em;
  font-family: inherit;
  font-size: 0.85em;
}
}


/* But no chequered background on articles, user pages or portals. */
/* Template:Quote */
.ns-0
.quote {
.gallerybox
    display: flex;
.thumb img,
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
.ns-2
.gallerybox
.thumb img,
.ns-100
.gallerybox
.thumb img {
background: white;
}
}
 
.quote .quote-mark {
/* Prevent floating boxes from overlapping any category listings,
    font-weight: bold;
file histories, edit previews, and edit [Show changes] views */
    font-size: 4em;
#mw-subcategories,
    height: 1em;
#mw-pages,
#mw-category-media,
#filehistory,
#wikiPreview,
#wikiDiff {
clear: both;
}
}
 
.quote .quote-text {
/* Selectively hide headers in WikiProject banners */
    margin: 0.5em;
.wpb
    padding-left: 0.5em;
.wpb-header
    border-left: 1px solid #000000;
  {
    font-style: italic;
display: none;
}
}
.wpbs-inner
.quote .quote-author {
.wpb
    text-align: right;
.wpb-header {  
display: block;  
}
}


/* for IE */
/* Mediawiki:Sitenotice */
.wpbs-inner
.sitenotice-card {
.wpb
    background-color: #f8f9fa;
.wpb-header {
    color: #000000;
display: table-row;
    text-align: center;
    justify-content: space-between;
    margin: 0.75rem 0;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eaecf0;
    display: flex;
    width: auto;
    align-items: center;
}
}
 
.sitenotice-card > div {
/* for real browsers */
    display: flex;
.wpbs-inner
    flex-direction: column;
.wpb-outside {
display: none;
}
}
 
.sitenotice-card .image-container-left {
/* hide things that should only display outside shells */
    margin-right: 1rem;
/* </source> */
 
.page-Main_Page h1.firstHeading {
display: none;
}
}
 
.sitenotice-card .image-container-right {
/* Fix so <tt>, <code>, and <pre> display in a suitable size in firefox, chrome, etc */
    margin-left: 1rem;
tt,
code,
pre {
font-family: monospace,
sans-serif;
}
}

Latest revision as of 12:34, 4 April 2024

/* CSS placed here will be applied to all skins */

/* pz-theme */
:root {
  --color-mw: #eaecf0;
  --color-mw-border: #a2a9b1;
  --color-red: #68191b;
  --color-blue: #185893;
  --link-red: #ddd6c1;
  --link-blue: #c1d6dd;
  --background-mw: #f8f9fa;
  --background-mw-even: #f2f2f2;
  --background-mw-odd: #f9f9f9;
  --background-mw-heading: #e5e5e5;
  --background-red: #f4f3eb;
  --background-blue: #ebf3f4;
  --background-message-error: #fee7e6;
  --background-message-warn: #fef6e7;
  --background-message-info: #a3caff;
  --border-mw: 1px solid #a2a9b1;
  --border-red: 1px solid #460c10;
  --border-blue: 1px solid #0f304a;
  --border-message-error: 1px solid #d33;
  --border-message-warn: 1px solid #fc3;
  --border-message-info: 1px solid #3366cc;
  --border-radius: 0.5em;
  --shadow-mw: 0 0 0.5em 0.1em #00000080;
}

/* Provide pixel art support, from https://stackoverflow.com/a/8888964/ */
ul.mw-search-results > li.mw-search-result img,
.gallery .gallerybox div.thumb img,
img.pixelart {
    image-rendering: optimizeSpeed;             /* Legal fallback */
    image-rendering: -moz-crisp-edges;          /* Firefox        */
    image-rendering: -o-crisp-edges;            /* Opera          */
    image-rendering: -webkit-optimize-contrast; /* Safari         */
    image-rendering: optimize-contrast;         /* CSS3 Proposed  */
    image-rendering: pixelated;                 /* CSS4 Proposed  */
    image-rendering: crisp-edges;               /* CSS4 Proposed  */
    -ms-interpolation-mode: nearest-neighbor;   /* IE8+           */
}

/* Remove text decoration on link */
.no-decoration a:hover {
    text-decoration: none;
}

/* TEMPORARY CLASS: change link colour for mw collapsible toggle */
td.mw-collapse-data-color > span > a {
    color: #ffffff; 
    text-decoration: none; 
}

/* Clearer background color for wikitable */
table.wikitable > tr > th,
table.wikitable > * > tr > th {
  background-color: var(--background-mw-heading);
}
table.wikitable tr:nth-child(even) td{
	background-color: var(--background-mw-even);
}
table.wikitable tr:nth-child(odd) td{
	background-color: var(--background-mw-odd);
}
/* rounded corners wikitable */
table.wikitable {
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    background: none;
    padding: 0;
}
table.wikitable > tr:first-child > th:first-child,
table.wikitable > tr:first-child > td:first-child,
table.wikitable > * > tr:first-child > th:first-child,
table.wikitable > * > tr:first-child > td:first-child {
    border-top-left-radius: var(--border-radius);
}
table.wikitable > tr:first-child > th:last-child,
table.wikitable > tr:first-child > td:last-child,
table.wikitable > * > tr:first-child > th:last-child,
table.wikitable > * > tr:first-child > td:last-child {
    border-top-right-radius: var(--border-radius);
}
table.wikitable > tr:last-child > td:first-child,
table.wikitable > tr:last-child > th:first-child,
table.wikitable > * > tr:last-child > td:first-child,
table.wikitable > * > tr:last-child > th:first-child {
    border-bottom-left-radius: var(--border-radius);
}
table.wikitable > tr:last-child > td:last-child,
table.wikitable > tr:last-child > th:last-child,
table.wikitable > * > tr:last-child > td:last-child,
table.wikitable > * > tr:last-child > th:last-child {
    border-bottom-right-radius: var(--border-radius);
}
/* remove some rounded corners for sortable wikitable  */
table.wikitable.sortable > tr:first-child > td:first-child,
table.wikitable.sortable > * > tr:first-child > td:first-child {
    border-top-left-radius: 0;
}
table.wikitable.sortable > tr:first-child > td:last-child,
table.wikitable.sortable > * > tr:first-child > td:last-child {
    border-top-right-radius: 0;
}
table.wikitable.sortable > tr:last-child > th:first-child,
table.wikitable.sortable > * > tr:last-child > th:first-child {
    border-bottom-left-radius: 0;
}
table.wikitable.sortable > tr:last-child > th:last-child,
table.wikitable.sortable > * > tr:last-child > th:last-child {
    border-bottom-right-radius: 0;
}
/* Custom table styles */
table.wikitable.theme-red > tr > th,
table.wikitable.theme-red > * > tr > th {
  background-color: var(--color-red);
  color: white;
}
table.wikitable.theme-blue > tr > th,
table.wikitable.theme-blue > * > tr > th {
  background-color: var(--color-blue);
  color: white;
}
table.wikitable.theme-red > tr > th a,
table.wikitable.theme-red > * > tr > th a {
  color: var(--link-red);
}
table.wikitable.theme-blue > tr > th a,
table.wikitable.theme-blue > * > tr > th a {
  color: var(--link-blue);
}
table.wikitable.theme-red > tr > th,
table.wikitable.theme-red > tr > td,
table.wikitable.theme-red > * > tr > th,
table.wikitable.theme-red > * > tr > td {
  border: var(--border-red);
}
table.wikitable.theme-blue > tr > th,
table.wikitable.theme-blue > tr > td,
table.wikitable.theme-blue > * > tr > th,
table.wikitable.theme-blue > * > tr > td {
  border: var(--border-blue);
}

/* Button style */
table.button {
}
table.button td {
    background-color: #68191b;
    border: 2px solid #000000;
    color: #ffffff;
}
table.button td:hover {
    background-color: #b22328;
}
td.button a {
    display: block;
    width: 100%;
    height: 100%;
}
.button a {
    text-decoration: none; 
}

/* Make the list of references smaller */
ol.references {
	font-size: 100%;
} 
.references-small {
	font-size: 90%; 
}   

/* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */
/* -moz-* is a vendor-specific extension (CSS 2.1 4.1.2.1) */
/* column-count is from the CSS3 module "CSS Multi-column Layout" */
/* Please ignore any validator errors caused by these two lines */
.references-2column {
	font-size: 90%;
	-moz-column-count: 2;
	-webkit-column-count: 2;
	column-count: 2; 
}

/* Highlight clicked reference in blue to help navigation */
ol.references > li:target, sup.reference:target, cite:target {
	background-color: #ddeeff;
}

/* Ensure refs in table headers and the like aren't bold or italic */
sup.reference {
	font-weight: normal;
	font-style: normal;
}

/* Styling for citations */
cite {
	font-style: normal;
	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, 
projection {
	cite *.printonly {
		display: none;
	}
}   

/* so they need to be the same width. */
/* Infobox template style */
/* TODO: remove after "infobox-old" replaced by "infobox" (new Template:Infobox) */
.infobox-old {
	border: 1px solid #aaaaaa;
	background-color: #f9f9f9;
	color: black;
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	float: right;
	clear: right;
}
.infobox-old td,
.infobox-old th {
	vertical-align: top;
}
.infobox-old caption {
	font-size: larger;
}
.infobox-old.bordered {
	border-collapse: collapse;
}
.infobox-old.bordered td,
.infobox-old.bordered th {
	border: 1px solid #aaaaaa;
}
.infobox-old.bordered
.borderless td,
.infobox-old.bordered
.borderless th {
	border: 0;
}
.infobox-old.sisterproject {
	width: 20em;
	font-size: 90%;
}
.infobox-old.standard-talk {
	border: 1px solid #c0c090;
	background-color: #f8eaba;
}
.infobox-old.standard-talk.bordered td,
.infobox-old.standard-talk.bordered th {
	border: 1px solid #c0c090;
}

/* Styles for bordered infobox with merged rows */
.infobox-old.bordered .mergedtoprow td,
.infobox-old.bordered .mergedtoprow th {
	border: 0;
	border-top: 1px solid #aaaaaa;
	border-right: 1px solid #aaaaaa;
}
.infobox-old.bordered .mergedrow td,
.infobox-old.bordered .mergedrow th {
	border: 0;
	border-right: 1px solid #aaaaaa;
}

/* Styles for geography infoboxes, e.g., countries, country subdivisions, cities, etc.*/
.infobox-old.geography {
	text-align: left;
	border-collapse: collapse;
	line-height: 1.2em;
	font-size: 90%;
}
.infobox-old.geography  td,
.infobox-old.geography  th {
	border-top: solid 1px #aaaaaa;
	padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox-old.geography .mergedtoprow td,
.infobox-old.geography
.mergedtoprow th {
	border-top: solid 1px #aaaaaa;
	padding: 0.4em 0.6em 0.2em 0.6em;
}
.infobox-old.geography
.mergedrow td,
.infobox-old.geography
.mergedrow th {
	border: 0;
	padding: 0 0.6em 0.2em 0.6em;
}
.infobox-old.geography
.mergedbottomrow td,
.infobox-old.geography
.mergedbottomrow th {
	border-top: 0;
	border-bottom: solid 1px #aaaaaa;
	padding: 0 0.6em 0.4em 0.6em;
}
.infobox-old.geography
.maptable td,
.infobox-old.geography
.maptable th {
	border: 0;
	padding: 0;
}

/* Style rules for media list templates */
div.medialist {
	min-height: 50px;
	margin: 1em;
	background-position: top 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;
}

/* Colored watchlist numbers */
.mw-plusminus-pos {
	color: #006400;
}

/* dark green */
.mw-plusminus-neg {
	color: #8b0000;
}

/* dark red */
.rellink,
.dablink {
	font-style: italic;
	padding-left: 2em;
}
.rellink i,
.dablink i {
	font-style: normal;
}

/* Style for horizontal UL lists */
.horizontal ul {
	padding: 0;
	margin: 0;
}
.horizontal li {
	padding: 0 0.6em 0 0.4em;
	display: inline;
	border-right: 1px solid;
}
.horizontal li:last-child {
	border-right: none;
	padding-right: 0;
}

/* When <div class="nonumtoc"> is used on the table of contents,
	the ToC will display without numbers */
.nonumtoc .tocnumber {
	display: none;
}
.nonumtoc #toc ul,
.nonumtoc .toc ul {
	line-height: 1.5em;
	list-style: none;
	margin:
	.3em 0 0;
	padding: 0;
}
.nonumtoc #toc ul ul, 
.nonumtoc
.toc ul ul {
	 margin: 0 0 0 2em; 
}

/* Prevent line breaks in silly places:
	1) links when we don't want them to
	2) HTML formulae
	3) Ref tags with group names <ref group="Note"> --> "[Note 1]" */
.nowraplinks a, span.texhtml, sup.reference a {
	white-space: nowrap;
}

.thumbinner {
	min-width: 100px;
}

/* Inline divs in ImageMaps (code borrowed from de.wiki) */
.imagemap-inline div {
	display: inline;
}

/* Increase the height of the image upload box */
#wpUploadDescription {
	height: 13em;
}

/* Reduce line-height for <sup> and <sub> */
sup, sub {
	line-height: 1em; }

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

/* Div based "warning" style system messages (system messages). */
div.mw-warning-with-logexcerpt, 
div.mw-lag-warn-high, 
div.mw-cascadeprotectedwarning {
	clear: both;
	margin: 0.2em 0;
	border: 1px solid #bb7070;
	background: #ffdbdb;
	padding: 0.25em 0.9em;
}
/* Div based "system" style messages (system messages). */
div.mw-lag-warn-normal, 
div.noarticletext, 
div.fmbox-system {
	clear: both;
	margin: 0.2em 0;
	border: 1px solid #aaa;
	background: #f9f9f9;
	padding: 0.25em 0.9em;
}

/* Selectively hide headers in WikiProject banners */
.wpb .wpb-header             { display: none; }
.wpbs-inner .wpb .wpb-header { display: block; }     /* for IE */
.wpbs-inner .wpb .wpb-header { display: table-row; } /* for real browsers */
.wpbs-inner .wpb-outside     { display: none; }      /* hide things that should only display outside shells */

/* Allow limiting of which header levels are shown in a TOC;
	<div class="toclimit-3">, for instance, will limit to
	showing ==headings== and ===headings=== but no further
	(as long as there are no =headings= on the page, which
	there shouldn't be according to the MoS).  */
.toclimit-2 .toclevel-2,
.toclimit-3 .toclevel-3,
.toclimit-4 .toclevel-4,
.toclimit-5 .toclevel-5,
.toclimit-6 .toclevel-6,
.toclimit-7 .toclevel-7 {
	display: none;
}

/* Numbered lists (ordered) */
/* Use #, ##, ### wikitext to produce the usual system of numbered lists (1, 2, 3; then a, b, c; then i, ii, iii) */
ol { 
	list-style-type: decimal; 
}
ol li > ol { 
	list-style-type: lower-alpha; 
}
ol li > ol li > ol { 
	list-style-type: lower-roman; 
}

/* Bulleted lists (unordered) */
/* Use *, **, *** wikitext to produce the usual system of bulleted lists (•; then ◦; then ▪) */
ul { 
	list-style-image: none;
	list-style-type: disc;
}
ul li > ul { 
	list-style-type: circle;
}
ul li > ul li > ul { 
	list-style-type: square;
}

/* Regional logos
.mw-wiki-logo:lang(en-gb) {
	background-image: url(https://pzwiki.net/w/images/3/37/Spiffo_rummage.png) !important;
} */

/* Custom CSS for code */
pre.code {
    background-color: #f8f9fa;
    border: 1px solid #eaecf0;
    color: #000000;
    line-height: 1.3;
    padding: 1em;
    tab-size: 4;
}
pre.code span.comment {
    color: #408080;
    font-style: italic;
}
pre.code span.function {
    color: #0000ff;
}
pre.code span.keyword {
    color: #008000;
    font-weight: bold;
}
span.obsolete {
    color: #ff0000;
}

/* Template:Section */
div.pz-section {
  display: flex;
  flex-direction: column;
  border: var(--border-mw);
  border-radius: calc(var(--border-radius) * 2);
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: var(--shadow-mw);
}
div.pz-section.theme-red {
  background-color: var(--background-red);
  border: var(--border-red);
}
div.pz-section.theme-blue {
  background-color: var(--background-blue);
  border: var(--border-blue);
}
div.pz-section > h2 {
  text-align: center;
  margin: 0;
  padding: calc(var(--border-radius) / 2);
}
div.pz-section.theme-red > h2 {
  background-color: var(--color-red);
  color: white;
}
div.pz-section.theme-blue > h2 {
  background-color: var(--color-blue);
  color: white;
}
div.pz-section.theme-red > h2 a {
  color: var(--link-red);
}
div.pz-section.theme-blue > h2 a {
  color: var(--link-blue);
}
div.pz-section > div {
  flex-grow: 1;
  padding: var(--border-radius);
}
div.pz-section > div h3 {
  text-align: center;
  border-bottom: var(--border-mw);
}

/* Responsive layout */
/* TODO: remove after "pz-responsive" replaced with "pz-container" */
div.pz-responsive {
  width: 100%;
  display: flex;
}
div.pz-responsive > div {
  display: flex;
  flex-direction: column;
}
div.pz-responsive > div:first-child {
  flex-basis: 70%;
  margin-right: 10px;
}
div.pz-responsive > div:last-child {
  flex-basis: 30%;
}
div.pz-responsive > div > div {
  margin-bottom: 10px;
}
div.pz-responsive > div > div:last-child {
  margin-bottom: 0;
  flex-grow: 1;
}
/** Responsive images **/
div.pz-responsive img {
  width: 100%;
  height: auto;
}
/** Mobile layout **/
@media screen and (max-width: 1280px) {
  div.pz-responsive {
    flex-direction: column;
  }
  div.pz-responsive > div:first-child {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* Template:Mbox */
div.mbox {
  position: relative;
  display: flex;
  align-items: center;
  border: var(--border-mw);
  border-radius: var(--border-radius);
  background-color: var(--background-mw);
  margin-bottom: 0.5em;
  padding-left: var(--border-radius);
  overflow: hidden;
}
div.mbox > div:first-child {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--border-radius);
  background-color: var(--color-mw);
}
div.mbox > div:first-child + div {
  flex-shrink: 0;
  padding: var(--border-radius);
  text-align: center;
  border-right: var(--border-mw);
}
div.mbox > div:first-child + div img {
  width: 32px;
  height: auto;
}
div.mbox > div:last-child {
  flex-grow: 1;
  padding: calc(var(--border-radius) / 2) var(--border-radius);
}

/* Template:Infobox */
div.infobox {
  float: right;
  clear: right;
  width: 350px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: var(--background-mw);
  border: 1px solid var(--color-red);
  border-radius: calc(var(--border-radius) * 2);
  margin: 0.5em 0 0.5em 1em;
  box-shadow: var(--shadow-mw);
  overflow: hidden;
}
div.infobox > div:first-child {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  padding: calc(var(--border-radius) / 2);
}
div.infobox div.infobox-image {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
div.infobox div.infobox-image > div.infobox-preview {
  display: none; /* handled with js */
  margin: 0 auto;
}
div.infobox div.infobox-image > div.infobox-preview img {
  max-width: 200px;
  height: auto;
}
div.infobox div.infobox-image > div.infobox-caption {
  text-align: center;
  font-style: italic;
}
div.infobox div.infobox-image > div.infobox-gallery {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  flex-wrap: wrap;
}
div.infobox div.infobox-image > div.infobox-gallery img {
  border: var(--border-mw);
  border-radius: var(--border-radius);
  padding: 1px;
  width: auto;
  max-height: 32px;
  cursor: pointer;
}
div.infobox div.infobox-image > div.infobox-gallery img:hover {
  background: var(--color-mw);
  box-shadow: 0 0 0.25em var(--color-mw-border);
}
div.infobox div.infobox-image > div.infobox-gallery img.selected {
  background: var(--color-mw);
  box-shadow: 0 0 0.25em var(--color-mw-border) inset;
}
div.infobox div.infobox-section {
    position: relative;
}
div.infobox div.infobox-section > div:first-child {
  text-align: center;
  font-size: 1.0em;
  font-weight: bold;
  padding: calc(var(--border-radius) / 2);
}
div.infobox div.infobox-section > div.mw-collapsible {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
div.infobox div.infobox-section > div.toggle {
  color: white;
}
div.infobox div.infobox-item {
  display: flex;
}
div.infobox div.infobox-item > div {
  padding: 0 0.5em;
  overflow:auto; /* temporary fix for long values (item_id) */
}
div.infobox div.infobox-item > div:first-child {
  width: 40%;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
  background-color: var(--background-mw-even);
}
div.infobox div.infobox-item > div:first-child img {
  width: 1.5em;
  height: 1.5em;
}
div.infobox div.infobox-item > div:first-child img.auto-size {
  width: auto;
  height: auto;
}

/* Template:Documentation */
div.documentation {
  display: flex;
  flex-direction: column;
}
div.documentation > div {
  border: var(--border-mw);
  padding: var(--border-radius);
}
div.documentation > div:first-child {
  background-color: var(--background-mw-heading);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin-bottom: 0.2em;
  text-transform: uppercase;
  font-weight: bold;
}
div.documentation > div:first-child img {
  max-width: 2em;
  max-height: 2em;
}
div.documentation > div:first-child + div {
  background-color: var(--background-mw);
  margin-bottom: 0.2em;
}
div.documentation > div:last-child {
  background-color: var(--background-mw-heading);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  text-align: right;
  font-style: italic;
}

/* Template:Header */
div.header {
  display: flex;
  padding: 0.5em 0;
  margin-bottom: 0.5em;
  border-radius: var(--border-radius);
}
div.header.theme-red {
  background-color: var(--color-red);
  border: var(--border-red);
  color: white;
}
div.header.theme-blue {
  background-color: var(--color-blue);
  border: var(--border-blue);
  color: white;
}
div.header.theme-red a {
  color: var(--link-red);
}
div.header.theme-blue a {
  color: var(--link-blue);
}
div.header > div:first-child {
  font-weight: bold;
  padding: 0 0.5em;
}
div.header > div:last-child {
  flex-grow: 1;
  padding: 0 0.5em;
}
div.header.theme-red > div:first-child {
  border-right: 1px solid var(--link-red);
}
div.header.theme-blue > div:first-child {
  border-right: 1px solid var(--link-blue);
}

/* Template:Mask */
.mask {
  color: black;
  background-color: black;
  transition: color 0.2s linear;
}
.mask:hover {
  color: white;
}

/* Template:Navbox */
div.navbox {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--background-mw);
  border: 1px solid var(--color-mw);
  border-radius: var(--border-radius);
  margin: 0.5em auto;
  overflow: hidden;
}
div.navbox.theme-red {
  border: var(--border-red);
}
div.navbox.theme-blue {
  border: var(--border-blue);
}
div.navbox > div:first-child {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  padding: calc(var(--border-radius) / 2) var(--border-radius); /* <!-- */
}
div.navbox.theme-red > div:first-child {
  background-color: var(--color-red);
  color: white;
}
div.navbox.theme-blue > div:first-child {
  background-color: var(--color-blue);
  color: white;
}
div.navbox.theme-red > div:first-child a {
  color: var(--link-red);
}
div.navbox.theme-blue > div:first-child a {
  color: var(--link-blue);
}
/* second-level of navbox */
div.navbox div.navbox > div:first-child {
    font-size: 1.0em;
    filter: brightness(120%);
}
/* third-level of navbox */
div.navbox div.navbox div.navbox > div:first-child {
    font-size: 0.9em;
    filter: brightness(150%)
}
div.navbox > div.mw-collapsible {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
div.navbox.theme-red > div.toggle,
div.navbox.theme-blue > div.toggle {
  color: white;
}
div.navbox div.navbox-row {
  background-color: var(--color-mw);
  text-align: center;
}
div.navbox > div.mw-collapsible .navbox {
  border: none;
  border-radius: 0;
  box-shadow: 0 0;
  margin: 0;
}
div.navbox > div.mw-collapsible div.navbox-section {
  display: flex;
  gap: 2px;
}
div.navbox > div.mw-collapsible div.navbox-section > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}
div.navbox > div.mw-collapsible div.navbox-section > div:first-child + div {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
div.navbox > div.mw-collapsible div.navbox-item {
  display: flex;
  gap: 2px;
}
div.navbox > div.mw-collapsible div.navbox-item > div:first-child {
  width: 20%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--background-mw-even);
  font-weight: bold;
  text-align: center;
}
div.navbox > div.mw-collapsible div.navbox-item > div:last-child {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Scale image on hover */
/* Used on main page for quick links */
.scale-image img {
    transition: all 0.2s ease-in-out;
}
.scale-image img:hover {
    transform: scale(1.05);
}

/* Images should be responsive */
/* Image will resize based on container size, instead of being static. */
.res-img img {
    max-width: 100%;
    height: auto;
}

/* Template:Togglebox */
div.togglebox {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  margin: 0.5em auto;
  padding: var(--border-radius);
}
div.togglebox.theme-red {
  background-color: var(--color-red);
}
div.togglebox.theme-blue {
  background-color: var(--color-blue);
}
div.togglebox > div:first-child {
  font-size: 1.2em;
  font-weight: bold;
  padding: 0 var(--border-radius);
}
div.togglebox.theme-red > div:first-child {
  color: white;
}
div.togglebox.theme-blue > div:first-child {
  color: white;
}
div.togglebox.theme-red > div:first-child a {
  color: var(--link-red);
}
div.togglebox.theme-blue > div:first-child a {
  color: var(--link-blue);
}
div.togglebox > div.mw-collapsible {
  background-color: var(--background-mw);
  border-radius: var(--border-radius);
  padding: var(--border-radius);
  margin-top: 0.5em;
}
div.togglebox.theme-red > div.mw-collapsible { /* ToggleBox content div red */
  /* background-color: var(--background-red); */
}
div.togglebox.theme-blue > div.mw-collapsible { /* ToggleBox content div blue */
  /* background-color: var(--background-blue); */
}
div.togglebox > div.toggle {
  color: white;
}

/* used in Project Zomboid Wiki and PZwiki:Community Portal */
div.pz-container {
  width: 100%;
  display: flex;
  gap: 0.5em;
}
div.pz-container > div {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
div.pz-container > div:first-child {
  flex-basis: 70%;
}
div.pz-container > div:last-child {
  flex-basis: 30%;
}
div.pz-container > div > div:last-child {
  flex-grow: 1;
}
div.pz-container img {
  width: auto;
  height: auto;
}
@media screen and (max-width: 1280px) {
  div.pz-container {
    flex-direction: column;
  }
}

/* Toggle for collapsible templates */
div.toggle::after {
  content: "◥";
  position: absolute;
  top: 0.2em;
  right: 0.7em;
  font-size: 1.2em;
  font-weight: bold;
  transition: transform 0.2s linear;
}
div.toggle.small::after {
    font-size: 1.1em;
}
div.toggle.large::after {
  top: 0.5em;
  right: 1em;
}
div.mw-collapsed + div.toggle::after {
  transform: rotate(90deg);
}

/* Template:Userbox showcase */
div.userbox-showcase {
  min-width: 240px;
  float: right;
  clear: right;
  margin: 0 0 1em 0.5em;
  border: var(--border-blue);
  border-radius: calc(var(--border-radius) * 2);
  overflow: hidden;
}
div.userbox-showcase > div {
  padding: var(--border-radius);
}
div.userbox-showcase > div:first-child {
  text-align: center;
  background-color: var(--color-blue);
  color: white;
  font-size: 1.2em;
  font-weight: bold;
}
div.userbox-showcase > div:first-child a {
  color: var(--link-blue);
}
div.userbox-showcase > div:last-child {
  display: flex;
  flex-direction: column;
  gap: var(--border-radius);
  background-color: var(--background-blue);
}

/* Template: Userbox */
div.userbox {
  display: flex;
  min-height: 40px;
  max-width: 240px;
  border: var(--border-mw);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: 0.5em;
}
div.userbox > div {
  padding: var(--border-radius);
  min-height: 32px;
  display: flex;
  align-items: center;
}
div.userbox > div:first-child {
  text-align: center;
  font-weight: bold;
  flex-basis: 32px;
  flex-shrink: 0;
  border-right: var(--border-mw);
  justify-content: center;
}
div.userbox > div:first-child img {
  max-width: 32px;
  height: auto;
}
div.userbox > div:last-child {
  flex-grow: 1;
  font-size: 0.75em;
  padding: 0 var(--border-radius);
}
div.userbox.awards {
  display: block;
}
div.userbox.awards > div:first-child {
  float: left;
}
div.userbox-showcase > div:last-child > div.userbox {
  margin: 0;
}

/* for nav bar */
div.navbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: var(--border-radius);
  border-radius: calc(2 * var(--border-radius));
}
div.navbar > a {
  padding: var(--border-radius);
  border-radius: var(--border-radius);
  border: var(--border-mw);
  background-color: var(--color-mw);
  transition: all 0.2s linear;
  text-decoration: none;
}
div.navbar.theme-red > a {
  background-color: var(--color-red);
  color: var(--link-red);
  border: var(--border-red);
}
div.navbar.theme-blue > a {
  background-color: var(--color-blue);
  color: var(--link-blue);
  border: var(--border-blue);
}
div.navbar > a:first-child {
  font-weight: bold;
}
div.navbar > a:hover {
  border-radius: calc(var(--border-radius) * 2);
}
div.navbar.theme-red > a:hover {
  background-color: #b22328; /* light red */
}
div.navbar.theme-blue > a:hover {
  background-color: #2f8cd8; /* light blue */
}
div.navbar > a.mw-selflink {
  border-radius: calc(var(--border-radius) * 2);
  color: white;
}
div.navbar.theme-red > a.mw-selflink {
  background-color: #b22328; /* light red */
}
div.navbar.theme-blue > a.mw-selflink {
  background-color: #2f8cd8; /* light blue */
}

/* Don't show In other languages when editing pages on Vector skins, until we find better solution */
#p-lang {
  display: none;
}

/* Template:Key */
kbd.keyboard-key {
  border: 1px solid #aaaaaa;
  border-radius: 0.2em;
  box-shadow: 0.1em 0.2em 0.2em #dddddd;
  background-image: linear-gradient(to bottom, #eeeeee, #f9f9f9, #eeeeee);
  padding: 0.1em 0.3em;
  font-family: inherit;
  font-size: 0.85em;
}

/* Template:Quote */
.quote {
    display: flex;
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
}
.quote .quote-mark {
    font-weight: bold;
    font-size: 4em;
    height: 1em;
}
.quote .quote-text {
    margin: 0.5em;
    padding-left: 0.5em;
    border-left: 1px solid #000000;
    font-style: italic;
}
.quote .quote-author {
    text-align: right;
}

/* Mediawiki:Sitenotice */
.sitenotice-card {
    background-color: #f8f9fa;
    color: #000000;
    text-align: center;
    justify-content: space-between;
    margin: 0.75rem 0;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eaecf0;
    display: flex;
    width: auto;
    align-items: center;
}
.sitenotice-card > div {
    display: flex;
    flex-direction: column;
}
.sitenotice-card .image-container-left {
    margin-right: 1rem;
}
.sitenotice-card .image-container-right {
    margin-left: 1rem;
}