MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,720:
The li selector carries +1 specificity so it beats the geometry
block's `padding-left: 0 !important` regardless of paste order. ── */
.vector-toc { --toc-numb-gutter: 1.4rem7rem; } /* box = gutter - gap must FIT
"22." (~20px @13px tabular)
.vector-toc .vector-toc-list-item.vector-toc-level-2 { --toc-numb-gutter: 2rem; }
or the ::after dot wraps */
.vector-toc .vector-toc-list-item.vector-toc-level-2 { --toc-numb-gutter: 2rem2.3rem; }
.vector-toc .vector-toc-contents .vector-toc-list-item,
.vector-toc .vector-toc-list-item {
Line 1,734 ⟶ 1,736:
width: calc(var(--toc-numb-gutter) - 0.4rem); /* 0.4rem = number→text gap */
text-align: right; /* dots form one column; "9." pads LEFT */
white-space: nowrap; /* the dot must NEVER wrap inside the box */
font-variant-numeric: tabular-nums;
}