MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1,942:
line-height: 1.5; /* = the infobox / wikitable line-height */
}
/* level-2+ sits flush under level-1 (numbers aligned on one axis); flex-basis
/* nested sublists: flex-basis 100% drops the sublist onto its own row below the parent's title + chevron */
the parent's title + chevron. The TREE GUIDE is drawn here — a real
border-left spanning the whole child block unbroken (grandchild lists
nest inside and naturally add a second guide). The small padding sets
the gap between the guide and each row's dash branch. */
.vector-toc .vector-toc-list-item > .vector-toc-list {
flex: 0 0 100%;
margin: 0 !important;
border-left: 1px solid var(--text-dark);
padding-left: 0.4em !important;
}
 
Line 1,979 ⟶ 1,974:
entries carry no marker. ASCII "|" on purpose — box-drawing glyphs don't
exist in PT Serif and would render from a fallback face. */
.vector-toc .vector-toc-level-2 > .vector-toc-link .vector-toc-text::before { content: "|\2013"; }
.vector-toc .vector-toc-level-3 > .vector-toc-link .vector-toc-text::before { content: "|\2013\2013"; }
.vector-toc .vector-toc-level-4 > .vector-toc-link .vector-toc-text::before { content: "|\2013\2013\2013"; }
.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 {
content: "\2013"; /* the BRANCH: one en dash per row — the
vertical guide is a real border on the
nested list (below), so it runs unbroken
between rows (a "|" glyph cannot: line
boxes always slice it) */
flex: 0 0 auto;
margin-right: 0.4em;
white-space: nowrap;
letter-spacing: -0.14em; /* pull pipe + dashes together so "|–" reads
nestedas listONE branch glyph (below),a so itshape); runsdial unbrokenback
verticaltoward guide-0.08em isif athey realever borderoverlap on the*/
}
/* the title span is unclassed in Vector's DOM; it is the wrapping block */