Jump to content

MediaWiki:Common.css

From Project Arise Wiki
Revision as of 17:44, 16 November 2026 by Legatum (talk | contribs) (Dark radio buttons, no badges)

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.
/* Project: Arise wiki: the website's look (dark "Ember" palette, JetBrains Mono, one signal colour #e8571c).
   The palette replaces Vector's night theme; the light theme stays stock Vector. */

@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/arise/fonts/JetBrainsMono-400.14f14c39.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(/arise/fonts/JetBrainsMono-500.df292ef4.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 800; font-display: swap; src: url(/arise/fonts/JetBrainsMono-800.52c99762.woff2) format('woff2'); }

html.skin-theme-clientpref-night {
	color-scheme: dark;
	--background-color-base: #0b0908;
	--background-color-neutral-subtle: #110d0b;
	--background-color-neutral: #1c1714;
	--background-color-interactive-subtle: #14100e;
	--background-color-interactive: #1e1815;
	--background-color-disabled: #261f1a;
	--background-color-disabled-subtle: #14100e;
	--background-color-progressive: #e8571c;
	--background-color-progressive--hover: #f06a30;
	--background-color-progressive--active: #c9480f;
	--background-color-progressive--focus: #e8571c;
	--background-color-progressive-subtle: #26140b;
	--background-color-notice-subtle: #14100e;
	--background-color-warning-subtle: #241b0a;
	--background-color-error-subtle: #2a110d;
	--background-color-destructive-subtle: #2a110d;
	--background-color-success-subtle: #0f1d11;
	--background-color-inverted: #e6dccb;
	--background-color-backdrop-light: rgba( 11, 9, 8, 0.7 );
	--background-color-button-quiet--hover: rgba( 230, 220, 203, 0.07 );
	--background-color-button-quiet--active: rgba( 230, 220, 203, 0.14 );
	--background-color-content-added: #12263a;
	--background-color-content-removed: #3a2a0e;
	--border-color-base: #3a302a;
	--border-color-subtle: #261f1a;
	--border-color-muted: #1e1815;
	--border-color-divider: #261f1a;
	--border-color-interactive: #3a302a;
	--border-color-input--hover: #7d7268;
	--border-color-disabled: #261f1a;
	--border-color-progressive: #e8571c;
	--border-color-progressive--hover: #f06a30;
	--border-color-progressive--active: #c9480f;
	--border-color-progressive--focus: #e8571c;
	--border-color-inverted: #0b0908;
	--color-base: #e6dccb;
	--color-base--hover: #f5ecdc;
	--color-emphasized: #f5ecdc;
	--color-subtle: #9a8e80;
	--color-base--subtle: #9a8e80;
	--color-placeholder: #6a6058;
	--color-disabled: #5a5048;
	--color-inverted: #0b0908;
	--color-progressive: #e6dccb;
	--color-progressive--hover: #e8571c;
	--color-progressive--active: #e8571c;
	--color-progressive--focus: #e8571c;
	--color-visited: #e6dccb;
	--color-link-red: #c9715f;
	--color-link-red--hover: #e8571c;
	--color-link-red--visited: #c9715f;
	--color-destructive: #e0604c;
	--color-error: #e0604c;
	--color-warning: #d4a72c;
	--color-success: #5cb85c;
	--color-notice: #e6dccb;
	--box-shadow-color-progressive--focus: #e8571c;
	--outline-color-progressive--focus: #e8571c;
}
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os {
	color-scheme: dark;
	--background-color-base: #0b0908;
	--background-color-neutral-subtle: #110d0b;
	--background-color-neutral: #1c1714;
	--background-color-interactive-subtle: #14100e;
	--background-color-interactive: #1e1815;
	--background-color-disabled: #261f1a;
	--background-color-disabled-subtle: #14100e;
	--background-color-progressive: #e8571c;
	--background-color-progressive--hover: #f06a30;
	--background-color-progressive--active: #c9480f;
	--background-color-progressive--focus: #e8571c;
	--background-color-progressive-subtle: #26140b;
	--background-color-notice-subtle: #14100e;
	--background-color-warning-subtle: #241b0a;
	--background-color-error-subtle: #2a110d;
	--background-color-destructive-subtle: #2a110d;
	--background-color-success-subtle: #0f1d11;
	--background-color-inverted: #e6dccb;
	--background-color-backdrop-light: rgba( 11, 9, 8, 0.7 );
	--background-color-button-quiet--hover: rgba( 230, 220, 203, 0.07 );
	--background-color-button-quiet--active: rgba( 230, 220, 203, 0.14 );
	--background-color-content-added: #12263a;
	--background-color-content-removed: #3a2a0e;
	--border-color-base: #3a302a;
	--border-color-subtle: #261f1a;
	--border-color-muted: #1e1815;
	--border-color-divider: #261f1a;
	--border-color-interactive: #3a302a;
	--border-color-input--hover: #7d7268;
	--border-color-disabled: #261f1a;
	--border-color-progressive: #e8571c;
	--border-color-progressive--hover: #f06a30;
	--border-color-progressive--active: #c9480f;
	--border-color-progressive--focus: #e8571c;
	--border-color-inverted: #0b0908;
	--color-base: #e6dccb;
	--color-base--hover: #f5ecdc;
	--color-emphasized: #f5ecdc;
	--color-subtle: #9a8e80;
	--color-base--subtle: #9a8e80;
	--color-placeholder: #6a6058;
	--color-disabled: #5a5048;
	--color-inverted: #0b0908;
	--color-progressive: #e6dccb;
	--color-progressive--hover: #e8571c;
	--color-progressive--active: #e8571c;
	--color-progressive--focus: #e8571c;
	--color-visited: #e6dccb;
	--color-link-red: #c9715f;
	--color-link-red--hover: #e8571c;
	--color-link-red--visited: #c9715f;
	--color-destructive: #e0604c;
	--color-error: #e0604c;
	--color-warning: #d4a72c;
	--color-success: #5cb85c;
	--color-notice: #e6dccb;
	--box-shadow-color-progressive--focus: #e8571c;
	--outline-color-progressive--focus: #e8571c;
}
}

