MediaWiki:Common.css: Difference between revisions
Appearance
Blanked the page Tag: Blanking |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================================================================== | |||
ZenithXI Wiki — Dark Fantasy Theme (Vector 2022 overrides) | |||
Ported by hand from web-react/apps/web/src/styles/theme.css + chrome.css | |||
========================================================================== */ | |||
/* ---- Design tokens (mirrors the website's --zx-* values) ---- */ | |||
:root { | |||
--zx-bg: #05070d; | |||
--zx-bg-deep: #04060b; | |||
--zx-panel: linear-gradient(180deg, rgba(30,40,62,0.75), rgba(13,17,28,0.9)); | |||
--zx-panel-solid: rgba(6,9,16,0.9); | |||
--zx-panel-border: rgba(180,160,110,0.28); | |||
--zx-panel-border-strong: rgba(217,189,124,0.4); | |||
--zx-panel-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 28px rgba(0,0,0,0.45); | |||
--zx-header-grad: linear-gradient(180deg, rgba(19,26,42,0.97), rgba(8,12,21,0.97)); | |||
--zx-dropdown-grad: linear-gradient(180deg, rgba(24,32,54,0.99), rgba(9,12,22,0.99)); | |||
--zx-text: #c8d0e0; | |||
--zx-text-strong: #eef1f7; | |||
--zx-text-body: #c2cadb; | |||
--zx-text-muted: #9aa6bd; | |||
--zx-text-dim: #8d97ad; | |||
--zx-text-faint: #7f8aa3; | |||
--zx-text-disabled: #5c6478; | |||
--zx-accent: #17c3b2; | |||
--zx-gold: #d9bd7c; | |||
--zx-gold-bright: #e8dcb2; | |||
--zx-gold-brightest: #f2e3b8; | |||
--zx-gold-hover: #ffedc2; | |||
--zx-gold-deep: #c9a75c; | |||
--zx-gold-btn: linear-gradient(180deg, #ecd9a3, #c9a75c); | |||
--zx-gold-btn-border: #f2e3b8; | |||
--zx-on-gold: #100d06; | |||
--zx-danger: #e88a8a; | |||
--zx-info: #9fb8e8; | |||
--zx-success-dot: #63c76f; | |||
--zx-font-display: 'Ferrum', Georgia, 'Times New Roman', serif; | |||
--zx-font-prose: 'Palatino Linotype', 'Book Antiqua', Georgia, serif; | |||
--zx-font-ui: Verdana, 'Segoe UI', sans-serif; | |||
--zx-font-mono: 'Lucida Console', Monaco, monospace; | |||
} | |||
/* ---- Self-hosted display font ---- | |||
Upload Ferrum-wy99.otf (from web-react/apps/web/public/fonts/Ferrum-wy99.otf | |||
in the ZenithXI-Unified repo) to your wiki server and point the url() below | |||
at it — e.g. alongside your existing /images/ uploads. Until uploaded, this | |||
simply 404s silently and headings fall back to Georgia/serif. */ | |||
@font-face { | |||
font-family: 'Ferrum'; | |||
src: url('https://wiki.zenithxi.com/fonts/Ferrum-wy99.otf') format('opentype'); | |||
font-display: swap; | |||
} | |||
/* ========================================================================== | |||
Wide layout (unchanged — functional, not visual) | |||
========================================================================== */ | |||
.mw-page-container { | |||
max-width: none !important; | |||
width: 100% !important; | |||
} | |||
.mw-content-container { | |||
max-width: none !important; | |||
width: 100% !important; | |||
} | |||
/* .mw-workspace-container wraps the sidebar + content + footer column and | |||
carries its own max-width in core Vector 2022 — without this override, | |||
widening .mw-page-container/.mw-content-container alone has no visible | |||
effect because this ancestor is still capping the available space. */ | |||
.mw-workspace-container, | |||
.mw-article-toolbar-container { | |||
max-width: none !important; | |||
width: 100% !important; | |||
} | |||
/* THE key fix: .mw-body (the direct wrapper around the article) is its own | |||
CSS grid with `grid-template-columns: minmax(0, <reading-width-em>) min-content` | |||
baked into core Vector 2022 — this caps the actual article column to a | |||
fixed em-based reading width (~76em) *independently* of how wide its | |||
ancestors are, which is why the content still looked narrow even with | |||
every other max-width override in this file. This replicates exactly what | |||
MediaWiki's own "Enable limited width mode" preference toggle does when | |||
turned off — first column now flexes to fill all available space, second | |||
column stays min-content for the pinned page-tools rail. */ | |||
.mw-body { | |||
grid-template-columns: minmax(0, 1fr) min-content !important; | |||
} | |||
.mw-body-content { | |||
max-width: 100% !important; | |||
margin: 0 auto !important; | |||
overflow-wrap: break-word !important; | |||
word-wrap: break-word !important; | |||
hyphens: auto !important; | |||
} | |||
.vector-header-container { | |||
max-width: none !important; | |||
width: 100% !important; | |||
} | |||
.mw-footer-container { | |||
max-width: none !important; | |||
width: 100% !important; | |||
} | |||
.mw-logo-icon { | |||
height: 150px !important; | |||
width: 150px !important; | |||
object-fit: contain !important; | |||
filter: drop-shadow(0 0 8px rgba(217, 189, 124, 0.25)); | |||
} | |||
.mw-logo { | |||
display: flex !important; | |||
align-items: center !important; | |||
} | |||
/* ---- Header logo wordmark: override inline span colors ---- */ | |||
.mw-logo-wordmark span:first-child { | |||
color: var(--zx-accent) !important; | |||
} | |||
.mw-logo-wordmark span:last-child { | |||
color: var(--zx-gold) !important; | |||
} | |||
/* ---- Header icons (search, bell, tray, watchlist, user, settings) ---- */ | |||
.vector-header-end .vector-icon, | |||
.vector-user-links .vector-icon, | |||
#p-personal .vector-icon { | |||
background-color: var(--zx-text-muted) !important; | |||
} | |||
.vector-header-end a:hover .vector-icon, | |||
.vector-user-links a:hover .vector-icon, | |||
#p-personal a:hover .vector-icon { | |||
background-color: var(--zx-gold-bright) !important; | |||
} | |||
/* ---- Header search submit button ---- */ | |||
.cdx-search-input__end-button { | |||
background: var(--zx-gold-btn) !important; | |||
border: 1px solid var(--zx-gold-btn-border) !important; | |||
color: var(--zx-on-gold) !important; | |||
text-transform: uppercase; | |||
letter-spacing: 0.14em; | |||
font-size: 11px; | |||
} | |||
.cdx-search-input__end-button:hover { | |||
filter: brightness(1.08); | |||
} | |||
#p-search { | |||
margin-left: auto !important; | |||
padding-left: 100px !important; | |||
} | |||
.vector-header-end { | |||
display: flex !important; | |||
align-items: center !important; | |||
justify-content: flex-end !important; | |||
width: auto !important; | |||
min-width: 25% !important; | |||
} | |||
.vector-sidebar { | |||
width: 14em !important; | |||
} | |||
/* NOTE: core Vector 2022 doesn't actually read --width-layout/--width-content/ | |||
--width-workspace-* as runtime CSS custom properties — its widths are | |||
compile-time LESS variables baked into literal max-width values on | |||
.mw-workspace-container / .mw-content-container / .mw-body. This block is | |||
left in place (harmless) but the real fix lives in the "Wide layout" | |||
section above and the .mw-body grid override there. */ | |||
:root { | |||
--width-layout: 100% !important; | |||
--width-content: 100% !important; | |||
--width-workspace-min: 100% !important; | |||
--width-workspace-max: none !important; | |||
} | |||
body { | |||
--width-layout: 100% !important; | |||
overflow-x: hidden !important; | |||
} | |||
.mw-body-content table, | |||
.mw-body-content pre, | |||
.mw-body-content div.mw-geshi { | |||
max-width: 100% !important; | |||
overflow-x: auto !important; | |||
display: block !important; | |||
} | |||
.mw-body { | |||
padding: 0.75em !important; | |||
margin: 0.5em !important; | |||
padding-right: 1em !important; | |||
} | |||
.mw-body h1, | |||
.mw-body h2, | |||
.mw-body h3, | |||
.mw-body h4, | |||
.mw-body h5, | |||
.mw-body h6, | |||
.mw-body p, | |||
.mw-body ul, | |||
.mw-body ol, | |||
.mw-body div { | |||
margin-left: 0.25em !important; | |||
margin-right: 0.25em !important; | |||
padding-left: 0.25em !important; | |||
padding-right: 0.25em !important; | |||
} | |||
.mw-headline, | |||
.mw-heading { | |||
margin-left: 0.25em !important; | |||
} | |||
.mw-body ul, | |||
.mw-body ol { | |||
margin-left: 1em !important; | |||
} | |||
.mw-heading + p, | |||
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p { | |||
margin-top: 0.25em !important; | |||
margin-left: 0.5em !important; | |||
} | |||
/* ========================================================================== | |||
Page canvas & background art | |||
========================================================================== */ | |||
html, body { | |||
background-color: var(--zx-bg) !important; | |||
} | |||
.vector-column-start, | |||
.vector-column-end, | |||
.mw-page-container { | |||
position: relative !important; | |||
background-color: transparent !important; | |||
} | |||
.vector-sticky-header { | |||
background: var(--zx-header-grad) !important; | |||
border-bottom: 1px solid rgba(180, 160, 110, 0.32) !important; | |||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); | |||
} | |||
.vector-sticky-header .vector-icon { | |||
background-color: var(--zx-text-muted) !important; | |||
} | |||
.vector-sticky-header a:hover .vector-icon { | |||
background-color: var(--zx-gold-bright) !important; | |||
} | |||
.vector-pinnable-header-toggle-button { | |||
background: transparent !important; | |||
border: 1px solid var(--zx-panel-border) !important; | |||
color: var(--zx-text-muted) !important; | |||
border-radius: 0 !important; | |||
text-transform: uppercase; | |||
letter-spacing: 0.1em; | |||
font-size: 11px; | |||
} | |||
.vector-pinnable-header-toggle-button:hover { | |||
border-color: var(--zx-gold) !important; | |||
color: var(--zx-gold-bright) !important; | |||
} | |||
.vector-toc-list-item-active > .vector-toc-link, | |||
.vector-toc-list-item-active .vector-toc-link { | |||
color: var(--zx-gold-bright) !important; | |||
} | |||
/* ACTIVE: subtle dark image overlay. | |||
Requires uploading dark-bg2.jpg (from web-react/apps/web/public/images/dark-bg2.jpg | |||
in the repo) to your wiki server at the path referenced below. */ | |||
.mw-page-container:before { | |||
content: "" !important; | |||
position: fixed !important; | |||
top: 0 !important; | |||
left: 0 !important; | |||
width: 100% !important; | |||
height: 100% !important; | |||
background-image: url('https://wiki.zenithxi.com/images/dark-bg2.jpg') !important; | |||
background-size: cover !important; | |||
background-position: center !important; | |||
background-attachment: fixed !important; | |||
opacity: 0.18 !important; | |||
z-index: -1 !important; | |||
} | |||
/* FLAT CANVAS ALTERNATIVE — comment out the block above and uncomment this | |||
one to use a clean solid-color canvas instead (no image upload needed; | |||
this is what the live website itself does on every page but its Home hero). | |||
.mw-page-container:before { | |||
content: none !important; | |||
} | |||
*/ | |||
/* ========================================================================== | |||
Typography | |||
========================================================================== */ | |||
body, #content, #bodyContent, p, li, td, th, div, input, textarea, select, button { | |||
font-family: var(--zx-font-ui) !important; | |||
color: var(--zx-text-body); | |||
} | |||
h1, h2, h3, h4, h5, h6, | |||
.mw-heading, | |||
.mw-headline, | |||
.mw-logo-wordmark { | |||
font-family: var(--zx-font-display) !important; | |||
color: var(--zx-text-strong) !important; | |||
font-weight: 500; | |||
letter-spacing: 0.02em; | |||
} | |||
.mw-logo-wordmark { | |||
font-size: 28px !important; | |||
text-transform: uppercase !important; | |||
color: var(--zx-gold) !important; | |||
} | |||
#firstHeading, | |||
.mw-first-heading { | |||
border-bottom: 1px solid var(--zx-panel-border-strong); | |||
padding-bottom: 0.35em; | |||
} | |||
.mw-heading2 { | |||
position: relative; | |||
padding-bottom: 0.3em; | |||
} | |||
.mw-heading2::after { | |||
content: ""; | |||
display: block; | |||
height: 1px; | |||
margin-top: 0.3em; | |||
background: linear-gradient(90deg, rgba(217, 189, 124, 0.75), transparent); | |||
} | |||
blockquote { | |||
font-family: var(--zx-font-prose); | |||
font-style: italic; | |||
border-left: 2px solid var(--zx-gold-deep); | |||
padding-left: 1em; | |||
color: var(--zx-text-dim); | |||
} | |||
a { | |||
color: var(--zx-gold); | |||
text-decoration: none; | |||
} | |||
a:hover { | |||
color: var(--zx-gold-hover); | |||
text-decoration: underline; | |||
} | |||
a:visited { | |||
color: var(--zx-gold-deep); | |||
} | |||
a.new, | |||
a.new:visited { | |||
color: var(--zx-danger); | |||
} | |||
::selection { | |||
background: rgba(217, 189, 124, 0.35); | |||
color: var(--zx-text-strong); | |||
} | |||
/* ========================================================================== | |||
Main content panel | |||
========================================================================== */ | |||
.vector-body { | |||
border-radius: 0 !important; | |||
overflow: hidden !important; | |||
background: var(--zx-panel) !important; | |||
border: 1px solid var(--zx-panel-border); | |||
box-shadow: var(--zx-panel-shadow); | |||
} | |||
.vector-body-before-content, | |||
.vector-body-content, | |||
.vector-body-after-content { | |||
background-color: transparent !important; | |||
} | |||
/* ========================================================================== | |||
Header & navigation | |||
========================================================================== */ | |||
.vector-header { | |||
background: var(--zx-header-grad) !important; | |||
border-bottom: 1px solid rgba(180, 160, 110, 0.32); | |||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); | |||
} | |||
.vector-header-container, | |||
.vector-search-box, | |||
.vector-user-links, | |||
.vector-menu-tabs, | |||
.vector-menu-tabs .vector-menu-content, | |||
.vector-menu-dropdown .vector-menu-content { | |||
background-color: transparent !important; | |||
} | |||
.vector-menu-dropdown .vector-menu-content-list { | |||
background: var(--zx-dropdown-grad) !important; | |||
border: 1px solid var(--zx-panel-border-strong) !important; | |||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07); | |||
} | |||
.vector-menu-tabs a, | |||
#p-personal a, | |||
.vector-user-links a, | |||
.vector-menu-dropdown .vector-menu-content-list a { | |||
text-transform: uppercase; | |||
font-size: 12px; | |||
letter-spacing: 0.14em; | |||
color: var(--zx-text-muted) !important; | |||
} | |||
.vector-menu-tabs a:hover, | |||
#p-personal a:hover, | |||
.vector-menu-dropdown .vector-menu-content-list a:hover, | |||
html .vector-menu-tabs .mw-list-item.selected a { | |||
color: var(--zx-gold-bright) !important; | |||
} | |||
/* ========================================================================== | |||
Sidebar | |||
========================================================================== */ | |||
.vector-main-menu-container, | |||
.vector-sidebar-container, | |||
.vector-pinnable-header, | |||
.vector-pinnable-element-pinned, | |||
.vector-pinned-container, | |||
.mw-sidebar, | |||
#mw-panel { | |||
border-radius: 0 !important; | |||
overflow: hidden !important; | |||
background: var(--zx-panel-solid); | |||
border: 1px solid var(--zx-panel-border); | |||
} | |||
.vector-main-menu .vector-menu-content, | |||
.vector-sidebar-container .vector-menu-content, | |||
#mw-panel .vector-menu-content { | |||
border-radius: 0 !important; | |||
} | |||
.vector-sidebar-container *, | |||
.vector-main-menu-container * { | |||
border-radius: inherit !important; | |||
} | |||
.vector-menu-heading { | |||
font-family: var(--zx-font-display) !important; | |||
color: var(--zx-gold) !important; | |||
text-transform: uppercase; | |||
letter-spacing: 0.2em; | |||
font-size: 11px !important; | |||
} | |||
.vector-main-menu a, | |||
.vector-menu-content a { | |||
color: var(--zx-text-muted) !important; | |||
} | |||
.vector-main-menu a:hover, | |||
.vector-menu-content a:hover { | |||
color: var(--zx-gold-bright) !important; | |||
} | |||
/* ========================================================================== | |||
Inputs & buttons | |||
========================================================================== */ | |||
.cdx-text-input__input, | |||
.cdx-search-input__input, | |||
input[type="text"], | |||
input[type="search"], | |||
input[type="password"], | |||
textarea, | |||
select { | |||
background: var(--zx-panel-solid) !important; | |||
border: 1px solid var(--zx-panel-border) !important; | |||
color: var(--zx-text-strong) !important; | |||
border-radius: 0 !important; | |||
} | |||
.cdx-text-input__input:focus, | |||
.cdx-search-input__input:focus, | |||
input[type="text"]:focus, | |||
input[type="search"]:focus, | |||
input[type="password"]:focus, | |||
textarea:focus { | |||
outline: none !important; | |||
box-shadow: 0 0 0 1px rgba(217, 189, 124, 0.35) !important; | |||
border-color: var(--zx-gold) !important; | |||
} | |||
.cdx-button, | |||
.mw-ui-button, | |||
input[type="submit"], | |||
button { | |||
font-family: var(--zx-font-ui); | |||
text-transform: uppercase; | |||
letter-spacing: 0.14em; | |||
font-size: 11px; | |||
border-radius: 0 !important; | |||
background: transparent; | |||
border: 1px solid var(--zx-panel-border); | |||
color: var(--zx-text-muted); | |||
transition: all 0.15s ease; | |||
} | |||
.cdx-button:hover, | |||
.mw-ui-button:hover, | |||
button:hover { | |||
border-color: var(--zx-gold); | |||
color: var(--zx-gold-bright); | |||
} | |||
.cdx-button--action-progressive, | |||
.mw-ui-button.mw-ui-progressive, | |||
input[type="submit"].mw-ui-progressive { | |||
background: var(--zx-gold-btn) !important; | |||
border-color: var(--zx-gold-btn-border) !important; | |||
color: var(--zx-on-gold) !important; | |||
} | |||
.cdx-button--action-progressive:hover, | |||
.mw-ui-button.mw-ui-progressive:hover { | |||
filter: brightness(1.08); | |||
} | |||
/* ========================================================================== | |||
Tables & code | |||
========================================================================== */ | |||
.mw-body-content table.wikitable, | |||
.mw-body-content table.infobox { | |||
background: var(--zx-panel); | |||
border: 1px solid var(--zx-panel-border); | |||
color: var(--zx-text-body); | |||
} | |||
.wikitable > tr > th, | |||
.wikitable > * > tr > th { | |||
background: rgba(217, 189, 124, 0.1); | |||
color: var(--zx-gold); | |||
text-transform: uppercase; | |||
letter-spacing: 0.08em; | |||
font-size: 11px; | |||
border-color: var(--zx-panel-border); | |||
} | |||
.wikitable > tr > td, | |||
.wikitable > * > tr > td { | |||
border-color: var(--zx-panel-border); | |||
} | |||
.mw-body-content pre, | |||
.mw-body-content code, | |||
.mw-highlight { | |||
font-family: var(--zx-font-mono) !important; | |||
background: var(--zx-panel-solid) !important; | |||
border: 1px solid var(--zx-panel-border) !important; | |||
color: var(--zx-text) !important; | |||
border-radius: 0 !important; | |||
} | |||
/* ========================================================================== | |||
Footer | |||
========================================================================== */ | |||
.mw-footer-container { | |||
background: var(--zx-bg-deep) !important; | |||
border-top: 1px solid rgba(180, 160, 110, 0.3); | |||
color: var(--zx-text-disabled) !important; | |||
} | |||
#footer-info, | |||
#footer-places, | |||
#footer-icons, | |||
.mw-footer li { | |||
color: var(--zx-text-faint) !important; | |||
} | |||
#footer a { | |||
color: var(--zx-text-muted) !important; | |||
} | |||
#footer a:hover { | |||
color: var(--zx-gold-bright) !important; | |||
} | |||
/* ========================================================================== | |||
Optional: themed scrollbar (WebKit/Blink browsers) | |||
========================================================================== */ | |||
::-webkit-scrollbar { width: 10px; height: 10px; } | |||
::-webkit-scrollbar-track { background: var(--zx-bg-deep); } | |||
::-webkit-scrollbar-thumb { background: var(--zx-panel-border-strong); border: 2px solid var(--zx-bg-deep); } | |||
::-webkit-scrollbar-thumb:hover { background: var(--zx-gold-deep); } | |||
/* ========================================================================== | |||
Responsive handling (unchanged — functional) | |||
========================================================================== */ | |||
@media screen and (max-width: 1600px) { | |||
.mw-body-content table, | |||
.mw-body-content pre, | |||
.mw-body-content .mw-highlight { | |||
max-width: 100% !important; | |||
overflow-x: auto !important; | |||
} | |||
.mw-body-content p, | |||
.mw-body-content li, | |||
.mw-body-content div { | |||
overflow-wrap: anywhere !important; | |||
} | |||
.mw-body-content img { | |||
max-width: 100% !important; | |||
height: auto !important; | |||
} | |||
} | |||
/* NOTE: .vector-layout-config isn't a real Vector 2022 class and these | |||
--max-width-* properties aren't read anywhere in core, so this block is | |||
very likely a no-op. Left in place as harmless dead weight rather than | |||
removed, in case a theme/extension on this wiki does target it. */ | |||
.vector-layout-config { | |||
--max-width-page-container: none !important; | |||
--max-width-content-container: none !important; | |||
} | |||
.vector-sticky-pinned-container::after { | |||
display: none !important; | |||
content: none !important; | |||
height: 0 !important; | |||
background: none !important; | |||
} | |||
Revision as of 16:23, 3 July 2026
/* ==========================================================================
ZenithXI Wiki — Dark Fantasy Theme (Vector 2022 overrides)
Ported by hand from web-react/apps/web/src/styles/theme.css + chrome.css
========================================================================== */
/* ---- Design tokens (mirrors the website's --zx-* values) ---- */
:root {
--zx-bg: #05070d;
--zx-bg-deep: #04060b;
--zx-panel: linear-gradient(180deg, rgba(30,40,62,0.75), rgba(13,17,28,0.9));
--zx-panel-solid: rgba(6,9,16,0.9);
--zx-panel-border: rgba(180,160,110,0.28);
--zx-panel-border-strong: rgba(217,189,124,0.4);
--zx-panel-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 28px rgba(0,0,0,0.45);
--zx-header-grad: linear-gradient(180deg, rgba(19,26,42,0.97), rgba(8,12,21,0.97));
--zx-dropdown-grad: linear-gradient(180deg, rgba(24,32,54,0.99), rgba(9,12,22,0.99));
--zx-text: #c8d0e0;
--zx-text-strong: #eef1f7;
--zx-text-body: #c2cadb;
--zx-text-muted: #9aa6bd;
--zx-text-dim: #8d97ad;
--zx-text-faint: #7f8aa3;
--zx-text-disabled: #5c6478;
--zx-accent: #17c3b2;
--zx-gold: #d9bd7c;
--zx-gold-bright: #e8dcb2;
--zx-gold-brightest: #f2e3b8;
--zx-gold-hover: #ffedc2;
--zx-gold-deep: #c9a75c;
--zx-gold-btn: linear-gradient(180deg, #ecd9a3, #c9a75c);
--zx-gold-btn-border: #f2e3b8;
--zx-on-gold: #100d06;
--zx-danger: #e88a8a;
--zx-info: #9fb8e8;
--zx-success-dot: #63c76f;
--zx-font-display: 'Ferrum', Georgia, 'Times New Roman', serif;
--zx-font-prose: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
--zx-font-ui: Verdana, 'Segoe UI', sans-serif;
--zx-font-mono: 'Lucida Console', Monaco, monospace;
}
/* ---- Self-hosted display font ----
Upload Ferrum-wy99.otf (from web-react/apps/web/public/fonts/Ferrum-wy99.otf
in the ZenithXI-Unified repo) to your wiki server and point the url() below
at it — e.g. alongside your existing /images/ uploads. Until uploaded, this
simply 404s silently and headings fall back to Georgia/serif. */
@font-face {
font-family: 'Ferrum';
src: url('https://wiki.zenithxi.com/fonts/Ferrum-wy99.otf') format('opentype');
font-display: swap;
}
/* ==========================================================================
Wide layout (unchanged — functional, not visual)
========================================================================== */
.mw-page-container {
max-width: none !important;
width: 100% !important;
}
.mw-content-container {
max-width: none !important;
width: 100% !important;
}
/* .mw-workspace-container wraps the sidebar + content + footer column and
carries its own max-width in core Vector 2022 — without this override,
widening .mw-page-container/.mw-content-container alone has no visible
effect because this ancestor is still capping the available space. */
.mw-workspace-container,
.mw-article-toolbar-container {
max-width: none !important;
width: 100% !important;
}
/* THE key fix: .mw-body (the direct wrapper around the article) is its own
CSS grid with `grid-template-columns: minmax(0, <reading-width-em>) min-content`
baked into core Vector 2022 — this caps the actual article column to a
fixed em-based reading width (~76em) *independently* of how wide its
ancestors are, which is why the content still looked narrow even with
every other max-width override in this file. This replicates exactly what
MediaWiki's own "Enable limited width mode" preference toggle does when
turned off — first column now flexes to fill all available space, second
column stays min-content for the pinned page-tools rail. */
.mw-body {
grid-template-columns: minmax(0, 1fr) min-content !important;
}
.mw-body-content {
max-width: 100% !important;
margin: 0 auto !important;
overflow-wrap: break-word !important;
word-wrap: break-word !important;
hyphens: auto !important;
}
.vector-header-container {
max-width: none !important;
width: 100% !important;
}
.mw-footer-container {
max-width: none !important;
width: 100% !important;
}
.mw-logo-icon {
height: 150px !important;
width: 150px !important;
object-fit: contain !important;
filter: drop-shadow(0 0 8px rgba(217, 189, 124, 0.25));
}
.mw-logo {
display: flex !important;
align-items: center !important;
}
/* ---- Header logo wordmark: override inline span colors ---- */
.mw-logo-wordmark span:first-child {
color: var(--zx-accent) !important;
}
.mw-logo-wordmark span:last-child {
color: var(--zx-gold) !important;
}
/* ---- Header icons (search, bell, tray, watchlist, user, settings) ---- */
.vector-header-end .vector-icon,
.vector-user-links .vector-icon,
#p-personal .vector-icon {
background-color: var(--zx-text-muted) !important;
}
.vector-header-end a:hover .vector-icon,
.vector-user-links a:hover .vector-icon,
#p-personal a:hover .vector-icon {
background-color: var(--zx-gold-bright) !important;
}
/* ---- Header search submit button ---- */
.cdx-search-input__end-button {
background: var(--zx-gold-btn) !important;
border: 1px solid var(--zx-gold-btn-border) !important;
color: var(--zx-on-gold) !important;
text-transform: uppercase;
letter-spacing: 0.14em;
font-size: 11px;
}
.cdx-search-input__end-button:hover {
filter: brightness(1.08);
}
#p-search {
margin-left: auto !important;
padding-left: 100px !important;
}
.vector-header-end {
display: flex !important;
align-items: center !important;
justify-content: flex-end !important;
width: auto !important;
min-width: 25% !important;
}
.vector-sidebar {
width: 14em !important;
}
/* NOTE: core Vector 2022 doesn't actually read --width-layout/--width-content/
--width-workspace-* as runtime CSS custom properties — its widths are
compile-time LESS variables baked into literal max-width values on
.mw-workspace-container / .mw-content-container / .mw-body. This block is
left in place (harmless) but the real fix lives in the "Wide layout"
section above and the .mw-body grid override there. */
:root {
--width-layout: 100% !important;
--width-content: 100% !important;
--width-workspace-min: 100% !important;
--width-workspace-max: none !important;
}
body {
--width-layout: 100% !important;
overflow-x: hidden !important;
}
.mw-body-content table,
.mw-body-content pre,
.mw-body-content div.mw-geshi {
max-width: 100% !important;
overflow-x: auto !important;
display: block !important;
}
.mw-body {
padding: 0.75em !important;
margin: 0.5em !important;
padding-right: 1em !important;
}
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6,
.mw-body p,
.mw-body ul,
.mw-body ol,
.mw-body div {
margin-left: 0.25em !important;
margin-right: 0.25em !important;
padding-left: 0.25em !important;
padding-right: 0.25em !important;
}
.mw-headline,
.mw-heading {
margin-left: 0.25em !important;
}
.mw-body ul,
.mw-body ol {
margin-left: 1em !important;
}
.mw-heading + p,
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
margin-top: 0.25em !important;
margin-left: 0.5em !important;
}
/* ==========================================================================
Page canvas & background art
========================================================================== */
html, body {
background-color: var(--zx-bg) !important;
}
.vector-column-start,
.vector-column-end,
.mw-page-container {
position: relative !important;
background-color: transparent !important;
}
.vector-sticky-header {
background: var(--zx-header-grad) !important;
border-bottom: 1px solid rgba(180, 160, 110, 0.32) !important;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.vector-sticky-header .vector-icon {
background-color: var(--zx-text-muted) !important;
}
.vector-sticky-header a:hover .vector-icon {
background-color: var(--zx-gold-bright) !important;
}
.vector-pinnable-header-toggle-button {
background: transparent !important;
border: 1px solid var(--zx-panel-border) !important;
color: var(--zx-text-muted) !important;
border-radius: 0 !important;
text-transform: uppercase;
letter-spacing: 0.1em;
font-size: 11px;
}
.vector-pinnable-header-toggle-button:hover {
border-color: var(--zx-gold) !important;
color: var(--zx-gold-bright) !important;
}
.vector-toc-list-item-active > .vector-toc-link,
.vector-toc-list-item-active .vector-toc-link {
color: var(--zx-gold-bright) !important;
}
/* ACTIVE: subtle dark image overlay.
Requires uploading dark-bg2.jpg (from web-react/apps/web/public/images/dark-bg2.jpg
in the repo) to your wiki server at the path referenced below. */
.mw-page-container:before {
content: "" !important;
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
background-image: url('https://wiki.zenithxi.com/images/dark-bg2.jpg') !important;
background-size: cover !important;
background-position: center !important;
background-attachment: fixed !important;
opacity: 0.18 !important;
z-index: -1 !important;
}
/* FLAT CANVAS ALTERNATIVE — comment out the block above and uncomment this
one to use a clean solid-color canvas instead (no image upload needed;
this is what the live website itself does on every page but its Home hero).
.mw-page-container:before {
content: none !important;
}
*/
/* ==========================================================================
Typography
========================================================================== */
body, #content, #bodyContent, p, li, td, th, div, input, textarea, select, button {
font-family: var(--zx-font-ui) !important;
color: var(--zx-text-body);
}
h1, h2, h3, h4, h5, h6,
.mw-heading,
.mw-headline,
.mw-logo-wordmark {
font-family: var(--zx-font-display) !important;
color: var(--zx-text-strong) !important;
font-weight: 500;
letter-spacing: 0.02em;
}
.mw-logo-wordmark {
font-size: 28px !important;
text-transform: uppercase !important;
color: var(--zx-gold) !important;
}
#firstHeading,
.mw-first-heading {
border-bottom: 1px solid var(--zx-panel-border-strong);
padding-bottom: 0.35em;
}
.mw-heading2 {
position: relative;
padding-bottom: 0.3em;
}
.mw-heading2::after {
content: "";
display: block;
height: 1px;
margin-top: 0.3em;
background: linear-gradient(90deg, rgba(217, 189, 124, 0.75), transparent);
}
blockquote {
font-family: var(--zx-font-prose);
font-style: italic;
border-left: 2px solid var(--zx-gold-deep);
padding-left: 1em;
color: var(--zx-text-dim);
}
a {
color: var(--zx-gold);
text-decoration: none;
}
a:hover {
color: var(--zx-gold-hover);
text-decoration: underline;
}
a:visited {
color: var(--zx-gold-deep);
}
a.new,
a.new:visited {
color: var(--zx-danger);
}
::selection {
background: rgba(217, 189, 124, 0.35);
color: var(--zx-text-strong);
}
/* ==========================================================================
Main content panel
========================================================================== */
.vector-body {
border-radius: 0 !important;
overflow: hidden !important;
background: var(--zx-panel) !important;
border: 1px solid var(--zx-panel-border);
box-shadow: var(--zx-panel-shadow);
}
.vector-body-before-content,
.vector-body-content,
.vector-body-after-content {
background-color: transparent !important;
}
/* ==========================================================================
Header & navigation
========================================================================== */
.vector-header {
background: var(--zx-header-grad) !important;
border-bottom: 1px solid rgba(180, 160, 110, 0.32);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.vector-header-container,
.vector-search-box,
.vector-user-links,
.vector-menu-tabs,
.vector-menu-tabs .vector-menu-content,
.vector-menu-dropdown .vector-menu-content {
background-color: transparent !important;
}
.vector-menu-dropdown .vector-menu-content-list {
background: var(--zx-dropdown-grad) !important;
border: 1px solid var(--zx-panel-border-strong) !important;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.vector-menu-tabs a,
#p-personal a,
.vector-user-links a,
.vector-menu-dropdown .vector-menu-content-list a {
text-transform: uppercase;
font-size: 12px;
letter-spacing: 0.14em;
color: var(--zx-text-muted) !important;
}
.vector-menu-tabs a:hover,
#p-personal a:hover,
.vector-menu-dropdown .vector-menu-content-list a:hover,
html .vector-menu-tabs .mw-list-item.selected a {
color: var(--zx-gold-bright) !important;
}
/* ==========================================================================
Sidebar
========================================================================== */
.vector-main-menu-container,
.vector-sidebar-container,
.vector-pinnable-header,
.vector-pinnable-element-pinned,
.vector-pinned-container,
.mw-sidebar,
#mw-panel {
border-radius: 0 !important;
overflow: hidden !important;
background: var(--zx-panel-solid);
border: 1px solid var(--zx-panel-border);
}
.vector-main-menu .vector-menu-content,
.vector-sidebar-container .vector-menu-content,
#mw-panel .vector-menu-content {
border-radius: 0 !important;
}
.vector-sidebar-container *,
.vector-main-menu-container * {
border-radius: inherit !important;
}
.vector-menu-heading {
font-family: var(--zx-font-display) !important;
color: var(--zx-gold) !important;
text-transform: uppercase;
letter-spacing: 0.2em;
font-size: 11px !important;
}
.vector-main-menu a,
.vector-menu-content a {
color: var(--zx-text-muted) !important;
}
.vector-main-menu a:hover,
.vector-menu-content a:hover {
color: var(--zx-gold-bright) !important;
}
/* ==========================================================================
Inputs & buttons
========================================================================== */
.cdx-text-input__input,
.cdx-search-input__input,
input[type="text"],
input[type="search"],
input[type="password"],
textarea,
select {
background: var(--zx-panel-solid) !important;
border: 1px solid var(--zx-panel-border) !important;
color: var(--zx-text-strong) !important;
border-radius: 0 !important;
}
.cdx-text-input__input:focus,
.cdx-search-input__input:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus {
outline: none !important;
box-shadow: 0 0 0 1px rgba(217, 189, 124, 0.35) !important;
border-color: var(--zx-gold) !important;
}
.cdx-button,
.mw-ui-button,
input[type="submit"],
button {
font-family: var(--zx-font-ui);
text-transform: uppercase;
letter-spacing: 0.14em;
font-size: 11px;
border-radius: 0 !important;
background: transparent;
border: 1px solid var(--zx-panel-border);
color: var(--zx-text-muted);
transition: all 0.15s ease;
}
.cdx-button:hover,
.mw-ui-button:hover,
button:hover {
border-color: var(--zx-gold);
color: var(--zx-gold-bright);
}
.cdx-button--action-progressive,
.mw-ui-button.mw-ui-progressive,
input[type="submit"].mw-ui-progressive {
background: var(--zx-gold-btn) !important;
border-color: var(--zx-gold-btn-border) !important;
color: var(--zx-on-gold) !important;
}
.cdx-button--action-progressive:hover,
.mw-ui-button.mw-ui-progressive:hover {
filter: brightness(1.08);
}
/* ==========================================================================
Tables & code
========================================================================== */
.mw-body-content table.wikitable,
.mw-body-content table.infobox {
background: var(--zx-panel);
border: 1px solid var(--zx-panel-border);
color: var(--zx-text-body);
}
.wikitable > tr > th,
.wikitable > * > tr > th {
background: rgba(217, 189, 124, 0.1);
color: var(--zx-gold);
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: 11px;
border-color: var(--zx-panel-border);
}
.wikitable > tr > td,
.wikitable > * > tr > td {
border-color: var(--zx-panel-border);
}
.mw-body-content pre,
.mw-body-content code,
.mw-highlight {
font-family: var(--zx-font-mono) !important;
background: var(--zx-panel-solid) !important;
border: 1px solid var(--zx-panel-border) !important;
color: var(--zx-text) !important;
border-radius: 0 !important;
}
/* ==========================================================================
Footer
========================================================================== */
.mw-footer-container {
background: var(--zx-bg-deep) !important;
border-top: 1px solid rgba(180, 160, 110, 0.3);
color: var(--zx-text-disabled) !important;
}
#footer-info,
#footer-places,
#footer-icons,
.mw-footer li {
color: var(--zx-text-faint) !important;
}
#footer a {
color: var(--zx-text-muted) !important;
}
#footer a:hover {
color: var(--zx-gold-bright) !important;
}
/* ==========================================================================
Optional: themed scrollbar (WebKit/Blink browsers)
========================================================================== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--zx-bg-deep); }
::-webkit-scrollbar-thumb { background: var(--zx-panel-border-strong); border: 2px solid var(--zx-bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--zx-gold-deep); }
/* ==========================================================================
Responsive handling (unchanged — functional)
========================================================================== */
@media screen and (max-width: 1600px) {
.mw-body-content table,
.mw-body-content pre,
.mw-body-content .mw-highlight {
max-width: 100% !important;
overflow-x: auto !important;
}
.mw-body-content p,
.mw-body-content li,
.mw-body-content div {
overflow-wrap: anywhere !important;
}
.mw-body-content img {
max-width: 100% !important;
height: auto !important;
}
}
/* NOTE: .vector-layout-config isn't a real Vector 2022 class and these
--max-width-* properties aren't read anywhere in core, so this block is
very likely a no-op. Left in place as harmless dead weight rather than
removed, in case a theme/extension on this wiki does target it. */
.vector-layout-config {
--max-width-page-container: none !important;
--max-width-content-container: none !important;
}
.vector-sticky-pinned-container::after {
display: none !important;
content: none !important;
height: 0 !important;
background: none !important;
}