MediaWiki:Common.css: Difference between revisions

From wizzypedia
Jump to navigation Jump to search
(Undo revision 1049 by Mwazir (talk))
Tag: Undo
No edit summary
Tag: Reverted
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/*
 
* This is the CSS for all desktop skins on en.Wikipedia.
/* --- General look and feel of the site --- */
* Styling inside .mw-parser-output should generally use TemplateStyles.
 
*/
/* latin-ext */
/* Reset italic styling set by user agent */
@font-face {
cite,
  font-family: 'Titillium Web';
dfn {
  font-style: normal;
font-style: inherit;
  font-weight: 400;
  src: local('Titillium Web'), local('TitilliumWeb-Regular'), url('/resources/dark/fonts/TitilliumWeb-Regular.ttf') format('truetype');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
}
 
/* latin */
/* Straight quote marks for <q> */
@font-face {
q {
  font-family: 'Titillium Web';
quotes: '"' '"' "'" "'";
  font-style: normal;
  font-weight: 400;
  src: local('Titillium Web'), local('TitilliumWeb-Regular'), url('/resources/dark/fonts/TitilliumWeb-Regular.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
}
 
/* latin-ext */
/* Avoid collision of blockquote with floating elements by swapping margin and padding */
@font-face {
blockquote {
  font-family: 'Titillium Web';
overflow: hidden;
  font-style: normal;
margin: 1em 0;
  font-weight: 600;
padding: 0 40px;
  src: local('Titillium WebSemiBold'), local('TitilliumWeb-SemiBold'), url('/resources/dark/fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
}
 
/* latin */
/* Consistent size for <small>, <sub> and <sup> */
@font-face {
small {
  font-family: 'Titillium Web';
font-size: 85%;
  font-style: normal;
  font-weight: 600;
  src: local('Titillium WebSemiBold'), local('TitilliumWeb-SemiBold'), url('/resources/dark/fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
}
 
/* latin-ext */
.mw-body-content sub,
@font-face {
.mw-body-content sup,
  font-family: 'Titillium Web';
span.reference /* for Parsoid */ {
  font-style: normal;
font-size: 80%;
  font-weight: 700;
  src: local('Titillium WebBold'), local('TitilliumWeb-Bold'), url('/resources/dark/fonts/TitilliumWeb-Bold.ttf') format('truetype');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
}
 
/* latin */
/* Same spacing for indented and unindented paragraphs on talk pages */
@font-face {
.ns-talk .mw-body-content dd {
  font-family: 'Titillium Web';
margin-top: 0.4em;
  font-style: normal;
margin-bottom: 0.4em;
  font-weight: 700;
  src: local('Titillium WebBold'), local('TitilliumWeb-Bold'), url('/resources/dark/fonts/TitilliumWeb-Bold.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
}


/* Reduce page jumps by hiding collapsed/dismissed content */
/* --- remove sidebar label and upper border of custom toolbox to make it look like that point is part of the tools section --- */
.client-js .mw-special-Watchlist #watchlist-message,
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child),


/* Hide charinsert base for those not using the gadget */
#p-tb {
#editpage-specialchars {
padding-bottom: 0 !important;
display: none;
}
}


/* Adds padding above Watchlist announcements where new recentchanges/watchlist filters are enabled */
#p-custom-tb {
.mw-rcfilters-enabled .mw-specialpage-summary {
border-top: none !important;
margin-top: 1em;
padding-top: 0 !important;
}
}


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


/* Styling for jQuery makeCollapsible, matching that of collapseButton */
/* Remove overdone top margin on slideshow galleries */
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) {
 
font-weight: normal;
ul.gallery.mw-gallery-slideshow {
/* @noflip */
margin: 1em 0;
text-align: right;
padding-right: 0.2em;
padding-left: 0.2em;
}
}


.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
/* Adjust wikitable padding */
/* @noflip */
 
float: left;
table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {
/* @noflip */
    padding: 0.15em 0.45em
text-align: left;
}
}


/* Lists in wikitable data cells are always left-aligned */
/* Hide the semantic wiki notices for now */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
/* @noflip */
text-align: left;
}


/* Fix for hieroglyphs specificity issue in infoboxes ([[phab:T43869]]) */
.smw-editpage-help {
.mw-parser-output table.mw-hiero-table td {
  display: none;
vertical-align: middle;
}
}


/* Change the external link icon to a PDF icon for all PDF files */
/* --- End of General look and feel of the site --- */
.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 */
/* --- boilerplate style class for templates that deal with the wiki organisation etc examples: template:archive, template:merge, template:delete, template:stub, template:disambiguation --- */
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: #ffdbdb;
padding: 0.25em 0.9em;
box-sizing: border-box;
}


/* default colors for partial block message */
.factorio-boilerplate {
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt {
margin:auto auto 10px;
border-color: #fc3;
width:100%
background-color: #fef6e7;
}
}


/* Increase the height of the image upload box */
.factorio-boilerplate table {
#wpUploadDescription {
margin:auto;
height: 13em;
text-align:left;
border:2px solid #aaa;
background-color: #e4f0f7;
width:calc(100% - 23em)
}
}


/* Minimum thumb width */
/* --- Template:Achievement --- */
.thumbinner {
min-width: 100px;
}


/* Prevent floating boxes from overlapping any category listings,
.achievement {
  file histories, edit previews, and edit [Show changes] views. */
border:none;
#mw-subcategories,
background:none
#mw-pages,
#mw-category-media,
#filehistory,
#wikiPreview,
#wikiDiff {
clear: both;
}
}


/* Styling for Abuse Filter tags */
/* --- Template:Key --- */
.mw-tag-markers {
font-style: italic;
font-size: 90%;
}


