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. */
padding: 0.22rem44rem 0 0.22rem var(--toc-hang) !important;
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);
}
/* pullnested eachlist: NESTEDHORIZONTAL listpull ONLY (back by one hang so level-2+ numbers land on the
SAMEon left axis asthe level-1 axisthisthe isflat whatlook). makesNo thevertical layoutmargin: flat (thea lichild's spacing
from its parent is just the child li's own padding-top, so it equals the
own padding offsets its content box; this cancels it for the children) */
sibling gap automatically. !important neutralises Vector's own list margins. */
.vector-toc .vector-toc-list-item > .vector-toc-list {
margin-left: 0 0 0 calc(-1 * var(--toc-hang)) !important;
margin-top: 0.22rem; /* = the li padding-top, so a parent→child gap
(0.22 ul + 0.22 child padding) equals the 0.44rem
sibling→sibling gap. 0.1rem here left children ~2px
tight under their parent — an uneven rhythm */
margin-left: calc(-1 * var(--toc-hang));
}