MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 1,338:
the infobox — tighter readable line + a gutter before the card */
--ed-body: 1.125rem; /* body size (18px) */
--ed-flow: 0.6rem; /* THE intra-section gap: between paragraphs, list
items, and ABOVE/BELOW tables — ONE uniform rhythm
WITHIN a section. Section BREAKS (the space before a
heading) are the larger em margin-tops on h2/h3, so
separation reads as contrast: tight inside, airy before. */
--ed-small: 0.8125rem; /* THE small size: tables, infobox, TOC, footer */
--ed-title-gap: 2.1rem; /* CALIBRATION: moves the title rule DOWN */
Line 1,415 ⟶ 1,420:
.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); margin: var(--ed-flow) 0; }
/* cells + infobox sit OUTSIDE the prose flow — kill the inherited gap so it
.mw-parser-output table p { max-width: none; }▼
doesn't pad table cells / the infobox open from inside */
.mw-parser-output table p,
/* 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,481 ⟶ 1,489:
/* the table's outer margins live on the scroll WRAPPER (the emitter wraps
every table in <div style="overflow-x:auto">):
intra-section flow — same gap above and below as paragraphs and list items,
so it no longer punches a hole in the rhythm; the scrollbar goes thin and
.mw-parser-output div[style*="overflow-x"],
.copy-table-scroll {
margin:
scrollbar-width: thin;
scrollbar-color: var(--wt-th-bg) transparent;
Line 1,531 ⟶ 1,540:
/* list rhythm: air between points, predictable nesting */
.mw-parser-output ul
.mw-parser-output
.mw-parser-output li { margin-bottom: var(--ed-flow); }
.mw-parser-output li li { margin-top: 0.3em; margin-bottom: 0.3em; }
.mw-parser-output li > ul { margin-top: 0.3em; }
Line 1,606 ⟶ 1,616:
color: var(--ed-ink) !important;
border-bottom: 1px solid var(--ed-ink) !important;
margin-top: 2.6em; /* SECTION break BEFORE h2 — the air that says "new section" */
margin-bottom:
padding-bottom: 0.3em;
}
Line 1,619 ⟶ 1,629:
full-width rule (added when h3 was 20px and blended in) is now just
clutter — h2 keeps its rule, h3 stands on size + sans weight. */
margin-top: 2.3em; /* SECTION break BEFORE h3 — bigger, so subsections separate */
margin-bottom:
}
.mw-body-content h4, .mw-body-content h5, .mw-body-content h6 {
| |||