/* Hide stuff meant for accounts with special permissions. Made visible again in
.keyboard-key {
  [[MediaWiki:Group-checkuser.css]], [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-abusefilter.css]],
border: 1px solid #aaa;
  [[MediaWiki:Group-abusefilter-helper.css]], [[MediaWiki:Group-patroller.css]],
background-color: #f9f9f9;
  [[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]],
border-radius: 0.2em;
  [[MediaWiki:Group-extendedconfirmed.css]], and [[Mediawiki:Group-autoconfirmed.css]]. */
box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.1);
.checkuser-show,
padding: 0.1em 0.3em;
.sysop-show,
font-family: inherit;
.abusefilter-show,
font-size: 0.85em;
.abusefilter-helper-show,
.patroller-show,
.templateeditor-show,
.extendedmover-show,
.extendedconfirmed-show,
.autoconfirmed-show,
.user-show {
display: none;
}
}


/* Hide the redlink generated by {{Editnotice}},
/* --- Template:ContentCell --- */
  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.
.factorio-contentcell {
  Long term, editnotices should become a core feature so that they can be designed responsive. */
background: #F9F9F9;
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,
border: 1px solid #AAAAAA;
.ve-ui-mwNoticesPopupTool-item .mbox-image,
vertical-align: top;
.ve-ui-mwNoticesPopupTool-item .mbox-imageright {
-moz-border-radius: 5px;
display: none !important;
-webkit-border-radius: 5px;
padding: 7px;
}
}


/* Remove bullets when there are multiple edit page warnings */
.factorio-contentcell .titlebar {
ul.permissions-errors {
background: #E4F0F7;
margin: 0;
padding: 5px;
margin: 3px;
font-weight: bold;
text-align: center;
color: #033251;
font-size: 120%;
}
}


ul.permissions-errors > li {
/* --- TEMPLATE:Icon --- */
list-style: none none;
 
.factorio-icon {
display:inline-block;
margin:5px;
position:relative;
padding:3px;
width:32px;
height:32px;
border:1px solid #4B4543;
}
}


/* larger inline math */
.factorio-icon-text {
span.mwe-math-mathml-inline {
position:absolute;
font-size: 118%;
bottom: -3px;
right: 2px;
color:#fff;
font-size:larger;
font-weight: bold;
text-shadow: 0px 1px 1px #000, 0px -1px 1px #000, 1px 0px 1px #000,-1px 0px 1px #000;
pointer-events: none
}
}


/* Make <math display="block"> be left aligned with one space indent for
/* --- TEMPLATE:NavboxIconLink --- */
* compatibility with style conventions
.navbox-icon {
*/
position: relative;
.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 {
.navbox-icon-text {
display: inline;
position: absolute;
bottom: -5px;
right: 1px;
color:#fff;
font-size:10px;
font-weight: bold;
text-shadow: 0px 1px 1px #000, 0px -1px 1px #000, 1px 0px 1px #000,-1px 0px 1px #000;
pointer-events: none
}
}


@media screen {
span.whiteLink a { color: white; }
/* Gallery styles background changes are restricted to screen view.
  In printing we should avoid applying backgrounds. */
/* The backgrounds for galleries. */
#content .gallerybox div.thumb {
/* Light gray padding */
background-color: #f8f9fa;
}
/* Put a chequered background behind images, only visible if they have transparency.
  '.filehistory a img' and '#file img:hover' are handled by MediaWiki core (as of 1.19) */
.gallerybox .thumb img {
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
}
/* But not on articles, user pages, or portals. */
.ns-0 .gallerybox .thumb img,
.ns-2 .gallerybox .thumb img,
.ns-100 .gallerybox .thumb img {
background-image: none;
}


/* Display "From Wikipedia, the free encyclopedia" in skins that support it,
/* --- Gerneral --- */
  do not apply to print mode */
.hidden {
#siteSub {
display: none;
display: block;
}
}
}


/* Hide FlaggedRevs notice UI when there are no pending changes */
/* --- Languages template --- */
.flaggedrevs_draft_synced,
.languages-container {
.flaggedrevs_stable_synced,
background: #EFEFEF;
/* "Temporary" to remove links in sidebar T255381 */
padding: 5px;
#t-upload,
border-color: #ACACAC;
/* Hide broken download box on Special:Book pending T285400 */
border-width: 1px;
.mw-special-Book #coll-downloadbox {
border-style: solid;
display: none;
border-bottom-width: medium;
}
}


/*
.languages-container p {
  * BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
  margin: 0;
* SEE [[MediaWiki talk:Common.css/to do]]
}
*/


/* Style for horizontal lists (separator following item).
.languages-message {
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
  font-weight: bold;
  @revision 8 (2016-05-21)
font-size: smaller;
  @author [[User:Edokter]]
  */
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
}
}


/* Display list items inline */
/* --- Spoilers --- */
.hlist dd,
.spoiler-container .button {
.hlist dt,
  background: #E4F0F7;
.hlist li {
  border: 1px solid #b1d3e7;
margin: 0; /* don't trust the note that says margin doesn't work with inline
  box-shadow: -1px 1px 5px #777777;
* removing margin: 0 makes dds have margins again */
  display: inline-block;
display: inline;
  padding: 2px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 4px;
}
}


/* Display nested lists inline */
.spoiler-container .button:active {
.hlist.inline,
  box-shadow: -1px 1px 1px #777777;
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl,
.hlist dl ol,
.hlist dl ul,
.hlist ol dl,
.hlist ol ol,
.hlist ol ul,
.hlist ul dl,
.hlist ul ol,
.hlist ul ul {
display: inline;
}
}