/* One typeface, like the website */
html, body, .mw-body h1, .mw-body-content h1, .mw-body-content h2, .mw-heading1, .mw-heading2,
.mw-body .firstHeading, .cdx-button, input, textarea, select, button, .oo-ui-widget {
	font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
.mw-body .firstHeading, .mw-body-content h1, .mw-body-content h2, .mw-heading1 h1, .mw-heading2 h2 {
	font-weight: 800; letter-spacing: -0.01em;
}
.mw-body-content h3, .mw-heading3 h3 { font-weight: 500; }

/* Plain rectangles, no rounded corners */
*, *::before, *::after { border-radius: 0 !important; }
html.skin-theme-clientpref-night .cdx-radio__input:enabled:not(:checked) + .cdx-radio__icon,
html.skin-theme-clientpref-night .cdx-checkbox__input:enabled:not(:checked) + .cdx-checkbox__icon {
	background-color: var( --background-color-base ) !important; border-color: var( --border-color-input--hover ) !important;
}

/* No "powered by" badges */
#footer-icons { display: none; }

/* Links in running text: bone with a signal-coloured underline */
.mw-body-content a:not(.new):not(.mw-file-description):not(.cdx-button) {
	text-decoration: underline; text-decoration-color: rgba( 232, 87, 28, 0.6 ); text-underline-offset: 3px;
}
.mw-body-content a:hover { color: #e8571c; }

/* Light theme: the bone wordmark is inverted to dark */
html.skin-theme-clientpref-day .mw-logo-wordmark { filter: invert( 1 ); }
@media (prefers-color-scheme: light) { html.skin-theme-clientpref-os .mw-logo-wordmark { filter: invert( 1 ); } }

/* Main page: no "Main Page" heading */
.page-Main_Page .mw-first-heading { display: none; }

/* Notices ({{Stub}}, {{Draft}}) */
.arise-notice { border-left: 4px solid var( --border-color-base, #c8ccd1 ); background: var( --background-color-neutral-subtle, #f8f9fa ); padding: .5em 1em; margin-bottom: 1em; }
.arise-notice-stub { border-left-color: #e8571c; }

/* Infoboxes ({{Infobox item}}, {{Infobox creature}}) */
.infobox {
	float: right; clear: right; width: 260px; margin: 0 0 1em 1.5em;
	border: 1px solid var( --border-color-subtle, #c8ccd1 );
	background: var( --background-color-neutral-subtle, #f8f9fa );
	font-size: 0.9em;
}
.infobox-title { padding: .5em .75em; font-weight: 800; font-size: 1.1em; border-bottom: 3px solid #e8571c; }
.infobox-image { text-align: center; padding: .5em; }
.infobox-row { display: grid; grid-template-columns: 90px 1fr; gap: .5em; padding: .35em .75em; border-top: 1px solid var( --border-color-subtle, #eaecf0 ); }
.infobox-row > span:first-child { font-weight: 500; color: var( --color-subtle, #54595d ); }
@media (max-width: 720px) { .infobox { float: none; width: auto; margin: 0 0 1em; } }

/* {{Rarity}}: mid tones that read on both themes */
.rarity { font-weight: 500; }
.rarity-common { color: #8a8f96; }
.rarity-uncommon { color: #3e9e4f; }
.rarity-rare { color: #3b82e0; }
.rarity-heroic { color: #c99a1e; }
.rarity-epic { color: #a061d8; }
.rarity-legendary { color: #e8571c; }