MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary Tag: Manual revert |
No edit summary |
||
Line 1,326:
/* =================================================================
12. EDITORIAL DESIGN SYSTEM v2 ("paper & ink")
Appended LAST deliberately: later rules of equal specificity win,
so this section restyles typography / color / spacing WITHOUT
editing sections 1-11
color variables from here — a later :root wins). Delete the whole
section to revert.
v2 coherence pass: ONE sans stack for chrome+data, ONE small text
size, THREE grays + two hairlines, tables printed on the paper
(not white cards), header band + TOC blended into the canvas.
================================================================= */
Line 1,358 ⟶ 1,360:
}
/* ── Design knobs
ONE gray ramp (3 grays + 2 hairlines), ONE small size, ONE sans.
The --wt-* lines re-point section 11's table palette onto the
same warm ramp (this :root is later, so it wins the tie). ── */
:root {
--ed-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
--ed-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"
--ed-ink: #
--ed-
--ed-
--ed-
--ed-
--ed-link: #0d7680; /* interactive teal (FT's link color) */
--ed-underline: #ccc1b7; /* resting link underline tint
--ed-accent: #f07662; /* house coral — hover underline, sparing */
--ed-paper: #fbfaf7; /* page canvas (set #fff to disable the tint) */
--ed-
--ed-
/* section 11's table palette, warmed onto the same ramp */
--wt-border: #ece8e1;
--wt-rule: var(--ed-secondary);
--wt-edge: var(--ed-hairline-strong);
--wt-th-bg: #f3efe8;
--wt-th-text: var(--ed-secondary);
}
/* ── Canvas: warm paper
paints white on its own, and the TOC column ── */
body, .mw-page-container { background-color: var(--ed-paper) !important; }
.vector-header-container .mw-header,
.vector-header-container .vector-sticky-header {
background-color: var(--ed-paper) !important;
}
#vector-toc, .vector-toc, .vector-pinned-container {
background-color: transparent !important;
}
@media print { body, .mw-page-container { background-color: #fff !important; } }
/* ── ONE sans: the whole interface (header, search, tagline, buttons,
footer) and all data share the Codex stack; prose re-asserts the
serif below ── */
body { font-family: var(--ed-sans); }
/* ── Prose voice: serif, larger, warm ink ── */
Line 1,386 ⟶ 1,410:
font-size: 1.125rem; /* 18px (FT body is 18-20); Vector default is 14px */
line-height: 1.6;
color: var(--ed-
font-variant-numeric: lining-nums;
}
Line 1,394 ⟶ 1,418:
.mw-parser-output > ol,
.mw-parser-output > dl { max-width: var(--ed-measure); }
/* guards: the data voice stays sans
18px body would silently inflate section 11's 0.85em tables (and every
em-based column width) by ~29% */
table.wikitable, .infobox {
font-family: var(--ed-sans);
font-size: var(--ed-
}
/* ── Tables printed ON the paper (not white cards): surfaces go
transparent; only the sticky first column stays opaque (it must
cover scrolling content) in the paper color; hover warms ── */
table.wikitable,
table.wikitable td,
.wikitable td:first-child { background-color: var(--ed-paper); }
table.wikitable > tbody > tr:hover > td { background-color: #f2ede5; }
table.wikitable caption { color: var(--ed-ink); }
/* standfirst — the italic intro sentence (FT: sans, calm). Anchored to the
Line 1,410 ⟶ 1,444:
font-size: 0.97em;
line-height: 1.55;
color: var(--ed-
}
Line 1,429 ⟶ 1,463:
}
/* ── Title block: serif display, REGULAR weight, large
h1#firstHeading, .mw-first-heading {
font-family: var(--ed-serif);
Line 1,441 ⟶ 1,475:
margin-bottom: 0.35em;
}
/* breadcrumb under the title rule —
the infobox header): 0.75rem caps */
#contentSub .subpages {
font-family: var(--ed-sans);
font-size: 0.
font-weight: 600;
letter-spacing: 0.08em;
Line 1,454 ⟶ 1,489:
#contentSub .subpages a:visited { color: var(--ed-secondary) !important; }
/* ── Section headings: sans semibold on the house rules.
.mw-body-content h2, .mw-body-content .mw-heading2, .section-heading {
font-family: var(--ed-sans);
Line 1,479 ⟶ 1,514:
.mw-body-content h4, .mw-body-content h5, .mw-body-content h6 {
font-family: var(--ed-sans);
font-size:
font-weight: 600;
color: var(--ed-ink) !important;
}
Line 1,514 ⟶ 1,548:
}
/* ── TOC sidebar: quiet sans at the ONE small size, ink on hover/active ── */
.vector-toc { font-family: var(--ed-sans); }
.vector-toc .vector-toc-link,
.vector-toc .vector-toc-link:visited {
color: var(--ed-secondary) !important;
font-size:
text-decoration: none;
}
Line 1,525 ⟶ 1,559:
.vector-toc .vector-toc-list-item-active > .vector-toc-link { color: var(--ed-ink) !important; }
/* ── Infobox:
table.infobox (0,2,1) out-specifies the TemplateStyles sheet's
'.mw-parser-output .infobox' !important rules (0,2,0), which are
Line 1,531 ⟶ 1,565:
.mw-parser-output table.infobox {
font-family: var(--ed-sans);
font-size: var(--ed-
background-color: #fff !important;
border: 1px solid var(--ed-hairline) !important;
Line 1,541 ⟶ 1,575:
color: var(--ed-secondary) !important; /* beats inline color:inherit */
text-align: left !important;
font-size: 0.
font-weight: 600;
letter-spacing: 0.
text-transform: uppercase;
border-bottom: 1px solid var(--ed-ink);
Line 1,554 ⟶ 1,588:
}
.infobox .infobox-data { color: var(--ed-ink); padding: 0.22em 0.2em; }
▲table.wikitable caption { color: var(--ed-ink); }
/* ── Blockquotes: coral bar, serif italic (future-proofing — the emitter
Line 1,565 ⟶ 1,595:
padding: 0.2em 0 0.2em 1.2em;
margin: 1.2em 0;
color: var(--ed-
font-style: italic;
}
/* ── Footer + page-bottom cleanup: the ONE small size, legible ── */
@media screen {
.printfooter { display: none; } /* "Retrieved from ..." clutter; stays in print */
Line 1,575 ⟶ 1,605:
#footer, .mw-footer {
font-family: var(--ed-sans);
font-size:
color: var(--ed-faint);
border-top: 1px solid var(--ed-ink) !important;
| |||