MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,326:
/* =================================================================
12. EDITORIAL DESIGN SYSTEM
Appended LAST deliberately: later rules of equal specificity win,
so this section restyles typography / color / spacing WITHOUT
Line 1,332:
color variables from here — a later :root wins). Delete the whole
section to revert.
v10: markers drawn at EXACT positions — each level's marker sits on
its parent's text axis (level 1 on the heading axis); shapes
bullet / triangle / en dash, optically equal sizes.
================================================================= */
Line 1,382:
--ed-small: 0.8125rem; /* THE small size: tables, infobox, TOC, footer */
--ed-title-gap: 2.1rem; /* CALIBRATION: moves the title rule DOWN */
--ed-list-indent: 1.
(rem, NOT em — an em offset would resolve
against each marker's own font-size) */
/* section 11's table palette, warmed onto the same ramp.
Line 1,526 ⟶ 1,528:
}
/* ── List geometry — ONE definition for both skins:
--ed-list-indent per level; the markers are positioned EXACTLY
below (see the ::before block). !important + the Minerva-qualified
table-cell lists keep section 11's own rule (higher specificity). ── */▼
▲ section 11's own rule (higher specificity). ── */
.mw-parser-output ul,
.mw-parser-output ol,
Line 1,546 ⟶ 1,547:
.mw-parser-output li li { margin-top: 0.3em; margin-bottom: 0.3em; }
.mw-parser-output li > ul { margin-top: 0.3em; }
/* per-level markers drawn as ::before at EXACT positions: each marker's
LEFT edge sits on its parent's text axis (level 1 on the heading
axis), because left: -indent lands on the container edge, which IS
the parent text x. Shapes: bullet / house triangle (drivers, echoes
the TOC prefix) / hairline en dash; per-level font-size +
line-height keep the three optically equal and vertically centered */
.mw-parser-output
.mw-parser-output
.mw-parser-output
content: "\2022";
position: absolute;
left: calc(-1 * var(--ed-list-indent));
color: var(--ed-faint);
font-family: var(--ed-sans);
font-size: 0.95em;
line-height: 1.68;
}
.mw-parser-output ul ul > li::before { content: "\25B8"; font-size: 0.7em; line-height: 2.29; }
.mw-parser-output ul ul ul > li::before { content: "\2013"; font-size: 0.95em; line-height: 1.68; }
/* page-reference superscripts — present everywhere, must whisper.
| |||