/* Hide empty list items */
/* --- Infobox --- */
.hlist .mw-empty-li {
.infobox {
display: none;
width: 22em;
float: right;
border: 1px solid #aaa;
border-radius: 10px 10px 0 0;
margin-left: 5px;
}
}


/* Generate interpuncts */
.infobox table, .infobox tr {
.hlist dt:after {
width: 100%;
content: ": ";
}
}


/**
.infobox table {
* Note hlist style usage differs in Minerva and is defined in core as well!
  border-spacing: 0;
* Please check Minerva desktop (and Minerva.css) when changing
  padding: 4px;
  * See https://phabricator.wikimedia.org/T213239
  */
.hlist dd:after,
.hlist li:after {
content: " · ";
font-weight: bold;
}
}


.hlist dd:last-child:after,
.infobox .infobox-image img{
.hlist dt:last-child:after,
width: 100%;
.hlist li:last-child:after {
height: auto;
content: none;
}
}


/* Add parentheses around nested lists */
.infobox-header > div:first-child {
.hlist dd dd:first-child:before,
text-align: center;
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.hlist dt dd:first-child:before,
.hlist dt dt:first-child:before,
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before,
.hlist li li:first-child:before {
content: " (";
font-weight: normal;
}
}


.hlist dd dd:last-child:after,
.infobox-header > div {
.hlist dd dt:last-child:after,
padding: 5px 0;
.hlist dd li:last-child:after,
.hlist dt dd:last-child:after,
.hlist dt dt:last-child:after,
.hlist dt li:last-child:after,
.hlist li dd:last-child:after,
.hlist li dt:last-child:after,
.hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
}


/* Put ordinals in front of ordered list items */
.infobox-header-text {
.hlist ol {
padding:0;
counter-reset: listitem;
text-align: left !important;
}
}


.hlist ol > li {
.infobox-header-text span{
counter-increment: listitem;
font-size: 1.2em;
font-weight: bold;
line-height: 1.2em;
}
}


.hlist ol > li:before {
.infobox-header-text p{
content: " " counter(listitem) "\a0";
margin: 0;
}
}


.hlist dd ol > li:first-child:before,
.infobox-edit-link {
.hlist dt ol > li:first-child:before,
font-weight:normal;
.hlist li ol > li:first-child:before {
font-size:small;
content: " (" counter(listitem) "\a0";
padding-right: 0.5em;
text-align: right;
}
}


/* Unbulleted lists */
.infobox-edit-link a {
.plainlist ol,
color: inherit !important;
.plainlist ul {
font-style: italic;
line-height: inherit;
text-decoration: underline;
list-style: none none;
margin: 0;
}
}


.plainlist ol li,
/* switching the infobox-header colors per category using classes so that they can be easily modified by user css */
.plainlist ul li {
 
margin-bottom: 0;
.infobox .combat {
background: #FF0000;
color: white;
}
}


