More actions
(Fixed left aligned image thumbnails for galleries) |
(CITIZEN: --background-color-dp-XX is depreciated; use --color-surface-X instead.) |
||
Line 4: | Line 4: | ||
/* Light theme specific color variables */ | /* Light theme specific color variables */ | ||
- | --color-surface-1: #f0f0f0; | ||
- | --color-surface-3: #e0e0e0; | ||
- | --color-surface-4: #e0e0e0; | ||
} | } | ||
.center { | .center { | ||
Line 21: | Line 21: | ||
} | } | ||
.news-box { | .news-box { | ||
border-color: var(- | border-color: var(--color-surface-4); | ||
background-color: var(- | background-color: var(--color-surface-1); | ||
} | } | ||
.tooltip { | .tooltip { | ||
Line 28: | Line 28: | ||
} | } | ||
.tooltiptext { | .tooltiptext { | ||
background-color: var(- | background-color: var(--color-surface-0); | ||
} | } | ||
/* Visible tooltip horizontal rules */ | /* Visible tooltip horizontal rules */ | ||
Line 46: | Line 46: | ||
/* Infoboxes */ | /* Infoboxes */ | ||
.outcell { | .outcell { | ||
border: 1px solid var(- | border: 1px solid var(--color-surface-1); /* #23272f; */ | ||
} | } | ||
.infobox { | .infobox { | ||
background: var(- | background: var(--color-surface-1); /* #23272f; */ | ||
} | } | ||
.infobox th { | .infobox th { | ||
background-color: var(- | background-color: var(--color-surface-3); | ||
} | } | ||
.infobox.vcard.outcell { /* Prevents character infoboxes from colliding with article text */ | .infobox.vcard.outcell { /* Prevents character infoboxes from colliding with article text */ | ||
Line 60: | Line 60: | ||
display: block; | display: block; | ||
margin: 0; | margin: 0; | ||
border: 1px solid var(- | border: 1px solid var(--color-surface-4); | ||
margin-bottom: 5px; | margin-bottom: 5px; | ||
} | } | ||
Line 74: | Line 74: | ||
/* Tables */ | /* Tables */ | ||
table.wikitable { | table.wikitable { | ||
background: var(- | background: var(--color-surface-1); /* #23272f; */ | ||
border: 1px solid var(--border-color-base); | border: 1px solid var(--border-color-base); | ||
} | } | ||
Line 89: | Line 89: | ||
/* Cargo Tables */ | /* Cargo Tables */ | ||
table.cargoTable { | table.cargoTable { | ||
background-color: var(- | background-color: var(--color-surface-2); | ||
border: 1px solid var(--border-color-base); | border: 1px solid var(--border-color-base); | ||
} | } | ||
Line 95: | Line 95: | ||
table.cargoTable.noMerge tr:nth-child(2n+1), | table.cargoTable.noMerge tr:nth-child(2n+1), | ||
table.cargoTable.mergeSimilarCells td.odd { | table.cargoTable.mergeSimilarCells td.odd { | ||
background-color: var(- | background-color: var(--color-surface-3); | ||
} | } | ||
table.cargoTable.noMerge tr:nth-child(2n), | table.cargoTable.noMerge tr:nth-child(2n), | ||
table.cargoTable.mergeSimilarCells td.even { | table.cargoTable.mergeSimilarCells td.even { | ||
background-color: var(- | background-color: var(--color-surface-4); | ||
} | } | ||
table.cargoTable td { | table.cargoTable td { | ||
Line 107: | Line 107: | ||
/* Grids */ | /* Grids */ | ||
.wikigrid { /* match .wikitable styling */ | .wikigrid { /* match .wikitable styling */ | ||
background-color: var(- | background-color: var(--color-surface-1); | ||
} | } | ||
.wikigrid > div { | .wikigrid > div { | ||
Line 126: | Line 126: | ||
/* BBDW character art containers */ | /* BBDW character art containers */ | ||
#tabs-bbdw-char { | #tabs-bbdw-char { | ||
background-color: var(- | background-color: var(--color-surface-1); | ||
border-left: 1px solid var(--border-color-base); | border-left: 1px solid var(--border-color-base); | ||
border-right: 1px solid var(--border-color-base); | border-right: 1px solid var(--border-color-base); | ||
Line 133: | Line 133: | ||
table.imbox { | table.imbox { | ||
border: 3px solid var(--border-color-base); | border: 3px solid var(--border-color-base); | ||
background: var(- | background: var(--color-surface-1); | ||
} | } | ||
table.imbox-notice { | table.imbox-notice { | ||
Line 140: | Line 140: | ||
/* Forms */ | /* Forms */ | ||
.select2-container--default .select2-selection--multiple .select2-selection__choice { | .select2-container--default .select2-selection--multiple .select2-selection__choice { | ||
background-color: var(- | background-color: var(--color-surface-4); | ||
border: 1px solid var(--border-color-base); | border: 1px solid var(--border-color-base); | ||
} | } | ||
#pfForm .createboxInput, #pfForm .mandatoryField, #pfForm textarea { | #pfForm .createboxInput, #pfForm .mandatoryField, #pfForm textarea { | ||
max-width: 95%; | max-width: 95%; | ||
background-color: var(- | background-color: var(--color-surface-0); | ||
border: 1px solid var(- | border: 1px solid var(--color-surface-0); | ||
} | } | ||
.select2-results__option, .select2-results__options, .select2-dropdown { | .select2-results__option, .select2-results__options, .select2-dropdown { | ||
background-color: var(- | background-color: var(--color-surface-4); | ||
} | } | ||
/* Navbox */ | /* Navbox */ | ||
table.navbox { | table.navbox { | ||
background: var(- | background: var(--color-surface-1); /* #23272f; */ | ||
} | } | ||
.navbox-title, table.navbox th { | .navbox-title, table.navbox th { | ||
background: var(- | background: var(--color-surface-4); | ||
} | } | ||
.subpagelist { | .subpagelist { | ||
background: var(- | background: var(--color-surface-3); | ||
} | } | ||
.subpagelist a { | .subpagelist a { | ||
Line 190: | Line 190: | ||
} | } | ||
.tabs-container { | .tabs-container { | ||
background-color: var(- | background-color: var(--color-surface-1); | ||
border: 1px solid var(- | border: 1px solid var(--color-surface-4); | ||
} | } | ||
div.tabdiv > ul > li { | div.tabdiv > ul > li { | ||
Line 209: | Line 209: | ||
} | } | ||
li.gallerybox div.thumb { | li.gallerybox div.thumb { | ||
border-color: var(- | border-color: var(--color-surface-4); | ||
background-color: var(--background-color-framed); | background-color: var(--background-color-framed); | ||
} | } | ||
#content .gallerybox div.thumb { | #content .gallerybox div.thumb { | ||
border-color: var(- | border-color: var(--color-surface-4); | ||
background-color: var(--background-color-framed); | background-color: var(--background-color-framed); | ||
} | } | ||
Line 230: | Line 230: | ||
/* Popups */ | /* Popups */ | ||
.mwe-popups .mwe-popups-container { | .mwe-popups .mwe-popups-container { | ||
background-color: var(- | background-color: var(--color-surface-4); | ||
color: var(--color-base); | color: var(--color-base); | ||
} | } | ||
Line 236: | Line 236: | ||
/* Popup pointers */ | /* Popup pointers */ | ||
.mwe-popups.mwe-popups-no-image-pointer:after { | .mwe-popups.mwe-popups-no-image-pointer:after { | ||
border-bottom:11px solid var(- | border-bottom:11px solid var(--color-surface-4); | ||
} | } | ||
.mwe-popups.mwe-popups-image-pointer:after { | .mwe-popups.mwe-popups-image-pointer:after { | ||
border-bottom:12px solid var(- | border-bottom:12px solid var(--color-surface-4); | ||
} | } | ||
.mwe-popups.mwe-popups-image-pointer.flipped-x:after { | .mwe-popups.mwe-popups-image-pointer.flipped-x:after { | ||
border-bottom:12px solid var(- | border-bottom:12px solid var(--color-surface-4); | ||
} | } | ||
.mwe-popups.flipped-x-y:after { | .mwe-popups.flipped-x-y:after { | ||
border-top:12px solid var(- | border-top:12px solid var(--color-surface-4); | ||
} | } | ||
.mwe-popups.flipped-x-y.mwe-popups-is-tall:after { | .mwe-popups.flipped-x-y.mwe-popups-is-tall:after { | ||
border-top:12px solid var(- | border-top:12px solid var(--color-surface-4); | ||
} | } | ||
.mwe-popups.flipped-y:after { | .mwe-popups.flipped-y:after { | ||
border-top:11px solid var(- | border-top:11px solid var(--color-surface-4); | ||
} | } | ||
Line 260: | Line 260: | ||
td.mw-wikiforum-thread-main, | td.mw-wikiforum-thread-main, | ||
td.mw-wikiforum-thread-main { | td.mw-wikiforum-thread-main { | ||
background: var(- | background: var(--color-surface-1); | ||
} | } | ||
tr.mw-wikiforum-title, | tr.mw-wikiforum-title, | ||
th.mw-wikiforum-thread-top, | th.mw-wikiforum-thread-top, | ||
td.mw-wikiforum-thread-sub { | td.mw-wikiforum-thread-sub { | ||
background: var(- | background: var(--color-surface-4); | ||
} | } | ||
table.mw-wikiforum-frame, | table.mw-wikiforum-frame, | ||
Line 289: | Line 289: | ||
#mw-wikiforum-searchbox-border { | #mw-wikiforum-searchbox-border { | ||
border-color: var(--border-color-base); | border-color: var(--border-color-base); | ||
background: var(- | background: var(--color-surface-3); | ||
} | } | ||
table.mw-wikiforum-frame, | table.mw-wikiforum-frame, |
Revision as of 13:28, 26 September 2021
/* All CSS here will be loaded for users of the Citizen skin */
:root {
--width-layout: 1280px; /* Slightly wider content */
/* Light theme specific color variables */
--color-surface-1: #f0f0f0;
--color-surface-3: #e0e0e0;
--color-surface-4: #e0e0e0;
}
.center {
width: 100%;
text-align: center;
}
/* Prevent Imbox images from being crushed */
a.image {
max-width: max-content;
}
/* Center aligned image thumbnails for galleries */
.citizen-body a.image, .mw-body-content a.image {
display: inline;
}
.news-box {
border-color: var(--color-surface-4);
background-color: var(--color-surface-1);
}
.tooltip {
border-bottom: 2px ridge var(--color-primary);
}
.tooltiptext {
background-color: var(--color-surface-0);
}
/* Visible tooltip horizontal rules */
.tooltiptext hr {
display: block;
border: none;
}
.tooltiptext hr::after {
background: var(--border-color-base--darker);
}
.extiw {
padding-right: 13px;
background-image: url(/skins/Citizen/resources/skins.citizen.styles/images/external-link-ltr-icon.svg);
background-position: center right;
background-repeat: no-repeat;
}
/* Infoboxes */
.outcell {
border: 1px solid var(--color-surface-1); /* #23272f; */
}
.infobox {
background: var(--color-surface-1); /* #23272f; */
}
.infobox th {
background-color: var(--color-surface-3);
}
.infobox.vcard.outcell { /* Prevents character infoboxes from colliding with article text */
margin: 0.5em 0 0.5em 1em;
}
.infobox hr { /* Horizontal rules for infoboxes to separate multiple lines */
display: block;
margin: 0;
border: 1px solid var(--color-surface-4);
margin-bottom: 5px;
}
.fullImageLink {
margin: 0 0px;
}
@media screen and (max-width:500px) { /* Expands to fill screen for mobile */
.infobox.vcard.outcell {
width: 100%;
display: table;
}
}
/* Tables */
table.wikitable {
background: var(--color-surface-1); /* #23272f; */
border: 1px solid var(--border-color-base);
}
table.wikitable tr th {
padding: 5px 10px 5px 10px;
text-align: center;
vertical-align: middle;
}
table.wikitable tr td {
padding: 5px 10px 5px 10px;
text-align: center;
vertical-align: middle;
}
/* Cargo Tables */
table.cargoTable {
background-color: var(--color-surface-2);
border: 1px solid var(--border-color-base);
}
table.cargoTable.noMerge tr:nth-child(2n+1),
table.cargoTable.mergeSimilarCells td.odd {
background-color: var(--color-surface-3);
}
table.cargoTable.noMerge tr:nth-child(2n),
table.cargoTable.mergeSimilarCells td.even {
background-color: var(--color-surface-4);
}
table.cargoTable td {
border: 1px solid var(--border-color-base);
}
/* Grids */
.wikigrid { /* match .wikitable styling */
background-color: var(--color-surface-1);
}
.wikigrid > div {
border-bottom-color: var(--border-color-base);
}
.wikigrid > div:hover {
background-color: var(--background-color-quiet--active);
}
.wikigrid > .wg-hdr {
background-color: transparent;
color: var(--color-base--subtle);
}
/* Fix for displaying gameplay elements for BBDW characters - Too general? */
.mw-body-content a.image {
display: inline;
}
/* BBDW character art containers */
#tabs-bbdw-char {
background-color: var(--color-surface-1);
border-left: 1px solid var(--border-color-base);
border-right: 1px solid var(--border-color-base);
}
/* Image message boxes */
table.imbox {
border: 3px solid var(--border-color-base);
background: var(--color-surface-1);
}
table.imbox-notice {
border: 3px solid var(--border-color-base);
}
/* Forms */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
background-color: var(--color-surface-4);
border: 1px solid var(--border-color-base);
}
#pfForm .createboxInput, #pfForm .mandatoryField, #pfForm textarea {
max-width: 95%;
background-color: var(--color-surface-0);
border: 1px solid var(--color-surface-0);
}
.select2-results__option, .select2-results__options, .select2-dropdown {
background-color: var(--color-surface-4);
}
/* Navbox */
table.navbox {
background: var(--color-surface-1); /* #23272f; */
}
.navbox-title, table.navbox th {
background: var(--color-surface-4);
}
.subpagelist {
background: var(--color-surface-3);
}
.subpagelist a {
color: var(--color-primary--hover);
}
/* Infobox Tabs */
.tabs-label {
background-color: var(--color-primary--active);
border-color: var(--color-primary--active);
color: rgba(255,255,255,0.87); /* --color-base--emphasized but not! */
}
.tabs-label:active, .tabs-label:focus {
background-color: var(--color-primary);
border-color: var(--color-primary);
}
.tabs-label:hover {
background-color: var(--color-primary--hover);
border-color: var(--color-primary--hover);
}
.tabs-plain > .tabs-label {
border-color: var(--color-primary--active);
}
.tabs-tabbox > .tabs-input:checked + .tabs-label {
background-color: var(--color-primary);
border-color: var(--color-primary);
}
.tabs-input-0:checked + .tabs-input-1 + .tabs-label {
background-color: var(--color-primary);
border-color: var(--color-primary);
}
.tabs-container {
background-color: var(--color-surface-1);
border: 1px solid var(--color-surface-4);
}
div.tabdiv > ul > li {
background-color: var(--color-primary--active);
border-color: var(--color-primary--active);
}
div.tabdiv > ul > li:hover {
background-color: var(--color-primary--hover);
border-color: var(--color-primary--hover);
}
div.tabdiv > ul > li.active {
background-color: var(--color-primary);
border-color: var(--color-primary);
}
div.tabdiv > ul > li a {
color: rgba(255,255,255,0.87);
}
li.gallerybox div.thumb {
border-color: var(--color-surface-4);
background-color: var(--background-color-framed);
}
#content .gallerybox div.thumb {
border-color: var(--color-surface-4);
background-color: var(--background-color-framed);
}
/* Code Editor */
.codeEditor-status {
clear: both;
width: 100%;
background-color: var(--background-color-framed);
border-top: 1px solid var(--border-color-base);
display: table;
}
.codeEditor-status-message {
border-color: var(--border-color-base);
}
/* Popups */
.mwe-popups .mwe-popups-container {
background-color: var(--color-surface-4);
color: var(--color-base);
}
/* Popup pointers */
.mwe-popups.mwe-popups-no-image-pointer:after {
border-bottom:11px solid var(--color-surface-4);
}
.mwe-popups.mwe-popups-image-pointer:after {
border-bottom:12px solid var(--color-surface-4);
}
.mwe-popups.mwe-popups-image-pointer.flipped-x:after {
border-bottom:12px solid var(--color-surface-4);
}
.mwe-popups.flipped-x-y:after {
border-top:12px solid var(--color-surface-4);
}
.mwe-popups.flipped-x-y.mwe-popups-is-tall:after {
border-top:12px solid var(--color-surface-4);
}
.mwe-popups.flipped-y:after {
border-top:11px solid var(--color-surface-4);
}
/* Extension:WikiForum */
table.mw-wikiforum-frame,
tr.mw-wikiforum-normal,
tr.mw-wikiforum-sticky,
td.mw-wikiforum-thread-main,
td.mw-wikiforum-thread-main {
background: var(--color-surface-1);
}
tr.mw-wikiforum-title,
th.mw-wikiforum-thread-top,
td.mw-wikiforum-thread-sub {
background: var(--color-surface-4);
}
table.mw-wikiforum-frame,
td.mw-wikiforum-innerframe,
th.mw-wikiforum-title,
td.mw-wikiforum-title,
th.mw-wikiforum-admin,
td.mw-wikiforum-admin,
th.mw-wikiforum-value,
td.mw-wikiforum-value,
th.mw-wikiforum-lastpost,
td.mw-wikiforum-lastpost,
th.mw-wikiforum-thread-top,
td.mw-wikiforum-thread-main,
td.mw-wikiforum-thread-sub {
border-color: var(--border-color-base);
}
td.mw-wikiforum-thread-main,
td.mw-wikiforum-thread-sub {
word-wrap: normal;
word-break: normal;
}
#mw-wikiforum-searchbox-border {
border-color: var(--border-color-base);
background: var(--color-surface-3);
}
table.mw-wikiforum-frame,
.mw-wikiforum-frame table {
border-spacing: 0;
margin-top: 0;
}