MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,074:
--wt-xl: 24em;
--wt-xxl: 39em;
/* line/text shades used by the table rules — DEFAULTS (cool). Section 12
--line-dark; keeping defaults here means §11 still renders if §12 is
deleted (the same standalone-then-theme split as before). */
--line-light: #eceef1; /* interior grid (was --wt-border) */
--line-medium: #72777d; /* frame + header-row rule (was --wt-rule) */
--text-medium: #54595d; /* table header text (was --wt-th-text)*/
--wt-th-bg: #f6f7f9; /* header fill tint (a surface, not a gray line/text) */
--wt-pad-y: 0.5em;
}
Line 1,089 ⟶ 1,091:
font-size: 0.85em;
background-color: #fff;
border: 1px solid var(--
font-variant-numeric: tabular-nums;
margin-top: 0.3em;
Line 1,105 ⟶ 1,107:
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
border: 1px solid var(--
padding: var(--wt-pad-y) 0.6em;
}
table.wikitable > * > tr > th {
background-color: var(--wt-th-bg);
color: var(--
}
table.wikitable > * > tr:first-child > th,
table.wikitable > * > tr:first-child > td { border-top: 1px solid var(--
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(--
table.wikitable > tbody > tr:hover > td { background-color: #f8f9fa; }
Line 1,165 ⟶ 1,167:
left: 0;
z-index: 1;
box-shadow: 1px 0 0 var(--
}
table.wikitable.fintable td:first-child,
Line 1,188 ⟶ 1,190:
left: var(--wt-xs);
z-index: 1;
box-shadow: 1px 0 0 var(--
background-color: #fff;
}
Line 1,218 ⟶ 1,220:
table.wikitable > tbody > tr > th,
table.wikitable > tbody > tr > td {
border: 1px solid var(--
}
}
Line 1,258 ⟶ 1,260:
}
/* ── Design knobs. THREE text shades + THREE line shades, region-based, each
with a plain light/medium/dark name.
cells, TOC, infobox) + labels/captions
LIGHT --text-light = faint annotations (page-ref superscripts,
list markers, footnote chip)
LINE: DARK --line-dark = heading underlines (h1 + h2 only) + footer
& TOC-header rules
MEDIUM --line-medium = table + infobox OUTER borders, table
header-row underline, container frames
LIGHT --line-light = inside-table grid + panel interior dividers
ONE small size, ONE sans. DARK is shared (#2b2926); text-medium/-light and
line-medium/-light are DIFFERENT hexes (readable label greys vs thin
hairlines). h3 has NO underline (bold text only). ── */
:root {
--ed-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
--ed-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Inter", Helvetica, Arial, sans-serif; /* = Vector/Codex chrome stack */
--
--
--
--
--
--line-light: #e7e2db; /* LIGHT line: inside-table grid + panel interior dividers */
--ed-link: #0d7680; /* interactive teal: links, focus, send */
--ed-underline: #ccc1b7; /* resting link underline tint */
Line 1,290 ⟶ 1,304:
resolve against each marker's own font-size. */
/*
ramps (also consumed by the scrollbar thumb). The table line/text greys
now live in the --line-*/--text-* tokens above: warm finals that override
the §11 cool defaults. */
--wt-th-bg: #f3efe8;
}
Line 1,345 ⟶ 1,356:
border-radius: 4px !important;
}
::-webkit-scrollbar-thumb:hover { background: var(--
::-webkit-scrollbar-corner { background: transparent !important; }
/* Minerva (mobile skin) paints its own white wrappers over body */
Line 1,365 ⟶ 1,376:
/* ── Mobile (Minerva) keeps ONE light line tone in tables — every
structural table line consumes --
simplifies frame, header rule, and side rails at once ── */
.skin-minerva { --
/* ── ONE sans: the whole interface (header, search, tagline, buttons,
Line 1,388 ⟶ 1,399:
font-size: var(--ed-body);
line-height: 1.6;
color: var(--
font-variant-numeric: lining-nums;
}
Line 1,405 ⟶ 1,416:
font-family: var(--ed-sans);
font-size: var(--ed-small);
color: var(--text-medium); /* data regions render MEDIUM (table cells, infobox labels + values) */
}
Line 1,411 ⟶ 1,423:
in a FINTABLE only the sticky first column stays opaque (it
must cover scrolling content) in the paper color; hover warms.
2. Full frame in --
border on the last-column cells. On a NEUTRAL table the LEFT
rail is a plain table border (nothing is sticky); on a
Line 1,444 ⟶ 1,456:
table.wikitable:has(.col, .col-wide) td:first-child {
border-left: none;
box-shadow: inset 1px 0 0 var(--
1px 0 0 var(--
}
/* LEFT + RIGHT frame edges drawn on the CELLS in --
top/bottom edges (section 11). The left edge MUST be on the first cell, not
only the table: with border-collapse a cell border outranks the table border,
so the first column's --
left edge and render it lighter than the other three sides. Fintable overrides
first-child border-left → none + box-shadow rail (higher specificity, above). */
.wikitable th:first-child,
.wikitable td:first-child { border-left: 1px solid var(--
.wikitable th:last-child,
.wikitable td:last-child { border-right: 1px solid var(--
/* row labels MEET the bullets: the first column's text starts at the SAME indent
Line 1,465 ⟶ 1,477:
.wikitable td:first-child { padding-left: var(--ed-list-indent); }
table.wikitable { margin: 0; border-left: 1px solid var(--
table.wikitable.fintable,
table.wikitable:has(.col, .col-wide) { border-left: none; }
Line 1,489 ⟶ 1,501:
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--
text-align: left;
padding-bottom: 0.7em;
Line 1,502 ⟶ 1,514:
font-size: 0.97em;
line-height: 1.55;
color: var(--
}
Line 1,537 ⟶ 1,549:
position: absolute;
left: calc(-1 * var(--ed-list-indent));
color: var(--
font-family: var(--ed-sans);
font-size: 0.95em;
Line 1,552 ⟶ 1,564:
line-height: 0;
font-family: var(--ed-sans);
color: var(--
}
Line 1,563 ⟶ 1,575:
font-weight: 400;
letter-spacing: -0.01em;
color: var(--
border-bottom: 2px solid var(--
margin-top: var(--ed-title-gap) !important;
padding-bottom: 0.3em;
Line 1,576 ⟶ 1,588:
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--
margin-bottom: 1.4em;
}
#contentSub .subpages a,
#contentSub .subpages a:visited { color: var(--
/* ── Section headings: sans semibold on the house rules. Scoped to
Line 1,593 ⟶ 1,605:
font-weight: 600;
letter-spacing: -0.005em;
color: var(--
border-bottom: 1px solid var(--
margin-top: var(--ed-heading-gap); /* same space before h2 and h3 */
margin-bottom: 0.7em;
Line 1,604 ⟶ 1,616:
font-size: 1.5rem; /* 24px */
font-weight: 600;
color: var(--
/* NO underline — h3 is bold sans text only (dark heading rules are h1 + h2) */
margin-top: var(--ed-heading-gap); /* doubled vs the old 1.8em; same as h2 */
margin-bottom: 0.6em;
}
.mw-body-content h4, .mw-body-content h5, .mw-body-content h6 {
Line 1,616 ⟶ 1,625:
font-size: 1rem;
font-weight: 600;
color: var(--
}
/* the inner spans are pinned #202122 !important by old skin CSS — make
Line 1,644 ⟶ 1,653:
a.mw-ui-button, a.mw-ui-button:visited { color: #fff !important; }
.mw-editsection, .mw-editsection a, .mw-editsection a:visited {
color: var(--
text-decoration: none;
opacity: 0.7;
Line 1,691 ⟶ 1,700:
rule only), inset onto the number axis */
.vector-toc .vector-pinnable-header {
border-bottom: 1px solid var(--
padding-top: 0.35rem;
padding-bottom: 0.95rem;
Line 1,703 ⟶ 1,712:
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--
margin-left: 0;
}
/* entries:
colour. The ONLY emphasis is the current section: active = dark + bold, and
hover darkens to dark as pointer feedback.
(0,3,0) !important and sit AFTER the
▲ CASCADE: the base is a (0,2,0) non-visited + (0,3,0) :visited PAIR; the child
▲ AFTER the child block so source order hands them the tie for a hovered/active
▲ child. Keep this order: base → children → hover → active. */
.vector-toc .vector-toc-link,
.vector-toc .vector-toc-link:visited {
color: var(--
font-size: var(--ed-small);
text-decoration: none;
}
.vector-toc .vector-toc-
.vector-toc .vector-toc-list-item-active > .vector-toc-link {
color: var(--
font-weight: 500 !important; /* the "current" cue (
}
Line 1,800 ⟶ 1,797:
white-space: nowrap;
font-variant-numeric: tabular-nums;
color: var(--
}
.vector-toc #toc-mw-content-text.vector-toc-list-item-active .vector-toc-text::before {
Line 1,848 ⟶ 1,845:
content: "▸"; /* collapsed — the house triangle */
font-size: 0.65rem;
color: var(--
}
.vector-toc .vector-toc-list-item-expanded > .vector-toc-toggle::before {
content: "▾"; /* expanded */
}
.vector-toc .vector-toc-toggle:hover::before { color: var(--
/* ── Infobox: the page's ONE white card, in the data voice; its width
Line 1,867 ⟶ 1,864:
font-size: var(--ed-small);
background-color: #fff !important;
border: 1px solid var(--
padding: 0.55em 0.9em 0.75em;
line-height: 1.5;
Line 1,873 ⟶ 1,870:
.infobox .infobox-above {
background-color: #fff !important; /* beats the template's inline #cee0f2 */
color: var(--
text-align: left !important;
font-size: 0.75rem; /* the shared eyebrow size */
Line 1,879 ⟶ 1,876:
letter-spacing: 0.08em;
text-transform: uppercase;
border-bottom: 1px solid var(--
padding: 0.2em 0.2em 0.55em;
}
.infobox .infobox-label {
color: var(--
font-weight: 400;
padding: 0.22em 0.8em 0.22em 0.2em;
}
.infobox .infobox-data { color: var(--
/* ── Blockquotes: coral bar, serif italic (future-proofing — the emitter
Line 1,902 ⟶ 1,899:
left edge (a bar and a dot share no geometric
edge). Dial to 1px if it ever overshoots */
color: var(--
font-style: italic;
}
Line 1,915 ⟶ 1,912:
#footer, .mw-footer, .minerva-footer {
font-family: var(--ed-sans);
color: var(--
border-top: 1px solid var(--
}
#footer li, .mw-footer li { font-size: var(--ed-small); }
#footer a, #footer a:visited,
.mw-footer a, .mw-footer a:visited { color: var(--
/* ── AI assistant panel on the theme: warm card, serif answers,
teal send button (later !important wins the ties vs section 8) ── */
.ext-aiassistant-panel { border: 1px solid var(--
/* ONE sans for the whole panel UI (the extension ships its own stack);
the assistant-message serif rule below this still wins for answers */
Line 1,931 ⟶ 1,928:
.ext-aiassistant-panel textarea,
.ext-aiassistant-panel button { font-family: var(--ed-sans) !important; }
.ext-aiassistant-header { border-bottom: 1px solid var(--
.ext-aiassistant-message-user .ext-aiassistant-message__content {
background-color: var(--
}
.ext-aiassistant-message-assistant {
font-family: var(--ed-serif) !important;
color: var(--
}
.ext-aiassistant-footer {
border-top: 1px solid var(--
background-color: var(--ed-paper) !important;
}
Line 1,965 ⟶ 1,962:
}
.ext-aiassistant-prompt-composer__send:disabled {
background-color: var(--
border-color: var(--
}
.ext-aiassistant-panel .cdx-button--weight-quiet:not(.cdx-button--icon-only)::before {
Line 1,992 ⟶ 1,989:
font-size: 0.7em;
vertical-align: super;
color: var(--
text-decoration: underline dotted;
text-underline-offset: 2px;
Line 2,038 ⟶ 2,035:
padding: 0.6em 0.8em;
background: #fff;
color: var(--
border: 1px solid var(--
border-left: 3px solid var(--ed-accent);
border-radius: 4px;
Line 2,059 ⟶ 2,056:
h1#firstHeading, .mw-first-heading { font-size: 1.7rem; }
.mw-body-content h2, .mw-body-content .mw-heading2 { font-size: 1.22rem; }
.ext-aiassistant-prompt-composer { border-bottom: 1px solid var(--
}
Line 2,073 ⟶ 2,070:
white-space: nowrap;
background: var(--wt-th-bg);
color: var(--
}
.rt-status-confirmed { background: #e6f3ea; color: #137333; }
Line 2,086 ⟶ 2,083:
line-height: 1;
padding: 5px 12px;
border: 1px solid var(--
border-radius: 5px;
background: #fff;
color: var(--
cursor: pointer;
}
.rt-btn:hover { background: var(--wt-th-bg); border-color: var(--
.rt-btn:active { transform: translateY(0.5px); }
.rt-btn.is-active.rt-btn--confirm { background: #137333; border-color: #137333; color: #fff; }
| |||