/* Infobox template style */
.infobox .intermediates {
.infobox {
background: #AAAAAA;
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 .production {
.infobox-label,
  background: #FFA600;
.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 .logistics {
.infobox-data,
  background: #A1056F;
/* Remove element selector when every .infobox thing is using the standard module/templates */
color: white;
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
}
}


/* Remove .infobox when element selectors above are removed */
.infobox .technology {
.infobox .infobox-above,
  background: #228B22;
.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,
.infobox .default-infobox {
/* Remove element selector when every .infobox thing is using the standard module/templates  */
background: lightblue;
.infobox caption {
padding: 0.2em;
}
}


/* Remove .infobox when element selectors above are removed */
/* end of the style classes for the infobox header color switcher */
.infobox .infobox-header,
 
.infobox .infobox-subheader,
.infobox p {
.infobox .infobox-image,
margin: 0;
.infobox .infobox-full-data,
}
.infobox .infobox-below {
.infobox .infobox-header th {
text-align: center;
white-space: nowrap;
}
}


/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header > div {
.infobox .infobox-navbar {
display: inline-block;
/* @noflip */
text-align: right;
}
}


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


/* ambox/tmbox/imbox/cmbox/ombox/fmbox message boxes */
.infobox .infobox-header {
th.mbox-text,
border-radius: 7px 7px 0 0;
td.mbox-text {   /* The message body cell(s) */
overflow: hidden;
border: none;
/* @noflip */
padding: 0.25em 0.9em;     /* 0.9em left/right */
width: 100%;               /* Make all mboxes the same width regardless of text length */
}
}


td.mbox-image {               /* The left image cell */
.infobox tr.border-top td {
border: none;
border-top: 1px solid #aaa;
/* @noflip */
padding: 2px 0 2px 0.9em;  /* 0.9em left, 0px right */
text-align: center;
}
}


td.mbox-imageright {           /* The right image cell */
.infobox tr td:nth-child(2) {
border: none;
  text-align: right;
/* @noflip */
padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */
text-align: center;
}
}


td.mbox-empty-cell {           /* An empty narrow cell */
.infobox .infobox-header th > div {
border: none;
display: inline-block;
padding: 0;
width: 1px;
}
}


/* Article message box styles */
.infobox-vrow-value {
table.ambox {
  text-align: center;
margin: 0 10%;                  /* 10% = Will not overlap with other elements */
border: 1px solid #a2a9b1;
/* @noflip */
border-left: 10px solid #36c; /* Default "notice" blue */
background-color: #fbfbfb;
box-sizing: border-box;
}
}


/* Single border between stacked boxes. */
.infobox .tabber .tabbernav {
table.ambox + table.ambox,
margin-top: 5px;
table.ambox + .mw-empty-elt + table.ambox {
margin-top: -1px;
}
}


.ambox th.mbox-text,
.infobox .tabber .tabbertab {
.ambox td.mbox-text {           /* The message body cell(s) */
border: 0px;
padding: 0.25em 0.5em;       /* 0.5em left/right */
padding: 0px;
 
}
.infobox .tabber table {
padding-bottom: 0px;
}
}


.ambox td.mbox-image {          /* The left image cell */
/* --- Navbox --- */
/* @noflip */
.navbox {
padding: 2px 0 2px 0.5em;   /* 0.5em left, 0px right */
padding-top: 1.5em;
}
}


.ambox td.mbox-imageright {     /* The right image cell */
.navbox th {
/* @noflip */
background: rgba(173, 216, 230, 1.0);
padding: 2px 0.5em 2px 0;   /* 0px left, 0.5em right */
border-radius: 10px;
}
}


table.ambox-notice {
.navbox, .navbox tr, .navbox table, .navbox p {
/* @noflip */
width: 100%;
border-left: 10px solid #36c;       /* Blue */
}
}


table.ambox-speedy {
.navbox-header p {
/* @noflip */
text-align: center;
border-left: 10px solid #b32424;   /* Red */
font-size: 125%;
background-color: #fee7e6;         /* Pink */
}
}


table.ambox-delete {
.navbox p {
/* @noflip */
margin: 0;
border-left: 10px solid #b32424;   /* Red */
}
}


table.ambox-content {
.navbox td > div, .navbox th > div {
/* @noflip */
margin: 0px 10px;
border-left: 10px solid #f28500;   /* Orange */
}
}


table.ambox-style {
.navbox .navbox-header {
/* @noflip */
width: 100%;
border-left: 10px solid #fc3;       /* Yellow */
}
}


table.ambox-move {
.navbox .list-data {
/* @noflip */
width: 100%;
border-left: 10px solid #9932cc;   /* Purple */
border-radius: 0 10px 10px 0;
background: rgba(173, 216, 230, 0.4);
}
}


table.ambox-protection {
.navbox .group-data {
/* @noflip */
white-space: nowrap;
border-left: 10px solid #a2a9b1;   /* Gray-gold */
text-align: right;
border-radius: 10px 0 0 10px;
background: rgba(173, 216, 230, 0.7);
}
}


/* Image message box styles */
/* Style for horizontal lists (separator following item).
table.imbox {
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
margin: 4px 10%;
  @revision 9 (2016-08-10)
border-collapse: collapse;
  @author [[User:Edokter]]
border: 3px solid #36c;   /* Default "notice" blue */
*/
background-color: #fbfbfb;
.hlist dl,
box-sizing: border-box;
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
    display: none;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
    content: ")";
    font-weight: normal;
}
}
 
/* Put ordinals in front of ordered list items */
.imbox .mbox-text .imbox {  /* For imboxes inside imbox-text cells. */
.hlist ol {
margin: 0 -0.5em;      /* 0.9 - 0.5 = 0.4em left/right.        */
    counter-reset: listitem;
display: block;         /* Fix for webkit to force 100% width.  */
}
}
 
.hlist ol > li {
.mbox-inside .imbox {       /* For imboxes inside other templates.  */
    counter-increment: listitem;
margin: 4px;
}
}
 
.hlist ol > li:before {
table.imbox-notice {
    content: " " counter(listitem) "\a0";
border: 3px solid #36c;       /* Blue */
}
}
 
.hlist dd ol > li:first-child:before,
table.imbox-speedy {
.hlist dt ol > li:first-child:before,
border: 3px solid #b32424;    /* Red */
.hlist li ol > li:first-child:before {
background-color: #fee7e6;   /* Pink */
    content: " (" counter(listitem) "\a0";
}
}


table.imbox-delete {
/* Template:Stub */
border: 3px solid #b32424;    /* Red */
}


table.imbox-content {
.stub {
border: 3px solid #f28500;   /* Orange */
border: 5px solid #FF6666;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
-icab-border-radius: 10px;
-o-border-radius: 10px;
padding: 5px;
}
}


table.imbox-style {
/* Template:Inventory */
border: 3px solid #fc3;      /* Yellow */
}


table.imbox-move {
.tab-header div {
border: 3px solid #9932cc;    /* Purple */
display: inline-block
}
}


table.imbox-protection {
.tab-head {
border: 3px solid #a2a9b1;   /* Gray-gold */
position: relative;
cursor: pointer
}
}


table.imbox-license {
.tab-head:after {
border: 3px solid #88a;       /* Dark gray */
content: attr(data-name);
background-color: #f7f8ff;   /* Light gray */
pointer-events: none;
position: absolute;
display: none;
z-index: 1000;
background-color: rgba(67, 67, 72, 0.8);
padding: 8px 8px;
min-width: 125px;
font-family: 'Titillium Web',sans-serif;
color: white
}
}


table.imbox-featured {
.tab-head img {
border: 3px solid #cba135;   /* Brown-gold */
border-top: 1px solid #c7c7c7;
border-left: 1px solid #6e6e6e;
border-right: 1px solid #6e6e6e;
border-bottom: 1px solid #1c1c1c;
background-color: #8e8e8e;
margin: 5px 0px 5px 1px
}
}


/* Category message box styles */
.tab-head img:hover {
table.cmbox {
background-color: #e39827
margin: 3px 10%;
border-collapse: collapse;
border: 1px solid #a2a9b1;
background-color: #dfe8ff;    /* Default "notice" blue */
box-sizing: border-box;
}
}


table.cmbox-notice {
.tab-head-active img {
background-color: #d8e8ff;   /* Blue */
background-color: #e39827;
border-top: 1px solid #2A2A2A;
border-left: 1px solid #2A2A2A;
border-right: 1px solid #CCC;
border-bottom: 1px solid #CCC
}
}


table.cmbox-speedy {
.tab .factorio-icon {
margin-top: 4px;
margin: 0.5px;
margin-bottom: 4px;
background-color: #313131;
border: 4px solid #b32424;   /* Red */
border-top: 1px solid #454545;
background-color: #ffdbdb;    /* Pink */
border-left: 1px solid #212121;
border-right: 1px solid #212121;
border-bottom: 1px solid #191919
}
}


table.cmbox-delete {
.tab .factorio-icon img {
background-color: #ffdbdb;    /* Pink */
filter: drop-shadow(0px 0px 4px #000)
}
}


table.cmbox-content {
.tab .factorio-icon:hover {
background-color: #ffe7ce;    /* Orange */
background-color: #e39827
}
}


table.cmbox-style {
.tab .factorio-icon:after {
background-color: #fff9db;   /* Yellow */
position: absolute;
pointer-events: none;
display: none;
z-index: 1000;
background-color: rgba(67, 67, 72, 0.8);
padding: 8px 8px;
min-width: 125px;
font-family: 'Titillium Web',sans-serif;
color: white
}
}


table.cmbox-move {
.tab {
background-color: #e4d8ff;    /* Purple */
min-height: 370px
}
}


table.cmbox-protection {
.factorio-contentcell .inventory {
background-color: #efefe1;   /* Gray-gold */
margin: auto;
width: 500px
}
}


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


table.ombox-notice {
.factorio-list ul {
border: 1px solid #a2a9b1;   /* Gray */
list-style-image: none;
}
}


table.ombox-speedy {
.factorio-list ul li ul {
border: 2px solid #b32424;    /* Red */
list-style-type: square;
background-color: #fee7e6;   /* Pink */
}
}


table.ombox-delete {
.factorio-list ul li ul li ul {
border: 2px solid #b32424;   /* Red */
list-style-type: circle;
}
}


table.ombox-content {
.factorio-list ul li ul li ul li ul{
border: 1px solid #f28500;   /* Orange */
list-style-type: disc;
}
}


table.ombox-style {
/* Template:Documentation */
border: 1px solid #fc3;      /* Yellow */
}


table.ombox-move {
.factorio-doc {
border: 1px solid #9932cc;   /* Purple */
margin-top:1em;
clear: both;
border: 2px dotted #666666;
padding: 0.6em;
background-color: #f5f5f5;
}
}


table.ombox-protection {
.factorio-doc-heading {
border: 2px solid #a2a9b1;   /* Gray-gold */
padding-bottom:3px;
border-bottom:1px solid #aaa;
margin-bottom:1ex;
}
}


/* Talk page message box styles */
/* Template:BlueprintString */
table.tmbox {
margin: 4px 10%;
border-collapse: collapse;
border: 1px solid #c0c090;    /* Default "notice" gray-brown */
background-color: #f8eaba;
min-width: 80%;
box-sizing: border-box;
}


.tmbox.mbox-small {
.bps-box {
min-width: 0;               /* reset the min-width of tmbox above        */
background-color: #105482;
border: 3px solid;
border-color: #c1c1c1 #616161 #616161 #c1c1c1;
padding: 5px;
width: 13em;
border-radius: 3px;
text-align: center;
cursor: pointer;
margin: 3px
}
}
 
.bps-box:active {
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
  background-color:#074774;
margin: 2px 0;               /* this declaration overrides other styles (including mbox-small above)  */
  border-color: #616161 #c1c1c1 #c1c1c1 #616161;
width: 100%;                 /* For Safari and Opera */
}
}
 
.bps-box img {
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when */
  pointer-events: none;
line-height: 1.5em;         /* also "nested", so reset styles that are  */
font-size: 100%;            /* set in "mbox-small" above.                */
}
}


