Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css

MediaWiki interface page
Revision as of 01:39, 26 June 2026 by Aurelian (talk | contribs) (Created page with "* Wizards & Warlords Citizen skin overrides. * * Common.css owns article and template styling. This file only supplies the * Citizen colour palette, Citizen shell adjustments, and mobile layout fixes * for shared components that need a different narrow-screen presentation.: /* ========================================================================== Citizen Theme And Shared Site Colours ==================================================================...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
/*
 * Wizards & Warlords Citizen skin overrides.
 *
 * Common.css owns article and template styling. This file only supplies the
 * Citizen colour palette, Citizen shell adjustments, and mobile layout fixes
 * for shared components that need a different narrow-screen presentation.
 */

/* ==========================================================================
   Citizen Theme And Shared Site Colours
   ========================================================================== */
:root {
	/* Wizards & Warlords content tokens used by Common.css. */
	--wiz-content-background: #222;
	--wiz-panel-solid-background: #0f0f0f;
	--wiz-page-background: #111;
	--wiz-content-border: #ff942d;
	--wiz-text: #d2d2d2;
	--wiz-link: #ff942d;
	--wiz-heading: #e7e1d4;

	/* Citizen's native palette. Keep the skin aligned with the existing site. */
	--color-primary__h: 28;
	--color-surface-0: #111;
	--color-surface-1: #171717;
	--color-surface-2: #1f1e1e;
	--color-surface-3: #252525;
	--color-surface-4: #2c2b2b;
	--color-progressive: #ff942d;
	--color-progressive--hover: #ffd37a;
	--color-progressive--active: #e57d1d;
	--color-base: #d2d2d2;
	--color-subtle: #b9b3a8;
	--color-emphasized: #e7e1d4;
	--color-base-oklch__l: 85%;
	--color-base-oklch__c: 0;
	--color-subtle-oklch__l: 72%;
	--color-subtle-oklch__c: 0;
	--color-emphasized-oklch__l: 93%;
	--color-emphasized-oklch__c: 0;
}

/* ==========================================================================
   Citizen Page Shell
   ========================================================================== */
.skin-citizen {
	background-color: var(--wiz-page-background);
	color: var(--wiz-text);
}

.skin-citizen .citizen-page-container {
	background-color: var(--wiz-page-background);
}

.skin-citizen .citizen-header {
	background-color: var(--color-surface-1);
	border-color: var(--wiz-content-border);
}

.skin-citizen .citizen-page-actions,
.skin-citizen .citizen-toc {
	--color-surface-1: #171717;
	--color-surface-2: #1f1e1e;
}

.skin-citizen .mw-body {
	color: var(--wiz-text);
}

.skin-citizen .mw-first-heading {
	border-bottom: 1px solid var(--wiz-content-border);
	color: var(--wiz-heading);
}

.skin-citizen .mw-parser-output a:not(.new),
.skin-citizen .mw-first-heading a {
	color: var(--wiz-link);
}

.skin-citizen .mw-parser-output a:not(.new):hover,
.skin-citizen .mw-first-heading a:hover {
	color: #ffd37a;
}

/* Keep the footer close to the article; this site has no advertising area. */
.skin-citizen .citizen-footer {
	margin-top: 2rem;
}

.skin-citizen .citizen-footer {
	color: var(--color-subtle);
}

.skin-citizen .citizen-footer a {
	color: var(--wiz-link);
}

.skin-citizen .citizen-footer a:hover {
	color: #ffd37a;
}

/* ==========================================================================
   Tables And Media
   ========================================================================== */
/* Citizen adds overflow wrappers around wide tables. Let them use the full
   article width so existing tables can scroll instead of shrinking the page. */
.skin-citizen .citizen-overflow-wrapper {
	width: 100%;
	max-width: 100%;
}

.skin-citizen .mw-parser-output img {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   Mobile Table Of Contents
   ========================================================================== */
@media screen and (max-width: 720px) {
	.skin-citizen .citizen-page-container {
		padding-right: max(var(--padding-page, 16px), env(safe-area-inset-right));
		padding-left: max(var(--padding-page, 16px), env(safe-area-inset-left));
	}

	.skin-citizen .toc-page #toc,
	.skin-citizen .toc-page .toc {
		float: none;
		width: 100%;
		min-width: 0;
		max-width: none;
		margin: 0 0 18px;
		padding: 14px 16px;
	}
}

/* ==========================================================================
   Mobile Shared Component Adjustments
   ========================================================================== */
@media screen and (max-width: 720px) {
	.skin-citizen .wizlords-mainpage-left,
	.skin-citizen .wizlords-mainpage-right {
		float: none;
		box-sizing: border-box;
		width: 100%;
		padding-right: 0;
		padding-left: 0;
	}

	.skin-citizen .wizlords-mainpage-clear {
		clear: both;
	}

	.skin-citizen .wizlords-imagetext,
	.skin-citizen .wizlords-wideimagetext {
		max-width: 100%;
	}

	.skin-citizen .wizlords-wideimagetext-grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px 16px;
	}

	.skin-citizen .wizlords-race-intro,
	.skin-citizen .wizlords-magic-intro {
		align-items: flex-start;
		gap: 16px;
	}

	.skin-citizen .wizlords-race-quote {
		padding-right: 20px;
	}

	.skin-citizen .wizlords-culture-grid {
		grid-template-columns: 1fr;
	}

	.skin-citizen .wizlords-culture-grid .wizlords-culture-card {
		grid-column: auto;
	}

	.skin-citizen .wizlords-culture-row-feature {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.skin-citizen .wizlords-culture-row-icon img {
		margin: 0 auto;
	}

	.skin-citizen .wizlords-culture-row-divider {
		width: 80%;
		height: 1px;
		margin: 0 auto;
	}

	.skin-citizen .wizlords-culture-appearance {
		width: 100%;
	}

	.skin-citizen .wizlords-culture-appearance img {
		width: 100%;
		height: auto;
		aspect-ratio: 300 / 138;
	}

	.skin-citizen .wizlords-shared-classes {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		padding-right: 18px;
		padding-left: 18px;
	}

	.skin-citizen .wizlords-shared-classes ul {
		grid-auto-flow: row;
		grid-template-rows: none;
		grid-template-columns: 1fr;
		width: auto;
	}

	.skin-citizen .wizlords-class-compare {
		flex-direction: column;
	}

	.skin-citizen .wizlords-class-category-table,
	.skin-citizen .wizlords-magic-table {
		min-width: 0;
		max-width: 100%;
	}

	.skin-citizen .wizlords-reputation-table.mw-collapsed {
		width: 100%;
		min-width: 0;
	}

	.skin-citizen .wizlords-page-image.right,
	.skin-citizen .wizlords-page-image.left {
		float: none;
		width: 100%;
		margin: 0 0 18px;
	}

	.skin-citizen .ww-navbox-row {
		display: block;
	}

	.skin-citizen .ww-navbox-group {
		width: 100%;
		padding: 5px 10px;
		border-right: 0;
		border-bottom: 1px solid var(--wiz-content-background);
		text-align: center;
	}

	.skin-citizen .ww-navbox-list {
		padding: 6px 10px;
		text-align: center;
	}
}