MediaWiki:Citizen.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Song of Man wiki: Woodcut look (chosen 2026-11-05, design-manifest.md "Landing page: Woodcut"): heavy ink
outlines, hard offset shadows, no rounded corners, light theme only. Citizen's night theme keeps its own colours.
Fonts: Georgia (bold) until the wiki gets its own font files. Not seen in the real skin until deployed; previewed
2026-11-05 by overlaying this file on the live pages. */
.som-infobox { float: right; clear: right; width: 300px; max-width: 100%; margin: 0 8px 16px 24px; background: #F8EFD9; border: 3px solid #14110E; box-shadow: 6px 6px 0 #14110E; color: #14110E; }
.som-infobox__title { padding: 12px 16px; background: #14110E; color: #F1E6CF; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 1.4em; text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
.som-infobox__image { padding: 12px; text-align: center; }
.som-infobox__image img { max-width: 100%; height: auto; border: 3px solid #14110E; }
.som-infobox__bar { padding: 6px 16px; background: #14110E; color: #F1E6CF; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.som-infobox__rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding: 12px 16px; overflow-wrap: anywhere; }
.som-infobox__rows > div:nth-child(odd) { font-weight: 700; }
.som-empty { color: #5D5242; font-style: italic; }
.som-spoiler { clear: both; margin: 0 8px 16px 0; background: #F8EFD9; border: 3px solid #14110E; border-left: 10px solid #7D1F1A; box-shadow: 6px 6px 0 #14110E; color: #14110E; overflow-wrap: anywhere; }
.som-spoiler__bar { padding: 6px 16px; background: #14110E; color: #F1E6CF; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.som-spoiler__body { padding: 12px 16px; }
@media (max-width: 600px) { .som-infobox { float: none; width: auto; margin: 0 8px 16px 0; } }
/* ---- Page look: Woodcut, light theme only ----
Scoped to Citizen's light theme (day, or "os" while the visitor's system is light) so Citizen's own night theme
stays readable if a visitor picks it. Variable names are the ones Citizen 3.24.0 uses (read 2026-10-19): the
stable colour hue is --color-progressive-oklch__h; --color-primary-oklch__h only exists in its preview colour
system, so both are set. Contrast (WCAG formula, 2026-11-05): link #7D1F1A on #F1E6CF 8.14:1, text #14110E on
#F1E6CF 15.19:1, button #14110E with #F1E6CF text 15.19:1, hover #7D1F1A with #F1E6CF text 8.14:1. */
.skin-theme-clientpref-day {
--color-primary-oklch__h: 25;
--color-progressive-oklch__h: 25;
--color-surface-0: #F1E6CF;
--color-surface-1: #F8EFD9;
--color-surface-2: #E8DBBD;
--color-base: #14110E;
--color-progressive: #7D1F1A;
--color-progressive--hover: #14110E;
--color-progressive--active: #14110E;
--color-progressive-hsl__h: 5;
--background-color-progressive: #14110E;
--background-color-progressive--hover: #7D1F1A;
--background-color-progressive--active: #5E1612;
--border-color-progressive: #14110E;
--border-color-base: #14110E;
--border-radius-base: 0;
}
@media (prefers-color-scheme: light) {
.skin-theme-clientpref-os {
--color-primary-oklch__h: 25;
--color-progressive-oklch__h: 25;
--color-surface-0: #F1E6CF;
--color-surface-1: #F8EFD9;
--color-surface-2: #E8DBBD;
--color-base: #14110E;
--color-progressive: #7D1F1A;
--color-progressive--hover: #14110E;
--color-progressive--active: #14110E;
--color-progressive-hsl__h: 5;
--background-color-progressive: #14110E;
--background-color-progressive--hover: #7D1F1A;
--background-color-progressive--active: #5E1612;
--border-color-progressive: #14110E;
--border-color-base: #14110E;
--border-radius-base: 0;
}
}
.mw-body-content h1,
.mw-body-content h2,
.mw-body-content h3,
.mw-first-heading {
font-family: Georgia, 'Times New Roman', serif;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
overflow-wrap: anywhere;
}
.mw-first-heading { font-size: clamp(1.2rem, 5.2vw, 2.25rem); }
/* Page title gets the woodcut hatch band underneath (same stripes as the landing page's base look). */
.mw-first-heading::after {
content: "";
display: block;
height: 14px;
margin-top: 8px;
background: repeating-linear-gradient(135deg, #14110E 0 3px, transparent 3px 9px);
}
.mw-body-content h2 { border-bottom: 4px solid #14110E; }
/* Footer: ink band with cream text, as on the landing page. Citizen's footer text reads the colour variables, so they are
redefined inside the footer only (light theme; the night theme keeps its own footer). The line colour must stay
visible on ink. */
.skin-theme-clientpref-day .citizen-footer {
--color-base: #F1E6CF;
--color-subtle: #F1E6CF;
--color-emphasized: #F1E6CF;
--color-progressive: #F1E6CF;
--color-progressive--hover: #F1E6CF;
--border-color-base: #6B6054;
background: #14110E;
color: #F1E6CF;
}
@media (prefers-color-scheme: light) {
.skin-theme-clientpref-os .citizen-footer {
--color-base: #F1E6CF;
--color-subtle: #F1E6CF;
--color-emphasized: #F1E6CF;
--color-progressive: #F1E6CF;
--color-progressive--hover: #F1E6CF;
--border-color-base: #6B6054;
background: #14110E;
color: #F1E6CF;
}
}
/* Links in article text keep an underline: the link colour is only 1.86:1 against the body text
colour, so colour alone would not tell a link from plain text (WCAG 1.4.1 asks for 3:1 or
another cue). The footer licence line (.page-info__text) sits outside the article, so it is listed
too: axe flagged its link on every page of the test wiki, 2026-10-30. */
.mw-body-content a:not(.cdx-button):not(.mw-selflink),
.page-info__text a {
text-decoration: underline;
}
/* The info box keeps its light cream background in the night theme too, where links would take the
light night link colour and nearly vanish. */
.mw-body-content .som-infobox a:not(.cdx-button):not(.new),
.mw-body-content .som-spoiler a:not(.cdx-button):not(.new) {
color: #7D1F1A;
}
.mw-body-content .som-infobox a:not(.cdx-button):not(.new):hover,
.mw-body-content .som-spoiler a:not(.cdx-button):not(.new):hover {
color: #14110E;
}
/* Red links (pages not written yet) inside the info box: Citizen's night-theme red is about 3.3:1 on the light box,
so use a darker red there (#A3262A is 6.73:1 on #FBF5E6, 6.39:1 on the new #F8EFD9). */
.mw-body-content .som-infobox a.new,
.mw-body-content .som-spoiler a.new {
color: #A3262A;
}
/* Night theme: Citizen's own blue button background (#467be3) gives white text only 4.04:1; axe flagged the
login, search and "Go" buttons on the test wiki, 2026-10-30. #3F6FD0 gives 4.78:1. The `html` in front
raises the weight: without it the login page kept Citizen's colour (its own rule came later). */
html.skin-theme-clientpref-night {
--background-color-progressive: #3F6FD0;
--background-color-progressive--hover: #3866C8;
--background-color-progressive--active: #3562C2;
}
/* Same for a visitor who chose "auto" while the system is dark (Citizen applies night colours through the media
query there; axe flagged the same buttons in that mode, 2026-10-30). */
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os {
--background-color-progressive: #3F6FD0;
--background-color-progressive--hover: #3866C8;
--background-color-progressive--active: #3562C2;
}
}