MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,827:
}
/* ── TOC sidebar — flat left-aligned design, NO section numbers.
Every entry, ANY level, starts on ONE left axis
an inline en-dash marker generated per Vector level class: top level
bare, children "–", grandchildren "––" — flowing straight into the
positioning. Titles wrap under themselves (the marker is its own
flex item, so wrapped lines align after it). Expand/collapse is the
▲ ▸/▾ INLINE after the heading. The CONTENTS header left-aligns with
.vector-toc {
font-family: var(--ed-font);
--toc-header-inset: 0; /* CONTENTS label sits on the
}
Line 1,923 ⟶ 1,914:
}
/* HANG-UNDER-TITLE: the
a wrapping block whose 2nd+ lines align under the TITLE (after the number).
Because the
(
of the row; grow:0 so a short title doesn't stretch (the chevron stays right
after it), shrink:1 + min-width:0 so a long title wraps. */
Line 1,941 ⟶ 1,932:
Zeroed so the li's 2×--wt-pad-y is the ONE rhythm. */
}
longer re-show it. Depth is carried by DASH markers instead: an en dash
per nesting level ("–" children, "––" grandchildren), generated as the
first flex item of the text row (the slot the number used to occupy) off
Vector's per-level li classes. Top-level entries carry no marker. */
.vector-toc
.vector-toc
.vector-toc .vector-toc-
.vector-toc .vector-toc-level-2 > .vector-toc-link .vector-toc-text::before,
.vector-toc .vector-toc-level-3 > .vector-toc-link .vector-toc-text::before,
.vector-toc .vector-toc-level-4 > .vector-toc-link .vector-toc-text::before {
flex: 0 0 auto;▼
margin-right: 0.4em;
white-space: nowrap;
letter-spacing: -0.08em; /* consecutive en dashes read as one rule */
}
▲.vector-toc .vector-toc-numb::after { content: "."; }
/* the title span is unclassed in Vector's DOM; it is the wrapping block */
.vector-toc .vector-toc-text > span:not(.vector-toc-numb) {
flex: 1 1 auto;
min-width: 0; /* allow the title to wrap inside the row */
▲.vector-toc #toc-mw-content-text .vector-toc-text::before {
▲ flex: 0 0 auto;
▲.vector-toc #toc-mw-content-text.vector-toc-list-item-active .vector-toc-text::before {
}
| |||