MediaWiki:Common.css: Difference between revisions
Appearance
Montagonist (talk | contribs) Created page with "→CSS placed here will be applied to all skins: .mw-parser-output img { max-width: 100%; height: auto; }" |
Montagonist (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS | /* ========================================================= | ||
.mw-parser-output img { max-width: 100%; height: auto; } | MONTAGUE MATTERS — HIGH-AUTHORITY DOSSIER STYLING | ||
Corrected version, 2026-11-26. Mike's CSS as pasted, | |||
with 3 fixes only. Nothing else changed. | |||
Paste-ready for MediaWiki:Common.css — publish only | |||
on Mike's go-ahead at the 10pm review. | |||
--------------------------------------------------------- | |||
FIX 1: @import was 'https://googleapis.com' (serves no | |||
CSS — no webfonts loaded at all). Now the real Google | |||
Fonts URL, Inter + JetBrains Mono. | |||
FIX 2: JetBrains Mono is now actually imported (it is | |||
used in 3 rules below). | |||
FIX 3: the Nov 15 image-overflow rule is carried over | |||
(.mw-parser-output img) — without it the relief map | |||
overflows its column again. | |||
OPEN FLAGS (his call at 10pm, not fixed here): | |||
- Links are near-black #0f172a with only an amber | |||
underline; they will read as body text. | |||
- Google Fonts phones home to Google on every page | |||
load — flag given his Google stance. Self-hosting | |||
the fonts is the alternative if he cares. | |||
========================================================= */ | |||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=JetBrains+Mono:wght@400;600&display=swap'); | |||
:root { | |||
--mm-slate-dark: #0f172a; | |||
--mm-slate-mid: #1e293b; | |||
--mm-slate-border: #334155; | |||
--mm-accent: #b45309; /* Industrial Amber */ | |||
--mm-bg-tint: #f8fafc; | |||
--mm-text-main: #0f172a; | |||
--mm-text-muted: #475569; | |||
} | |||
/* Base Typography & Sharp Geometry */ | |||
body, .mw-body { | |||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; | |||
color: var(--mm-text-main); | |||
} | |||
#content { | |||
border: 1px solid #cbd5e1; | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
} | |||
/* Headings */ | |||
.mw-body h1, .mw-body h2, .mw-body h3 { | |||
font-family: 'Inter', sans-serif; | |||
font-weight: 700; | |||
letter-spacing: -0.02em; | |||
color: var(--mm-slate-dark); | |||
border-bottom: 2px solid var(--mm-slate-dark); | |||
padding-bottom: 4px; | |||
} | |||
.mw-body h1.firstHeading { | |||
text-transform: uppercase; | |||
letter-spacing: 0.03em; | |||
border-bottom: 3px solid var(--mm-slate-dark); | |||
} | |||
/* High-Contrast Links */ | |||
.mw-body a { | |||
color: #0f172a; | |||
text-decoration: underline; | |||
text-decoration-color: var(--mm-accent); | |||
text-decoration-thickness: 1.5px; | |||
text-underline-offset: 2px; | |||
} | |||
.mw-body a:hover { | |||
color: var(--mm-accent); | |||
background-color: #fef3c7; | |||
} | |||
/* Table of Contents */ | |||
#toc, .toc { | |||
background-color: var(--mm-bg-tint); | |||
border: 1px solid var(--mm-slate-dark); | |||
border-radius: 0 !important; | |||
padding: 12px 16px; | |||
} | |||
/* Command Dossier Infobox */ | |||
.mm-dossier { | |||
float: right; | |||
clear: right; | |||
width: 310px; | |||
margin: 0 0 1.5em 1.5em; | |||
background-color: var(--mm-bg-tint); | |||
border: 2px solid var(--mm-slate-dark); | |||
font-size: 0.88rem; | |||
line-height: 1.4; | |||
} | |||
.mm-dossier-header { | |||
background-color: var(--mm-slate-dark); | |||
color: #ffffff; | |||
padding: 10px 12px; | |||
font-weight: 700; | |||
text-transform: uppercase; | |||
letter-spacing: 0.06em; | |||
font-size: 0.9rem; | |||
} | |||
.mm-dossier-sub { | |||
background-color: var(--mm-slate-mid); | |||
color: #cbd5e1; | |||
font-family: 'JetBrains Mono', monospace; | |||
font-size: 0.72rem; | |||
padding: 4px 12px; | |||
border-bottom: 2px solid var(--mm-accent); | |||
} | |||
.mm-dossier table { | |||
width: 100%; | |||
border-collapse: collapse; | |||
} | |||
.mm-dossier th { | |||
text-align: left; | |||
vertical-align: top; | |||
width: 38%; | |||
padding: 7px 10px; | |||
background-color: #e2e8f0; | |||
color: var(--mm-slate-dark); | |||
font-family: 'JetBrains Mono', monospace; | |||
font-size: 0.75rem; | |||
text-transform: uppercase; | |||
border-bottom: 1px solid #cbd5e1; | |||
} | |||
.mm-dossier td { | |||
padding: 7px 10px; | |||
color: var(--mm-text-main); | |||
border-bottom: 1px solid #cbd5e1; | |||
} | |||
/* Operational Status Tags (Inline Use) */ | |||
.mm-status-tag { | |||
display: inline-block; | |||
font-family: 'JetBrains Mono', monospace; | |||
font-size: 0.75rem; | |||
font-weight: 600; | |||
text-transform: uppercase; | |||
background-color: var(--mm-slate-dark); | |||
color: #ffffff; | |||
padding: 2px 8px; | |||
border-left: 3px solid var(--mm-accent); | |||
margin-bottom: 8px; | |||
} | |||
/* Image overflow fix, carried over from Nov 15 — do not drop. | |||
Without this, wide images (relief map) overflow their column. */ | |||
.mw-parser-output img { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
Latest revision as of 00:11, 27 November 2026
/* =========================================================
MONTAGUE MATTERS — HIGH-AUTHORITY DOSSIER STYLING
Corrected version, 2026-11-26. Mike's CSS as pasted,
with 3 fixes only. Nothing else changed.
Paste-ready for MediaWiki:Common.css — publish only
on Mike's go-ahead at the 10pm review.
---------------------------------------------------------
FIX 1: @import was 'https://googleapis.com' (serves no
CSS — no webfonts loaded at all). Now the real Google
Fonts URL, Inter + JetBrains Mono.
FIX 2: JetBrains Mono is now actually imported (it is
used in 3 rules below).
FIX 3: the Nov 15 image-overflow rule is carried over
(.mw-parser-output img) — without it the relief map
overflows its column again.
OPEN FLAGS (his call at 10pm, not fixed here):
- Links are near-black #0f172a with only an amber
underline; they will read as body text.
- Google Fonts phones home to Google on every page
load — flag given his Google stance. Self-hosting
the fonts is the alternative if he cares.
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=JetBrains+Mono:wght@400;600&display=swap');
:root {
--mm-slate-dark: #0f172a;
--mm-slate-mid: #1e293b;
--mm-slate-border: #334155;
--mm-accent: #b45309; /* Industrial Amber */
--mm-bg-tint: #f8fafc;
--mm-text-main: #0f172a;
--mm-text-muted: #475569;
}
/* Base Typography & Sharp Geometry */
body, .mw-body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
color: var(--mm-text-main);
}
#content {
border: 1px solid #cbd5e1;
border-radius: 0 !important;
box-shadow: none !important;
}
/* Headings */
.mw-body h1, .mw-body h2, .mw-body h3 {
font-family: 'Inter', sans-serif;
font-weight: 700;
letter-spacing: -0.02em;
color: var(--mm-slate-dark);
border-bottom: 2px solid var(--mm-slate-dark);
padding-bottom: 4px;
}
.mw-body h1.firstHeading {
text-transform: uppercase;
letter-spacing: 0.03em;
border-bottom: 3px solid var(--mm-slate-dark);
}
/* High-Contrast Links */
.mw-body a {
color: #0f172a;
text-decoration: underline;
text-decoration-color: var(--mm-accent);
text-decoration-thickness: 1.5px;
text-underline-offset: 2px;
}
.mw-body a:hover {
color: var(--mm-accent);
background-color: #fef3c7;
}
/* Table of Contents */
#toc, .toc {
background-color: var(--mm-bg-tint);
border: 1px solid var(--mm-slate-dark);
border-radius: 0 !important;
padding: 12px 16px;
}
/* Command Dossier Infobox */
.mm-dossier {
float: right;
clear: right;
width: 310px;
margin: 0 0 1.5em 1.5em;
background-color: var(--mm-bg-tint);
border: 2px solid var(--mm-slate-dark);
font-size: 0.88rem;
line-height: 1.4;
}
.mm-dossier-header {
background-color: var(--mm-slate-dark);
color: #ffffff;
padding: 10px 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
font-size: 0.9rem;
}
.mm-dossier-sub {
background-color: var(--mm-slate-mid);
color: #cbd5e1;
font-family: 'JetBrains Mono', monospace;
font-size: 0.72rem;
padding: 4px 12px;
border-bottom: 2px solid var(--mm-accent);
}
.mm-dossier table {
width: 100%;
border-collapse: collapse;
}
.mm-dossier th {
text-align: left;
vertical-align: top;
width: 38%;
padding: 7px 10px;
background-color: #e2e8f0;
color: var(--mm-slate-dark);
font-family: 'JetBrains Mono', monospace;
font-size: 0.75rem;
text-transform: uppercase;
border-bottom: 1px solid #cbd5e1;
}
.mm-dossier td {
padding: 7px 10px;
color: var(--mm-text-main);
border-bottom: 1px solid #cbd5e1;
}
/* Operational Status Tags (Inline Use) */
.mm-status-tag {
display: inline-block;
font-family: 'JetBrains Mono', monospace;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
background-color: var(--mm-slate-dark);
color: #ffffff;
padding: 2px 8px;
border-left: 3px solid var(--mm-accent);
margin-bottom: 8px;
}
/* Image overflow fix, carried over from Nov 15 — do not drop.
Without this, wide images (relief map) overflow their column. */
.mw-parser-output img {
max-width: 100%;
height: auto;
}