MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* === Citizen dark-mode-aware overrides === */ | |||
/* Wide content layout */ | |||
:root { | |||
--width-layout: 1440px; | |||
} | |||
/* ---- Infobox ---- */ | |||
.infobox { | |||
background: var(--color-surface-2) !important; | |||
border: 1px solid var(--color-surface-3) !important; | |||
color: var(--color-base) !important; | |||
} | |||
.infobox > caption { | |||
background: var(--color-primary) !important; | |||
color: var(--color-primary--text, #fff) !important; | |||
} | |||
.infobox th { | |||
color: var(--color-base) !important; | |||
} | |||
.infobox th:only-child { | |||
background: var(--color-primary--hover, rgba(24, 61, 98, 0.6)) !important; | |||
color: var(--color-base--subtle, #eee) !important; | |||
} | |||
.infobox td { | |||
color: var(--color-base) !important; | |||
} | |||
.infobox tr:nth-of-type(2n) { | |||
background: var(--color-surface-3) !important; | |||
} | |||
.infobox a { | |||
color: var(--color-link) !important; | |||
} | |||
/* ---- Description box (Template:Description has inline background-color:white) ---- */ | |||
.mw-parser-output > div[style*="background-color:white"], | |||
.mw-parser-output > div[style*="background-color: white"] { | |||
background-color: var(--color-surface-2) !important; | |||
border: 1px solid var(--color-surface-3) !important; | |||
color: var(--color-base) !important; | |||
} | |||
/* ---- Stationeers icons ---- */ | |||
.stationeers-icon { | |||
background-color: var(--color-surface-3) !important; | |||
border-color: var(--color-surface-4, var(--color-surface-3)) !important; | |||
} | |||
/* ---- Subheader bars (used on some pages) ---- */ | |||
.subheader { | |||
background: var(--color-primary) !important; | |||
color: var(--color-primary--text, #fff) !important; | |||
} | |||
/* ---- Wikitables ---- */ | |||
table.wikitable { | |||
background: var(--color-surface-1) !important; | |||
border-color: var(--color-surface-3) !important; | |||
color: var(--color-base) !important; | |||
} | |||
table.wikitable > tr > th, | |||
table.wikitable > * > tr > th { | |||
background: var(--color-surface-2) !important; | |||
color: var(--color-base) !important; | |||
border-color: var(--color-surface-3) !important; | |||
} | |||
table.wikitable > tr > td, | |||
table.wikitable > * > tr > td { | |||
border-color: var(--color-surface-3) !important; | |||
} | |||
/* ---- Navboxes ---- */ | |||
.navbox { | |||
background: var(--color-surface-1) !important; | |||
border-color: var(--color-surface-3) !important; | |||
color: var(--color-base) !important; | |||
} | |||
.navbox-title { | |||
background: var(--color-primary) !important; | |||
color: var(--color-primary--text, #fff) !important; | |||
} | |||
.navbox-group { | |||
background: var(--color-surface-2) !important; | |||
color: var(--color-base) !important; | |||
} | |||
.navbox-subgroup { | |||
background: var(--color-surface-1) !important; | |||
} | |||
/* ---- Collapsible sections ---- */ | |||
.mw-collapsible { | |||
background: var(--color-surface-1) !important; | |||
border-color: var(--color-surface-3) !important; | |||
} | |||
/* ---- Translation header ---- */ | |||
.mw-pt-languages { | |||
background: var(--color-surface-1) !important; | |||
border-color: var(--color-surface-3) !important; | |||
color: var(--color-base) !important; | |||
} | |||
Revision as of 15:45, 8 March 2026
/* === Citizen dark-mode-aware overrides === */
/* Wide content layout */
:root {
--width-layout: 1440px;
}
/* ---- Infobox ---- */
.infobox {
background: var(--color-surface-2) !important;
border: 1px solid var(--color-surface-3) !important;
color: var(--color-base) !important;
}
.infobox > caption {
background: var(--color-primary) !important;
color: var(--color-primary--text, #fff) !important;
}
.infobox th {
color: var(--color-base) !important;
}
.infobox th:only-child {
background: var(--color-primary--hover, rgba(24, 61, 98, 0.6)) !important;
color: var(--color-base--subtle, #eee) !important;
}
.infobox td {
color: var(--color-base) !important;
}
.infobox tr:nth-of-type(2n) {
background: var(--color-surface-3) !important;
}
.infobox a {
color: var(--color-link) !important;
}
/* ---- Description box (Template:Description has inline background-color:white) ---- */
.mw-parser-output > div[style*="background-color:white"],
.mw-parser-output > div[style*="background-color: white"] {
background-color: var(--color-surface-2) !important;
border: 1px solid var(--color-surface-3) !important;
color: var(--color-base) !important;
}
/* ---- Stationeers icons ---- */
.stationeers-icon {
background-color: var(--color-surface-3) !important;
border-color: var(--color-surface-4, var(--color-surface-3)) !important;
}
/* ---- Subheader bars (used on some pages) ---- */
.subheader {
background: var(--color-primary) !important;
color: var(--color-primary--text, #fff) !important;
}
/* ---- Wikitables ---- */
table.wikitable {
background: var(--color-surface-1) !important;
border-color: var(--color-surface-3) !important;
color: var(--color-base) !important;
}
table.wikitable > tr > th,
table.wikitable > * > tr > th {
background: var(--color-surface-2) !important;
color: var(--color-base) !important;
border-color: var(--color-surface-3) !important;
}
table.wikitable > tr > td,
table.wikitable > * > tr > td {
border-color: var(--color-surface-3) !important;
}
/* ---- Navboxes ---- */
.navbox {
background: var(--color-surface-1) !important;
border-color: var(--color-surface-3) !important;
color: var(--color-base) !important;
}
.navbox-title {
background: var(--color-primary) !important;
color: var(--color-primary--text, #fff) !important;
}
.navbox-group {
background: var(--color-surface-2) !important;
color: var(--color-base) !important;
}
.navbox-subgroup {
background: var(--color-surface-1) !important;
}
/* ---- Collapsible sections ---- */
.mw-collapsible {
background: var(--color-surface-1) !important;
border-color: var(--color-surface-3) !important;
}
/* ---- Translation header ---- */
.mw-pt-languages {
background: var(--color-surface-1) !important;
border-color: var(--color-surface-3) !important;
color: var(--color-base) !important;
}