MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 1,094:
margin-bottom: 2em;
}
table.wikitable td { background-color:
table.wikitable caption {
text-align: left;
Line 1,114:
table.wikitable > * > tr:first-child > th,
table.wikitable > * > tr:first-child > td { border-top: 1px solid var(--wt-rule); }
table.wikitable > * > tr:has(> th):has(+ tr > td) > th { border-bottom: 1px solid var(--
table.wikitable > * > tr:last-child > td,
table.wikitable > * > tr:last-child > th { border-bottom: 1px solid var(--wt-rule); }
Line 1,218:
================================================================= */
/* ── Webfont: Source Serif 4 (variable; ONE file covers 400-600).
@font-face is safe anywhere in ResourceLoader output — never use
@import here (gadget CSS is concatenated BEFORE Common.css and
breaks it, per T165040). If the font fails to load, Georgia
takes over seamlessly. Production hardening: copy the two woff2
@font-face {
font-family: "Source Serif 4";
font-style: normal;
font-weight: 400 600;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourceserif4/v14/vEFF2_tTDB4M7-auWDN0ahZJW3IX2ih5nk3AucvUHf6kDXr4.woff2) format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Source Serif 4";
font-style: italic;
font-weight: 400 600;
font-display: swap;
src: url(https://fonts.gstatic.com/s/sourceserif4/v14/vEF02_tTDB4M7-auWDN0ahZJW1ge6NmXpVAHV83Bfb_US2D2QYxoUKIkn98pRl9tDMQC.woff2) format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ── Design knobs.
Line 1,242 ⟶ 1,246:
same warm ramp (this :root is later, so it wins the tie). ── */
:root {
--ed-serif: "
--ed-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Inter", Helvetica, Arial, sans-serif; /* = Vector/Codex chrome stack */
--ed-ink: #2b2926; /* text, headings, strong rules */
--ed-secondary: #66605c; /* labels, standfirst, TOC, footer links */
Line 1,256 ⟶ 1,257:
--ed-underline: #ccc1b7; /* resting link underline tint */
--ed-accent: #f07662; /* house coral — hover underline, sparing */
--ed-paper: #
--ed-infobox-w: 18.5rem; /* infobox total width (border-box) */
--ed-measure: calc((100% - var(--ed-infobox-w)) * 0.9); /* prose stops ~10% short of
the infobox — tighter readable line + a gutter before the card */
--ed-body:
--ed-small: 0.8125rem; /* THE small size: tables, infobox, TOC, footer */
--ed-title-gap: 2.1rem; /* CALIBRATION: moves the title rule DOWN */
Line 1,273 ⟶ 1,268:
against each marker's own font-size) */
/* section 11's table palette,
--wt-rule is the
h2 rules so tables sit below section structure in the hierarchy */
--wt-border: #ece8e1;
--wt-rule: #b3aca3;
--wt-
--wt-th-bg: #f3efe8;
--wt-
}
Line 1,347 ⟶ 1,339:
.mw-parser-output > dl { max-width: var(--ed-measure); }
/* nested paragraphs too (hand-written page structures); table cells released */
.mw-parser-output p { max-width: var(--ed-measure)
▲.mw-parser-output .infobox p { max-width: none; margin: 0; }
/* guards: the data voice stays sans at the ONE small size — otherwise the
serif body size would silently scale section 11's 0.85em tables (and
Line 1,361 ⟶ 1,350:
/* ── The table BLOCK ──
1. Printed ON the paper (not white cards): surfaces transparent;
in a FINTABLE only the sticky first column stays opaque
must cover scrolling content) in the paper color; hover warms.
2. Full frame in --wt-rule. Sides: the RIGHT rail is a plain
border on the last-column cells. On a NEUTRAL table the LEFT
Line 1,379 ⟶ 1,368:
table.wikitable,
table.wikitable td,
table.wikitable caption { background-color:
table.wikitable > tbody > tr:hover > td { background-color: #f2ede5; }
/* the frozen first column carries its own paper bg (below) at higher
Line 1,390 ⟶ 1,379:
table.wikitable.fintable td:first-child,
table.wikitable:has(.col, .col-wide) td:first-child {
background-color:
}
table.wikitable.fintable th:first-child,
Line 1,416 ⟶ 1,405:
/* the table's outer margins live on the scroll WRAPPER (the emitter wraps
every table in <div style="overflow-x:auto">):
before the eyebrow caption + separates consecutive tables; the scrollbar
goes thin and quiet in the header-row tint */▼
▲ quiet in the header-row tint */
.mw-parser-output div[style*="overflow-x"],
.copy-table-scroll {
margin:
scrollbar-width: thin;
scrollbar-color: var(--wt-th-bg) transparent;
Line 1,467 ⟶ 1,455:
/* list rhythm: air between points, predictable nesting */
.mw-parser-output ul
.mw-parser-output
.mw-parser-output li li { margin-top: 0.3em; margin-bottom: 0.3em; }
.mw-parser-output li > ul { margin-top: 0.3em; }
Line 1,537 ⟶ 1,524:
.skin-minerva .content h2 {
font-family: var(--ed-sans);
font-size: 1.
line-height: 1.25;
font-weight: 600;
letter-spacing: -0.005em;
color: var(--ed-ink) !important;
border-bottom: 1px solid var(--ed-ink) !important;
margin-top: 2.2em;
margin-bottom:
padding-bottom: 0.3em;
}
Line 1,550 ⟶ 1,537:
.skin-minerva .content h3 {
font-family: var(--ed-sans);
font-size: 1.
font-weight: 600;
color: var(--ed-ink) !important;
/* a FULL-WIDTH rule like h2 — but in the TABLE-FRAME tone (--wt-rule) rather
border-bottom: 1px solid var(--wt-rule);
margin-top: 1.8em;
margin-bottom:
padding-bottom: 0.25em;
}
.mw-body-content h4, .mw-body-content h5, .mw-body-content h6 {
| |||