table.tmbox-speedy {
.gallerytext .bps-box {
border: 2px solid #b32424;    /* Red */
margin: auto
background-color: #fee7e6;    /* Pink */
}
}


table.tmbox-delete {
/* Text blinking in rail signal colors */
border: 2px solid #b32424;    /* Red */
}


table.tmbox-content {
@keyframes rail-signal-blink {
border: 2px solid #f28500;   /* Orange */
  33% { color: #55FF55; }
  66% { color: #FFFF55; }
}
}
 
@-webkit-keyframes rail-signal-blink {
table.tmbox-style {
  33% { color: #55FF55; }
border: 2px solid #fc3;       /* Yellow */
  66% { color: #FFFF55; }
}
}
 
.rail-signal-blink {
table.tmbox-move {
  animation: rail-signal-blink 3s step-start 0s infinite;
border: 2px solid #9932cc;   /* Purple */
  -webkit-animation: rail-signal-blink 3s step-start 0s infinite;
  color: #ee7777;
}
}


table.tmbox-protection,
/* Prototype parents list */
table.tmbox-notice {
border: 1px solid #c0c090;    /* Gray-brown */
}


/* Footer and header message box styles */
.prototype-parents {
table.fmbox {
    background-color: #eaecf0;
clear: both;
    margin-top: -1em !important;
margin: 0.2em 0;
    padding-bottom: 3px;
width: 100%;
     padding-left: 0.5em;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;     /* Default "system" gray */
box-sizing: border-box;
}
}


table.fmbox-system {
/* Prototype table of contents */
background-color: #f8f9fa;
.prototype-toc {
    list-style-type: none;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.2;
}
}
 
.prototype-toc td {
table.fmbox-warning {
    font-family: monospace;
border: 1px solid #bb7070; /* Dark pink */
    padding-bottom: 3px;
background-color: #ffdbdb; /* Pink */
    border-bottom: 1px dotted #d8d8d8;
}
}
 
.prototype-toc-item-name {
table.fmbox-editnotice {
    width: 20em;
background-color: transparent;
    padding-left: 2em;
    padding-right: 1em;
}
}
 
.prototype-toc-item-info {
/* These mbox-small classes must be placed after all other
    padding-left: 1em;
  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 */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: 4px 0 4px 1em;
box-sizing: border-box;
width: 238px;
font-size: 88%;
line-height: 1.25em;
}
}
 
.prototype-property-type-usage {
html body.mediawiki .mbox-small-left {   /* For the "small=left" option. */
    columns: 22em 3;
/* @noflip */
    -moz-columns: 22em 3;
margin: 4px 1em 4px 0;
    -webkit-columns: 22em 3;
box-sizing: border-box;
    break-inside: avoid-column;
overflow: hidden;
    page-break-inside: avoid;
width: 238px;
    -webkit-column-break-inside: avoid;
border-collapse: collapse;
    font-family: monospace;
font-size: 88%;
    font-size: 14px;
line-height: 1.25em;
}
}


/* Remove underlines from certain links */
/* Prototype tree on Prototype definitions */
.nounderlines a,
/* The few prototypes that are roots of the prototype tree */
.IPA a:link,
.prototype-tree-root ul {
.IPA a:visited {
list-style-image: none;
text-decoration: none !important;
margin: 0;
}
}


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


/* But allow wrapping where desired: */
.prototype-tree-root li::before {
.wrap,
content: "⯀";
.wraplinks a {
margin-right: 5px;
white-space: normal;
pointer-events: none
}
}


/* Selectively hide headers in WikiProject banners */
/* The actual prototype tree, without roots. */
/* TemplateStyles */
.prototype-tree ul {
.wpb .wpb-header {
list-style-image: none;
display: none;
border-left: solid rgb(95, 95, 95) 1px;
padding-left: 9px;
margin-left: 6px;
}
}


.wpbs-inner .wpb .wpb-header {
.prototype-tree li {
display: table-row;
list-style-type: none;
}
}


.wpbs-inner .wpb-outside {
.prototype-tree li::before {
display: none;            /* hide things that should only display outside shells */
content: "⯀";
margin-right: 5px;
pointer-events: none
}
}


/* texhtml class for inline math (based on generic times-serif class) */
.prototype-tree .prototype-tree-parent::before {
span.texhtml {
content: "";
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 */
-webkit-font-feature-settings: "lnum", "tnum", "kern" 0;
font-feature-settings: "lnum", "tnum", "kern" 0;
font-variant-numeric: lining-nums tabular-nums;
font-kerning: none;
}
}


span.texhtml span.texhtml {
.prototype-tree .prototype-tree-parent-collapsed::before {
font-size: 100%;
content: "⮟";
}
}


@media screen {
/* Used on Rocket Rush page */
.nochecker .gallerybox .thumb img {
.factorio-icon-less-margin .factorio-icon {
background-image: none;
margin: 0.5px;
}
}
}
/* Put anything you mean to be a sitewide addition above the TemplateStyles
* comment above.
*/

Revision as of 21:41, 4 July 2022

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

/* --- General look and feel of the site --- */

/* latin-ext */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  src: local('Titillium Web'), local('TitilliumWeb-Regular'), url('/resources/dark/fonts/TitilliumWeb-Regular.ttf') format('truetype');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  src: local('Titillium Web'), local('TitilliumWeb-Regular'), url('/resources/dark/fonts/TitilliumWeb-Regular.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* latin-ext */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 600;
  src: local('Titillium WebSemiBold'), local('TitilliumWeb-SemiBold'), url('/resources/dark/fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 600;
  src: local('Titillium WebSemiBold'), local('TitilliumWeb-SemiBold'), url('/resources/dark/fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* latin-ext */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 700;
  src: local('Titillium WebBold'), local('TitilliumWeb-Bold'), url('/resources/dark/fonts/TitilliumWeb-Bold.ttf') format('truetype');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 700;
  src: local('Titillium WebBold'), local('TitilliumWeb-Bold'), url('/resources/dark/fonts/TitilliumWeb-Bold.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}

/* --- remove sidebar label and upper border of custom toolbox to make it look like that point is part of the tools section --- */

#p-tb {
 padding-bottom: 0 !important;
}

#p-custom-tb {
 border-top: none !important;
 padding-top: 0 !important;
}

#p-custom-tb-label {
 display: none;
}

/* Remove overdone top margin on slideshow galleries */

ul.gallery.mw-gallery-slideshow {
 margin: 1em 0;
}

/* Adjust wikitable padding */

table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {
    padding: 0.15em 0.45em
}

/* Hide the semantic wiki notices for now */

.smw-editpage-help {
  display: none;
}

/* --- End of General look and feel of the site --- */

/* --- boilerplate style class for templates that deal with the wiki organisation etc examples: template:archive, template:merge, template:delete, template:stub, template:disambiguation --- */

.factorio-boilerplate {
 margin:auto auto 10px;
 width:100%
}

.factorio-boilerplate table {
 margin:auto;
 text-align:left;
 border:2px solid #aaa;
 background-color: #e4f0f7;
 width:calc(100% - 23em)
}

/* --- Template:Achievement --- */

.achievement {
 border:none;
 background:none
}

/* --- Template:Key --- */

.keyboard-key {
 border: 1px solid #aaa;
 background-color: #f9f9f9;
 border-radius: 0.2em;
 box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.1);
 padding: 0.1em 0.3em;
 font-family: inherit;
 font-size: 0.85em;
}

/* --- Template:ContentCell --- */

.factorio-contentcell {
 background: #F9F9F9;
 border: 1px solid #AAAAAA;
 vertical-align: top;
 -moz-border-radius: 5px;
 -webkit-border-radius: 5px;
 padding: 7px;
}

.factorio-contentcell .titlebar {
 background: #E4F0F7;
 padding: 5px;
 margin: 3px;
 font-weight: bold;
 text-align: center;
 color: #033251;
 font-size: 120%;
}

/* --- TEMPLATE:Icon --- */

.factorio-icon {
 display:inline-block;
 margin:5px; 
 position:relative;
 padding:3px;
 width:32px;
 height:32px;
 border:1px solid #4B4543;
}

.factorio-icon-text {
 position:absolute;
 bottom: -3px;
 right: 2px;
 color:#fff;
 font-size:larger;
 font-weight: bold;
 text-shadow: 0px 1px 1px #000, 0px -1px 1px #000, 1px 0px 1px #000,-1px 0px 1px #000;
 pointer-events: none
}

/* --- TEMPLATE:NavboxIconLink --- */
.navbox-icon {
 position: relative;
}

.navbox-icon-text {
 position: absolute;
 bottom: -5px;
 right: 1px;
 color:#fff;
 font-size:10px;
 font-weight: bold;
 text-shadow: 0px 1px 1px #000, 0px -1px 1px #000, 1px 0px 1px #000,-1px 0px 1px #000;
 pointer-events: none
}

span.whiteLink a { color: white; }

/* --- Gerneral --- */
.hidden {
 display: none;
}

/* --- Languages template --- */
.languages-container {
 background: #EFEFEF;
 padding: 5px;
 border-color: #ACACAC;
 border-width: 1px;
 border-style: solid;
 border-bottom-width: medium;
}

.languages-container p {
 margin: 0;
}

.languages-message {
 font-weight: bold;
 font-size: smaller;
}

/* --- Spoilers --- */
.spoiler-container .button {
  background: #E4F0F7;
  border: 1px solid #b1d3e7;
  box-shadow: -1px 1px 5px #777777;
  display: inline-block;
  padding: 2px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 4px;
}

.spoiler-container .button:active {
  box-shadow: -1px 1px 1px #777777;
}

/* --- Infobox --- */
.infobox {
 width: 22em;
 float: right;
 border: 1px solid #aaa;
 border-radius: 10px 10px 0 0;
 margin-left: 5px;
}

.infobox table, .infobox tr {
 width: 100%;
}

.infobox table {
 border-spacing: 0;
 padding: 4px;
}

.infobox .infobox-image img{
 width: 100%;
 height: auto;
}

.infobox-header > div:first-child {
 text-align: center;
}

.infobox-header > div {
 padding: 5px 0;
}

.infobox-header-text {
 padding:0;
 text-align: left !important;
}

.infobox-header-text span{
 font-size: 1.2em;
 font-weight: bold;
 line-height: 1.2em;
}

.infobox-header-text p{
 margin: 0;
}

.infobox-edit-link {
 font-weight:normal;
 font-size:small;
 padding-right: 0.5em;
 text-align: right;
}

.infobox-edit-link a {
 color: inherit !important;
 font-style: italic;
 text-decoration: underline;
}

 /* switching the infobox-header colors per category using classes so that they can be easily modified by user css */

.infobox .combat {
 background: #FF0000;
 color: white;
}

.infobox .intermediates {
 background: #AAAAAA;
}

.infobox .production {
 background: #FFA600;
}

.infobox .logistics {
 background: #A1056F;
 color: white;
}

.infobox .technology {
 background: #228B22;
}

.infobox .default-infobox {
 background: lightblue;
}

 /* end of the style classes for the infobox header color switcher */

.infobox p {
 margin: 0;
}
.infobox .infobox-header th {
 white-space: nowrap;
}

.infobox .infobox-header > div {
 display: inline-block;
}

.infobox .infobox-header .header-icon {
 vertical-align: top;
}

.infobox .infobox-header {
 border-radius: 7px 7px 0 0;
 overflow: hidden;
}

.infobox tr.border-top td {
 border-top: 1px solid #aaa;
}

.infobox tr td:nth-child(2) {
 text-align: right;
}

.infobox .infobox-header th > div {
 display: inline-block;
}

.infobox-vrow-value {
 text-align: center;
}

.infobox .tabber .tabbernav {
 margin-top: 5px;
}

.infobox .tabber .tabbertab {
 border: 0px;
 padding: 0px;

}
.infobox .tabber table {
 padding-bottom: 0px;
}

/* --- Navbox --- */
.navbox {
 padding-top: 1.5em;
}

.navbox th {
 background: rgba(173, 216, 230, 1.0);
 border-radius: 10px;
}

.navbox, .navbox tr, .navbox table, .navbox p {
 width: 100%;
}

.navbox-header p {
 text-align: center;
 font-size: 125%;
}

.navbox p {
 margin: 0;
}

.navbox td > div, .navbox th > div {
 margin: 0px 10px;
}

.navbox .navbox-header {
 width: 100%;
}

.navbox .list-data {
 width: 100%;
 border-radius: 0 10px 10px 0;
 background: rgba(173, 216, 230, 0.4);
}

.navbox .group-data {
 white-space: nowrap;
 text-align: right;
 border-radius: 10px 0 0 10px;
 background: rgba(173, 216, 230, 0.7);
}

/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 9 (2016-08-10)
   @author [[User:Edokter]]
 */
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
    display: none;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
    content: ")";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
    counter-reset: listitem;
}
.hlist ol > li {
    counter-increment: listitem;
}
.hlist ol > li:before {
    content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) "\a0";
}

/* Template:Stub */

.stub {
 border: 5px solid #FF6666;
 border-radius: 10px;
 -moz-border-radius: 10px;
 -webkit-border-radius: 10px;
 -khtml-border-radius: 10px;
 -icab-border-radius: 10px;
 -o-border-radius: 10px;
 padding: 5px;
}

/* Template:Inventory */

.tab-header div {
 display: inline-block 
}

.tab-head {
 position: relative;
 cursor: pointer
}

.tab-head:after {
 content: attr(data-name);
 pointer-events: none;
 position: absolute;
 display: none;
 z-index: 1000;
 background-color: rgba(67, 67, 72, 0.8);
 padding: 8px 8px;
 min-width: 125px;
 font-family: 'Titillium Web',sans-serif;
 color: white
}

.tab-head img {
 border-top: 1px solid #c7c7c7;
 border-left: 1px solid #6e6e6e;
 border-right: 1px solid #6e6e6e;
 border-bottom: 1px solid #1c1c1c;
 background-color: #8e8e8e;
 margin: 5px 0px 5px 1px
}

.tab-head img:hover {
 background-color: #e39827
}

.tab-head-active img {
 background-color: #e39827;
 border-top: 1px solid #2A2A2A;
 border-left: 1px solid #2A2A2A;
 border-right: 1px solid #CCC;
 border-bottom: 1px solid #CCC
}

.tab .factorio-icon {
 margin: 0.5px;
 background-color: #313131;
 border-top: 1px solid #454545;
 border-left: 1px solid #212121;
 border-right: 1px solid #212121;
 border-bottom: 1px solid #191919
}

.tab .factorio-icon img {
 filter: drop-shadow(0px 0px 4px #000)
}

.tab .factorio-icon:hover {
 background-color: #e39827
}

.tab .factorio-icon:after {
 position: absolute;
 pointer-events: none;
 display: none;
 z-index: 1000;
 background-color: rgba(67, 67, 72, 0.8);
 padding: 8px 8px;
 min-width: 125px;
 font-family: 'Titillium Web',sans-serif;
 color: white
}

.tab {
 min-height: 370px
}

.factorio-contentcell .inventory {
 margin: auto;
 width: 500px
}

/* Custom list symbols */

.factorio-list ul {
 list-style-image: none;
}

.factorio-list ul li ul {
 list-style-type: square;
}

.factorio-list ul li ul li ul {
 list-style-type: circle;
}

.factorio-list ul li ul li ul li ul{
 list-style-type: disc;
}

/* Template:Documentation */

.factorio-doc {
 margin-top:1em;
 clear: both;
 border: 2px dotted #666666;
 padding: 0.6em;
 background-color: #f5f5f5;
}

.factorio-doc-heading {
 padding-bottom:3px;
 border-bottom:1px solid #aaa;
 margin-bottom:1ex;
}

/* Template:BlueprintString */

.bps-box {
 background-color: #105482;
 border: 3px solid;
 border-color: #c1c1c1 #616161 #616161 #c1c1c1;
 padding: 5px;
 width: 13em;
 border-radius: 3px;
 text-align: center;
 cursor: pointer;
 margin: 3px
}
.bps-box:active {
  background-color:#074774;
  border-color: #616161 #c1c1c1 #c1c1c1 #616161;
}
.bps-box img {
 pointer-events: none;
}

.gallerytext .bps-box {
 margin: auto
}

/* Text blinking in rail signal colors */

@keyframes rail-signal-blink {
  33% { color: #55FF55; }
  66% { color: #FFFF55; }
}
@-webkit-keyframes rail-signal-blink {
  33% { color: #55FF55; }
  66% { color: #FFFF55; }
}
.rail-signal-blink {
  animation: rail-signal-blink 3s step-start 0s infinite;
  -webkit-animation: rail-signal-blink 3s step-start 0s infinite;
  color: #ee7777;
}

/* Prototype parents list */

.prototype-parents {
    background-color: #eaecf0;
    margin-top: -1em !important;
    padding-bottom: 3px;
    padding-left: 0.5em;
}

/* Prototype table of contents */
.prototype-toc {
    list-style-type: none;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.2;
}
.prototype-toc td {
    font-family: monospace;
    padding-bottom: 3px;
    border-bottom: 1px dotted #d8d8d8;
}
.prototype-toc-item-name {
    width: 20em;
    padding-left: 2em;
    padding-right: 1em;
}
.prototype-toc-item-info {
    padding-left: 1em;
}
.prototype-property-type-usage {
    columns: 22em 3;
    -moz-columns: 22em 3;
    -webkit-columns: 22em 3;
    break-inside: avoid-column;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    font-family: monospace;
    font-size: 14px;
}

/* Prototype tree on Prototype definitions */
 /* The few prototypes that are roots of the prototype tree */
.prototype-tree-root ul {
 list-style-image: none;
 margin: 0;
}

.prototype-tree-root li {
 list-style-type: none;
}

.prototype-tree-root li::before {
 content: "⯀";
 margin-right: 5px;
 pointer-events: none
}

 /* The actual prototype tree, without roots. */
.prototype-tree ul {
 list-style-image: none;
 border-left: solid rgb(95, 95, 95) 1px;
 padding-left: 9px;
 margin-left: 6px;
}

.prototype-tree li {
 list-style-type: none;
}

.prototype-tree li::before {
 content: "⯀";
 margin-right: 5px;
 pointer-events: none
}

.prototype-tree .prototype-tree-parent::before {
 content: "⮝";
}

.prototype-tree .prototype-tree-parent-collapsed::before {
 content: "⮟";
}

/* Used on Rocket Rush page */
.factorio-icon-less-margin .factorio-icon {
 margin: 0.5px;
}