MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,669:
}
.vector-toc .vector-toc-list-item {
/* ROW RHYTHM — single source of truth: ALL vertical spacing lives on
padding: 0.22rem 0 0.22rem var(--toc-hang) !important;▼
padding-TOP. padding-bottom is 0 and the nested <ul> carries no vertical
margin, so EVERY gap (sibling→sibling, parent→child, end-of-group→next
section) is exactly ONE padding-top — uniform at any nesting depth, with
nothing to drift out of sync. margin:0 neutralises any Vector li margin. */
margin: 0 !important;
text-indent: calc(-1 * var(--toc-hang)); /* first line out to the axis;
wrapped lines hang at the title.
Line 1,677 ⟶ 1,683:
font-size: var(--ed-small);
}
/*
from its parent is just the child li's own padding-top, so it equals the
sibling gap automatically. !important neutralises Vector's own list margins. */
.vector-toc .vector-toc-list-item > .vector-toc-list {
▲ margin-left: calc(-1 * var(--toc-hang));
}
| |||