MediaWiki:Common.css: Difference between revisions
Appearance
ArtisanAdmin (talk | contribs) Navy and gold theme (2026-10-19) |
ArtisanAdmin (talk | contribs) Navy and gold theme (2026-10-19) |
||
| Line 216: | Line 216: | ||
.mw-body-content table.wikitable { display: block; overflow-x: auto; } | .mw-body-content table.wikitable { display: block; overflow-x: auto; } | ||
} | } | ||
/* The wiki is always navy/gold, so the Light/Dark/Automatic colour picker would do nothing: hide it. */ | |||
#skin-client-prefs-skin-theme { display: none !important; } | |||
Latest revision as of 15:53, 19 October 2026
/* ==========================================================================
Project Artisan wiki theme - navy and gold, matches the in-game windows.
Applies in every colour mode (the wiki is always dark/navy on purpose).
Backup of the pre-theme state: none (this page did not exist before 2026-10-19).
To undo: blank this page (MediaWiki:Common.css) and restore the old Main Page from its history.
========================================================================== */
/* ---- Palette: override Vector 2022's design tokens in all three modes ---- */
:root,
:root.skin-theme-clientpref-day,
:root.skin-theme-clientpref-night,
:root.skin-theme-clientpref-os {
color-scheme: dark !important;
--pa-bg: #0a1220;
--pa-bg-2: #0e1a2e;
--pa-panel: #12213d;
--pa-panel-2: #172a4b;
--pa-line: #2a3d63;
--pa-gold: #d9c28a;
--pa-gold-hi: #f3e6bd;
--pa-gold-lo: #a38c4f;
--pa-text: #e8e4d6;
--pa-muted: #9aa3b8;
--background-color-base: #0e1a2e !important;
--background-color-base-fixed: #0e1a2e !important;
--background-color-neutral: #12213d !important;
--background-color-neutral-subtle: #0a1220 !important;
--background-color-interactive: #12213d !important;
--background-color-interactive-subtle: #0e1a2e !important;
--background-color-quiet--hover: rgba(217, 194, 138, 0.10) !important;
--background-color-quiet--active: rgba(217, 194, 138, 0.18) !important;
--background-color-progressive-subtle: rgba(217, 194, 138, 0.12) !important;
--background-color-error-subtle: #3a1a1f !important;
--color-base: #e8e4d6 !important;
--color-base--hover: #f3e6bd !important;
--color-emphasized: #f3e6bd !important;
--color-subtle: #9aa3b8 !important;
--color-placeholder: #7d879e !important;
--color-progressive: #e6cf8f !important;
--color-progressive--hover: #f8eec9 !important;
--color-progressive--active: #fff6d6 !important;
--color-visited: #b9a574 !important;
--color-destructive: #e8837a !important;
--color-link-red: #e8837a !important;
--color-link-red--hover: #ffa79f !important;
--color-link-red--active: #ffa79f !important;
--border-color-base: #2a3d63 !important;
--border-color-subtle: #1f2f4e !important;
--border-color-interactive: #4a5f8c !important;
--border-color-progressive: #d9c28a !important;
--box-shadow-color-progressive--focus: #d9c28a !important;
}
html, body { background: var(--pa-bg) !important; color: var(--pa-text); }
body { background-image: radial-gradient(1200px 500px at 50% -120px, rgba(217, 194, 138, 0.10), rgba(10, 18, 32, 0) 70%); background-repeat: no-repeat; }
/* Page body panel */
.mw-body, .vector-body, .vector-page-titlebar, .vector-page-toolbar {
background: transparent !important;
}
.mw-page-container-inner { background: transparent; }
.mw-body {
border: 1px solid var(--pa-line) !important;
border-radius: 10px;
background: var(--pa-bg-2) !important;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
padding: 1.2em 1.6em 1.6em;
}
/* Headings: gold with a fading rule */
.mw-body h1, .mw-body h2, .mw-body-content h1, .mw-body-content h2 {
font-family: 'Segoe UI', Tahoma, Georgia, serif;
color: var(--pa-gold-hi) !important;
border-bottom: none !important;
letter-spacing: 0.02em;
}
.mw-body-content h2 {
padding-bottom: 0.25em;
background: linear-gradient(90deg, var(--pa-gold), rgba(217, 194, 138, 0)) bottom / 100% 2px no-repeat;
margin-top: 1.6em;
}
.mw-body-content h3, .mw-body-content h4 { color: var(--pa-gold) !important; }
.firstHeading, .mw-page-title-main { color: var(--pa-gold-hi) !important; }
/* Links */
a { color: var(--color-progressive); }
a:visited { color: var(--color-visited); }
a.new, a.new:visited { color: var(--color-destructive); }
a.external { color: #9ec1ff; }
/* Tables */
.wikitable {
background: var(--pa-panel) !important;
color: var(--pa-text) !important;
border: 1px solid var(--pa-line) !important;
border-radius: 8px;
border-collapse: separate !important;
border-spacing: 0;
overflow: hidden;
}
.wikitable > * > tr > th {
background: linear-gradient(180deg, #1f3560, #172a4b) !important;
color: var(--pa-gold-hi) !important;
border-color: var(--pa-line) !important;
text-align: left;
}
.wikitable > * > tr > td { border-color: var(--pa-line) !important; background: transparent !important; }
.wikitable > * > tr:nth-child(even) > td { background: rgba(255, 255, 255, 0.025) !important; }
.wikitable > * > tr:hover > td { background: rgba(217, 194, 138, 0.07) !important; }
/* Code, pre, TOC, notices */
code, .mw-code, pre {
background: #0a1424 !important;
color: #f3e6bd !important;
border: 1px solid var(--pa-line) !important;
border-radius: 5px;
}
code { padding: 0.05em 0.4em; }
.toc, .mw-warning, .vector-toc { color: var(--pa-text); }
blockquote { border-left: 4px solid var(--pa-gold); background: rgba(217, 194, 138, 0.06); padding: 0.4em 1em; }
hr { border-color: var(--pa-line); }
/* Header, tabs, sidebar, search */
.vector-header-container, .vector-sticky-header { background: var(--pa-bg) !important; border-bottom: 1px solid var(--pa-line); }
.vector-menu-tabs li a, .vector-menu-tabs .selected a { color: var(--pa-gold) !important; }
.vector-menu-tabs .selected a, .vector-menu-tabs li.selected a { color: var(--pa-gold-hi) !important; font-weight: 600; }
.vector-menu-heading, #p-navigation .vector-menu-heading { color: var(--pa-gold) !important; }
.vector-main-menu, .vector-toc { background: transparent; }
.cdx-text-input__input, .cdx-text-input { background: var(--pa-panel) !important; color: var(--pa-text) !important; border-color: var(--pa-line) !important; }
.cdx-button { background-color: var(--pa-panel-2); color: var(--pa-gold-hi); border-color: var(--pa-line); }
.mw-footer, #footer, .mw-footer-container { color: var(--pa-muted); }
.mw-footer a { color: var(--pa-gold) !important; }
#footer-poweredbyico { display: none; }
img { border-radius: 4px; }
.mw-body-content .thumbinner { background: var(--pa-panel) !important; border-color: var(--pa-line) !important; }
/* ==========================================================================
Main Page layout
========================================================================== */
.page-Main_Page .firstHeading,
.page-Main_Page .vector-page-titlebar,
.page-Main_Page #siteSub,
.page-Main_Page .mw-indicators { display: none !important; }
.page-Main_Page .mw-body { padding-top: 0.8em; }
.pa-hero {
position: relative;
text-align: center;
padding: 1.2em 1em 1em;
margin-bottom: 1.2em;
border-radius: 10px;
background: linear-gradient(160deg, #1c3358 0%, #12213d 45%, #0a1120 100%);
border: 1px solid var(--pa-line);
overflow: hidden;
}
.pa-hero::before {
content: "";
position: absolute; left: 0; right: 0; top: 0; height: 3px;
background: linear-gradient(90deg, rgba(217,194,138,0), var(--pa-gold), rgba(217,194,138,0));
}
.pa-hero img { max-width: 100%; height: auto; border-radius: 8px; }
.pa-tagline { font-size: 1.25em; color: var(--pa-gold-hi); margin: 0.7em 0 0.2em; letter-spacing: 0.04em; }
.pa-sub { color: var(--pa-muted); margin-bottom: 0.9em; }
.pa-buttons { display: flex; flex-wrap: wrap; gap: 0.6em; justify-content: center; margin-top: 0.6em; }
.pa-buttons a, .pa-buttons a:visited {
display: inline-block;
padding: 0.55em 1.3em;
border-radius: 7px;
font-weight: 700;
letter-spacing: 0.04em;
background: linear-gradient(135deg, #f1e2ae 0%, #d9c28a 45%, #a38c4f 100%);
color: #1a1608 !important;
text-decoration: none !important;
}
.pa-buttons a:hover { filter: brightness(1.07); }
.pa-buttons .pa-ghost a, .pa-buttons .pa-ghost a:visited {
background: rgba(255, 255, 255, 0.05);
color: var(--pa-gold-hi) !important;
border: 1px solid rgba(217, 194, 138, 0.45);
}
.pa-section-title {
margin: 1.6em 0 0.6em;
font-size: 0.95em; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
color: var(--pa-gold);
}
.pa-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 0.9em;
}
.pa-card {
position: relative;
padding: 0.9em 1.1em 1em;
background: linear-gradient(180deg, var(--pa-panel-2), var(--pa-panel));
border: 1px solid var(--pa-line);
border-radius: 9px;
transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.pa-card:hover { transform: translateY(-2px); border-color: var(--pa-gold); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.pa-card .pa-card-title { font-size: 1.08em; font-weight: 700; }
.pa-card .pa-card-title a { color: var(--pa-gold-hi) !important; text-decoration: none; }
.pa-card .pa-card-title a::after { content: ""; position: absolute; inset: 0; }
.pa-card .pa-card-text { margin-top: 0.3em; color: var(--pa-muted); font-size: 0.93em; line-height: 1.45; }
.pa-badge {
display: inline-block; font-size: 0.7em; letter-spacing: 0.12em; text-transform: uppercase;
padding: 0.05em 0.55em; margin-left: 0.5em; border-radius: 99px; vertical-align: middle;
background: rgba(217, 194, 138, 0.16); color: var(--pa-gold-hi); border: 1px solid rgba(217, 194, 138, 0.4);
}
/* Phones */
@media (max-width: 720px) {
.mw-body { padding: 0.8em 0.9em 1.2em; border-radius: 0; border-left: 0 !important; border-right: 0 !important; }
.pa-grid { grid-template-columns: 1fr; }
.mw-body-content table.wikitable { display: block; overflow-x: auto; }
}
/* The wiki is always navy/gold, so the Light/Dark/Automatic colour picker would do nothing: hide it. */
#skin-client-prefs-skin-theme { display: none !important; }