MediaWiki:Common.css
Appearance
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.
/* ==========================================================================
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;
}
/* ===== ZenithXI dark-fantasy table theme =====
Palette: web-react/apps/web/src/styles/theme.css (gold #d9bd7c on #05070d).
Apply by adding class="zx-table" to a table's class list. */
.zx-table {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92));
border: 1px solid rgba(180,160,110,.28);
border-collapse: collapse;
color: #c8d0e0;
box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.45);
font-family: Verdana, "Segoe UI", sans-serif;
}
/* Header cells (incl. the collapsible title bar and column heads) */
.zx-table > * > tr > th {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03));
color: #d9bd7c;
border: 1px solid rgba(217,189,124,.30);
font-size: 11px;
font-weight: 600;
letter-spacing: .14em;
text-transform: uppercase;
padding: 9px 12px;
}
/* Body cells — transparent so the panel gradient shows through
(overrides Vector's default light .wikitable td background). */
.zx-table > * > tr > td {
background: transparent;
color: #c8d0e0;
border: 1px solid rgba(127,138,163,.14);
padding: 8px 12px;
}
/* Zebra striping + hover */
.zx-table > * > tr:nth-child(even) > td { background: rgba(217,189,124,.035); }
.zx-table > * > tr:hover > td { background: rgba(217,189,124,.09); }
/* Links: gold, red-links -> danger token */
.zx-table a { color: #e8dcb2; }
.zx-table a:hover { color: #ffedc2; }
.zx-table a.new { color: #e88a8a; }
/* Sort-arrow header legibility on the gold wash */
.zx-table.sortable th { background-clip: padding-box; }
/* ===== ZenithXI item-ecosystem theme (CSS-driven, no per-template edits) =====
Themes every item infobox AND item sub-table (Template:Item / Armor / Weapon /
Usable_item and the item *_Table / *_Header family) by hooking their shared
.item-info-header / .item-info-body cell classes plus their inline #4696cf
title-bar and #3c6a95 border colors via attribute selectors. !important so it
wins over the templates' inline styles; no template edits required. */
/* Outer item tables (inline border-color:#3c6a95) -> dark panel + gold border */
.mw-body-content table[style*="3c6a95" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border: 1px solid rgba(180,160,110,.28) !important;
box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.45);
}
/* Blue title bars (inline #4696cf) -> gold header wash */
.mw-body-content [style*="4696cf" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
/* Any cell carrying the #3c6a95 steel-blue border -> subtle border + light text
(covers Weapon/Usable_item cells that lack the item-info-* classes) */
.mw-body-content td[style*="3c6a95" i],
.mw-body-content th[style*="3c6a95" i] {
border-color: rgba(127,138,163,.16) !important;
color: #c8d0e0;
}
/* Label / header column cells */
.mw-body-content .item-info-header {
background: rgba(217,189,124,.06) !important;
color: #d9bd7c !important;
font-weight: 600;
}
/* Value / body cells */
.mw-body-content .item-info-body {
background: transparent !important;
color: #c8d0e0 !important;
}
/* Links inside item tables / infoboxes */
.mw-body-content .item-info-header a,
.mw-body-content .item-info-body a { color: #e8dcb2 !important; }
.mw-body-content .item-info-header a:hover,
.mw-body-content .item-info-body a:hover { color: #ffedc2 !important; }
.mw-body-content .item-info-header a.new,
.mw-body-content .item-info-body a.new { color: #e88a8a !important; }
/* ===== ZenithXI Batch 2: quest / mission / key-item / magic / job-ability headers =====
These legacy header templates use DISTINCTIVE colored header bars + pale section
backgrounds, often with dark (black/#565657) text. Recolor the distinctive header/section
colors to the dark-gold theme and force readable text. Only distinctive hexes are matched
globally; common greys (#f5f5f5/#e8e8e8/#d4d4d4) are intentionally left for per-template
follow-up to avoid site-wide collisions. Case-insensitive match handles #A6DBFD vs #a6dbfd. */
/* Colored header / title / label bars -> gold wash + gold text */
.mw-body-content [style*="57879d" i], /* Quest_Header bars */
.mw-body-content [style*="9d5757" i], /* Mission_Header bars */
.mw-body-content [style*="9e9dff" i], /* Key_Item accent */
.mw-body-content [style*="3e718a" i], /* Campaign_Header */
.mw-body-content [style*="a6dbfd" i], /* Magic / WS / JA headers */
.mw-body-content [style*="d8effe" i], /* JA column headers */
.mw-body-content [style*="e2edf7" i] { /* Quest label cells */
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
/* Pale table / section backgrounds -> subtle dark + light text */
.mw-body-content [style*="eef4f9" i],
.mw-body-content [style*="efeeee" i],
.mw-body-content [style*="cee0f2" i] {
background: rgba(217,189,124,.04) !important;
color: #c8d0e0 !important;
}
/* Legacy table wrappers -> dark panel + subtle gold border */
.mw-body-content table.bdrwhite,
.mw-body-content table.bdrdarkblue,
.mw-body-content table.Standard,
.mw-body-content table.keyitem,
.mw-body-content table.missions,
.mw-body-content table.bestiary {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border: 1px solid rgba(180,160,110,.28) !important;
}
/* Lighten dark legacy row/text colors so they read on the darkened cells */
.mw-body-content [style*="color: #565657" i],
.mw-body-content [style*="color:#565657" i] {
color: #c8d0e0 !important;
}
/* Batch 2 supplement: catch header colors set via the bgcolor= HTML attribute
(e.g. Job_Ability's "Job Ability Information" title uses bgcolor="#a6dbfd") */
.mw-body-content [bgcolor*="a6dbfd" i],
.mw-body-content [bgcolor*="d8effe" i],
.mw-body-content [bgcolor*="9d5757" i],
.mw-body-content [bgcolor*="57879d" i],
.mw-body-content [bgcolor*="9e9dff" i],
.mw-body-content [bgcolor*="4696cf" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
/* ===== ZenithXI Batch 3: bestiary / Trial of the Magians grey scoping =====
Scoped to .Standard / .bestiary wrapper classes (NOT global) -- the shared
greys below (#4b4d4f, #e8e8e8) are common enough elsewhere on the wiki that
matching them site-wide risks collisions, so they're deliberately confined
to templates carrying these class names (Trial of the Magians, Adversary
Description / Adversary Description 2). Order matters: the pale-cell rule
is declared AFTER the header-bar rule so cells that contain BOTH substrings
(e.g. "background:#e8e8e8; color:#4b4d4f") resolve to the pale treatment,
not the gold header treatment. */
.Standard [style*="4b4d4f" i],
.bestiary [style*="4b4d4f" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
.Standard [style*="e8e8e8" i],
.bestiary [style*="e8e8e8" i] {
background: rgba(217,189,124,.06) !important;
color: #c8d0e0 !important;
}
/* ===== ZenithXI Batch 3: NPC infobox greys (Template:NPC) =====
Template:NPC had no wrapper class of its own, so a "zx-npc" class was added
to its two output tables (title/image table + main info table) to give
its plain #f5f5f5 / #d4d4d4 cells a CSS hook without matching those very
common greys globally. The #4696cf/#3c6a95 title bar + border are already
themed by the global item-ecosystem rules above (NPC reuses those hexes). */
.zx-npc [style*="f5f5f5" i] {
background: transparent !important;
color: #c8d0e0 !important;
}
.zx-npc [style*="d4d4d4" i] {
background: rgba(217,189,124,.06) !important;
color: #d9bd7c !important;
font-weight: 600;
}
/* ===== ZenithXI Batch 3: Campaign_Header (Template:Campaign Header) =====
Uses bgcolor= (not style=) for its title bar + label/value cells, so it
wasn't caught by the Batch 2 style= hooks. Title teal (#3E718A) is
distinctive enough to hook globally (mirrors the existing style= hook for
the same hex); the label/value greys are common, so a "zx-campaign" class
was added to the template's outer table to scope them. */
.mw-body-content [bgcolor*="3e718a" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
}
.zx-campaign [bgcolor*="c6c6c6" i] {
background: rgba(217,189,124,.06) !important;
color: #d9bd7c !important;
}
.zx-campaign [bgcolor*="f5f5f5" i] {
background: transparent !important;
color: #c8d0e0 !important;
}
/* ===== ZenithXI Batch 3: skillchain property color legibility =====
Template:Weapon Skill Page Row renders property names as inline
<span style="color:X;">, using CSS keyword colors. Several are low/zero
contrast against the dark .zx-table panel (black is invisible; blue/
purple/green/grey are muddy) -- remap just those, scoped to .zx-table so
it can't affect anything outside the Weapon Skills tables. red/orange/
#00cece are already legible on dark and are left untouched. */
.zx-table [style*="color:black" i] { color: #cfd6e2 !important; }
.zx-table [style*="color:blue" i] { color: #6ea8ff !important; }
.zx-table [style*="color:purple" i] { color: #c58af0 !important; }
.zx-table [style*="color:green" i] { color: #5ac85a !important; }
.zx-table [style*="color:grey" i] { color: #b9c2d4 !important; }
/* ===== ZenithXI Batch 3: Job Ratings pink table (~126 weapon/skill category pages) =====
Every weapon/skill Category page (Axe, Dagger, Club, ... all but Sword, which was hand-
edited earlier) embeds an identical inline-styled pink table: table bg #fed4dd, header
bg #fea5b8 + border-color #fd5b7e, body cells with border-color #fd5b7e only (no bg of
their own -- they inherit the table's background). Hooking all three distinctive hexes
themes every one of these pages at once with no per-page/per-template edits.
Order matters: the plain border-color rule (#fd5b7e) is declared BEFORE the header rule
(#fea5b8) so header cells -- which carry both substrings in one style attribute -- end up
with the header rule's gold border (declared later wins), while body cells (which only
ever carry #fd5b7e alone) get the subtle border from the first rule. */
.mw-body-content [style*="fd5b7e" i] {
border-color: rgba(180,160,110,.28) !important;
}
.mw-body-content [style*="fea5b8" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content [style*="fed4dd" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border-color: rgba(180,160,110,.28) !important;
}
/* ===== ZenithXI Batch 4: Atmacite reward-gradient tables (~40-45 pages, no template) =====
Every Atmacite_of_* page hand-copies an identical reward table: border/header bg #CEDFF2,
then 15 rows shaded FFFFFF -> A0A0A0 (a light-mode "progress" gradient) via bgcolor set on
each ROW (not the cells -- MediaWiki emits `<tr bgcolor="#...">`), entirely inline with no
wrapper class or template. Scope every rule to descendants of a table that ALSO carries the
distinctive #CEDFF2 marker in its own style attribute, so this can never touch unrelated
bgcolor usage elsewhere (e.g. the already-scoped bestiary greys) -- no per-page edits needed
despite there being no shared template. */
.mw-body-content table[style*="CEDFF2" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border-color: rgba(180,160,110,.28) !important;
}
.mw-body-content table[style*="CEDFF2" i] > * > tr[style*="CEDFF2" i] > th {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content table[style*="CEDFF2" i] tr[bgcolor] {
background: transparent !important;
color: #c8d0e0 !important;
}
.mw-body-content table[style*="CEDFF2" i] tr[bgcolor]:nth-child(even) {
background: rgba(217,189,124,.035) !important;
}
/* ===== ZenithXI Batch 4: Job page color-coded boxes (all 22 Job pages) =====
Every job page (Warrior, Black Mage, Beastmaster, ...) repeats the same colored-box
pattern already used for the Job Ratings pink table (table bg + header bg&border, body
cells with border-color only) for several MORE boxes: Job Traits (blue), Job Ability
(red), Magic/Pet Command (purple -- two variants, one for caster spell lists, a second
only on the ~3 pet jobs), and Merits (orange, whose body cells also carry their own bg).
Same ordering rule as the pink table: the plain border-color pass goes first so it doesn't
clobber the header rule's border-color on cells that carry both substrings. */
/* Job Traits -- blue */
.mw-body-content [style*="59c1ff" i] { border-color: rgba(180,160,110,.28) !important; }
.mw-body-content [style*="ccebfe" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content [style*="eef8fe" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border-color: rgba(180,160,110,.28) !important;
}
/* Job Ability -- red */
.mw-body-content [style*="ee6a6a" i] { border-color: rgba(180,160,110,.28) !important; }
.mw-body-content [style*="fbadad" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content [style*="ffdede" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border-color: rgba(180,160,110,.28) !important;
}
/* Magic (caster spell lists) -- purple */
.mw-body-content [style*="bd72fd" i] { border-color: rgba(180,160,110,.28) !important; }
.mw-body-content [style*="daaffe" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content [style*="f2e5fd" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border-color: rgba(180,160,110,.28) !important;
}
/* Pet Command (BST/SMN/PUP only) -- purple variant */
.mw-body-content [style*="9f7fde" i] { border-color: rgba(180,160,110,.28) !important; }
.mw-body-content [style*="d5c4fa" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content [style*="f0eafe" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border-color: rgba(180,160,110,.28) !important;
}
/* Merits -- orange (body cells carry their own bg here, unlike the boxes above) */
.mw-body-content [style*="fc8b4d" i] { border-color: rgba(180,160,110,.28) !important; }
.mw-body-content [style*="fdc7a9" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content [style*="fde1d2" i] {
background: transparent !important;
color: #c8d0e0 !important;
border-color: rgba(180,160,110,.28) !important;
}
/* ===== ZenithXI Batch 4: eaf5f5 spotlight highlight + cee0f2 bgcolor gap (~45 pages) =====
#eaf5f5 marks a "notable" drop/reward inside otherwise-plain Assault/Battlefield reward
tables (e.g. Apkallu_Breeding) -- give it a gold-highlight treatment instead of dropping it.
#cee0f2 (Batch 2's pale-background rule) is also set via the bgcolor= HTML attribute on
these same pages, which the original style=-only hook didn't catch -- add that hook here. */
.mw-body-content [style*="eaf5f5" i],
.mw-body-content [bgcolor*="eaf5f5" i] {
background: rgba(217,189,124,.14) !important;
color: #f2e3b8 !important;
}
.mw-body-content [bgcolor*="cee0f2" i] {
background: rgba(217,189,124,.04) !important;
color: #c8d0e0 !important;
}
/* ===== ZenithXI Batch 5: Community guide item-upgrade tables (~7-17 pages each) =====
"Community_X_Guide" pages (e.g. Community_Ninja_Guide) embed per-relic-set item-upgrade
tables: a colored header bar (varies per set within the SAME page) + a thin 1px colored
divider strip below it, over otherwise-plain body cells already themed by the existing
#efeeee pale-background rule. Only two new header colors seen (#4b4d4f already themed
elsewhere); divider strips are decorative-only (no text), so background-only is enough. */
.mw-body-content [style*="0966a7" i],
.mw-body-content [style*="5e3c43" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
}
.mw-body-content [bgcolor*="ff8000" i],
.mw-body-content [bgcolor*="b12fb1" i],
.mw-body-content [bgcolor*="860111" i] {
background: rgba(217,189,124,.20) !important;
}
/* ===== ZenithXI Batch 5: CatsEyeXI content tables (~7-17 pages) =====
CatsEyeXI_Content/NPCs/Systems tables: teal title header (#59C1A9), a pale sub-header
column-name row (#BDDECE), alternating zebra body rows (#E8FCF8/#EDF7F2), over an outer
table background that varies by table (#726FB3 purple or #D5D0E8 lavender). */
.mw-body-content [style*="59c1a9" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
}
.mw-body-content [style*="bddece" i] {
background: linear-gradient(180deg, rgba(217,189,124,.10), rgba(217,189,124,.02)) !important;
color: #d9bd7c !important;
}
.mw-body-content [style*="726fb3" i],
.mw-body-content [style*="d5d0e8" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border-color: rgba(180,160,110,.28) !important;
}
.mw-body-content [style*="e8fcf8" i],
.mw-body-content [style*="edf7f2" i] {
background: rgba(217,189,124,.035) !important;
color: #c8d0e0 !important;
}
/* ===== ZenithXI Batch 5: History of FFXI year-timeline pages (14 sub-pages) =====
The_History_of_Final_Fantasy_XI/2001..2014 share a recurring event-log layout: a date
label cell (#d2cac0), a colored "category" gradient bar per event via
{{linear-gradient|right|#FFFFFF, HEX}} (blue #405fb6 = JP-only announcement, red #ac1717
= generic news, purple #9b70ea = beta-test event -- note these render as
background-image:linear-gradient(...) so the hex substring is inside a function value,
not a plain background: declaration, but the attribute-substring hook still matches it),
and an inset quote-callout box (#feba71/#FF911A dashed border/#fdd1a1) with inline
color:#000000 that needs overriding alongside the background. */
.mw-body-content [bgcolor*="d2cac0" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
}
.mw-body-content [style*="405fb6" i],
.mw-body-content [style*="ac1717" i],
.mw-body-content [style*="9b70ea" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
}
.mw-body-content [style*="feba71" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border-color: rgba(217,189,124,.30) !important;
color: #c8d0e0 !important;
}
.mw-body-content [style*="ff911a" i] {
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content [style*="fdd1a1" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
}
/* This page's "World of the FFXI Beta Test" box uses class="Standardwide" (not "Standard"),
which the Batch 3 scoped rule doesn't match -- extend the same 4b4d4f header treatment. */
.Standardwide [style*="4b4d4f" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
/* ===== ZenithXI Batch 5 follow-up: remaining History-of-FFXI event categories =====
Template:History_Nav's "Header Key" legend (transcluded on all 14 year pages) revealed
3 more category gradient-bar colors beyond the ones found directly on the 2001 page:
version-update cyan, in-game-event orange (a 3-digit #f90 shorthand hex), and
merchandise-released gold/tan. Same treatment as the other category bars. */
.mw-body-content [style*="1ca4bc" i],
.mw-body-content [style*="#f90" i],
.mw-body-content [style*="b68540" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
}
/* ===== ZenithXI Batch 5 follow-up: History-of-FFXI outer white wrapper table =====
The whole event-log table on each year page sets its OWN bgcolor="#FFFFFF" (too common
to hook globally on its own), so most of the page's body content was still rendering on
a plain white panel despite the inner cell fixes above. Anchor off the same distinctive
#d2cac0 date-label marker used inside it (:has() targets the ANCESTOR table, unlike the
plain descendant selector used for the Atmacite tables) -- safe because no unrelated
table on the wiki carries a d2cac0-colored cell. */
.mw-body-content table[bgcolor*="FFFFFF" i]:has([bgcolor*="d2cac0" i]) {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
}
/* The Matsui-quote callout's inner text cell uses plain background:#FFFFFF (never hooked
globally -- too common/risky). Safe to theme here since it's scoped to descendants of the
already-anchored #feba71 callout box specifically, not FFFFFF site-wide. */
.mw-body-content [style*="feba71" i] [style*="FFFFFF" i] {
background: transparent !important;
color: #c8d0e0 !important;
}
/* ===== ZenithXI Batch 5: Equipment-modifications tan box (~11-12 weapon-skill category pages) =====
A DIFFERENT box than the pink Job Ratings table on the same pages (e.g. Category:Archery,
Category:Club) -- same structural pattern though: table bg #fbf1d4, header bg #e8d39a +
border-color #bda86e, body cells with border-color #bda86e only. Same ordering rule: the
plain border-color pass goes first so the header rule's border-color wins on header cells. */
.mw-body-content [style*="bda86e" i] {
border-color: rgba(180,160,110,.28) !important;
}
.mw-body-content [style*="e8d39a" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content [style*="fbf1d4" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border-color: rgba(180,160,110,.28) !important;
}
/* ===== ZenithXI Batch 5: Food-category legend tables (10 Category:*_Food pages) =====
Category:Attack_Food/Accuracy_Food/etc: table bg #ffffd6, header bg #a6dbfd (already
globally hooked in Batch 2) + border-color #0000ff, body cells with border-color #ffa500
only. Header border set to the SAME gold value as the existing a6dbfd rule so declaration
order between the two doesn't matter (header cells carry both substrings). Inline
color:#FF0000 negative-stat spans are left alone -- pure red already reads fine on dark,
matching the precedent set for the weapon-skill property-color remap. */
.mw-body-content [style*="0000ff" i] {
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content [style*="ffa500" i] {
border-color: rgba(180,160,110,.28) !important;
}
.mw-body-content [style*="ffffd6" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
border-color: rgba(180,160,110,.28) !important;
}
/* ===== ZenithXI Batch 5: New Year event moogle-stall tables (~8-9 pages) =====
New_Year_2018..2024/Guide "Left/Right Moogle" tables: header bg #990e0e + border #616ff3 +
inline color:#57c669 (green, overridden to gold for header consistency), body rows use
plain bgcolor="#f5f5f5" (common grey, not hooked globally) -- anchor-scope those to tables
that also carry the distinctive #990e0e header marker, same :has() trick used for the
History-of-FFXI outer wrapper. */
.mw-body-content [style*="616ff3" i] {
border-color: rgba(180,160,110,.28) !important;
}
.mw-body-content [style*="990e0e" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
border-color: rgba(217,189,124,.30) !important;
}
.mw-body-content table:has([style*="990e0e" i]) [bgcolor*="f5f5f5" i] {
background: transparent !important;
color: #c8d0e0 !important;
}
/* ===== ZenithXI Batch 5: Myriad Arms of Balrahn relic-lore panels (~20 pages) =====
Parchment-tan prose panels (not data tables, no header row) on the index page and each
of the 20 individual relic weapon lore pages. Just needs dark-panel + readable text. */
.mw-body-content [style*="d8d6c3" i],
.mw-body-content [style*="d2cdc2" i] {
background: linear-gradient(180deg, rgba(30,40,62,.55), rgba(11,15,24,.92)) !important;
color: #c8d0e0 !important;
border-color: rgba(180,160,110,.28) !important;
}
/* ===== ZenithXI Batch 5: mechanic-page equipment-modifier table headers =====
e.g. Avatar_perpetuation_cost: distinctive header hexes #ccaaff and #C3C6DD. These pages
also use plain #f5f5f5/#eeeeff/#ffffff row backgrounds like several other legacy tables --
left alone here (too generic/common to hook without per-page anchoring, and this group's
page-sets don't fully overlap per the frequency scan, suggesting more than one source
template). Revisit with per-page anchors if this becomes a priority. */
.mw-body-content [style*="c3c6dd" i],
.mw-body-content [bgcolor*="ccaaff" i] {
background: linear-gradient(180deg, rgba(217,189,124,.14), rgba(217,189,124,.03)) !important;
color: #d9bd7c !important;
}