MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,970:
longer re-show it. Depth is carried by TREE markers instead, generated as
the first flex item of the text row off Vector's per-level li classes:
a CSS BORDER-DRAWN squared elbow (└ shape) — vertical stub into a
the box-drawing corner └ (U+2514 — the squared "upper-half | + dash"
horizontal arm, ONE continuous 1px ink stroke by construction. Glyph
elbow) + dashes-per-depth ("└–" children, "└––" grandchildren). Top-level
attempts ("|–" pipes, U+2514 └ from a fallback font) were rejected: two
entries carry no marker. NB: └ is NOT in PT Serif — it renders from a
fonts never join their strokes. Depth = the ARM LENGTH (child short,
system fallback face; if its stroke weight ever clashes with the en
grandchild longer). Top-level entries carry no marker. */
dash, the fallback plan is a CSS border-drawn elbow. */
.vector-toc .vector-toc-level-2 > .vector-toc-link .vector-toc-text::before { content: "\2514\2013"; }
.vector-toc .vector-toc-level-3 > .vector-toc-link .vector-toc-text::before { content: "\2514\2013\2013"; }
.vector-toc .vector-toc-level-4 > .vector-toc-link .vector-toc-text::before { content: "\2514\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: "";
flex: 0 0 auto;
height: 0.55em; /* vertical stub height */
border-left: 1px solid currentColor;
border-bottom: 1px solid currentColor;
position: relative;
bottom: 0.28em; /* CALIBRATION: lifts the arm off the text
triedbaseline andonto REJECTEDthe dash axis (worse).an empty */flex
isitem perbaseline-rowaligns (doesits notbottom connectedge) across rows)*/
margin-right: 0.4em;
white-space: nowrap;
letter-spacing: -0.14em; /* pull pipe + dashes together so "|–" reads
as ONE branch glyph (a ├ shape). The pipe
is per-row (does not connect across rows)
— the continuous border-drawn guide was
tried and REJECTED (worse). */
}
.vector-toc .vector-toc-level-2 > .vector-toc-link .vector-toc-text::before { contentwidth: "\2514\2013"0.6em; }
.vector-toc .vector-toc-level-3 > .vector-toc-link .vector-toc-text::before { contentwidth: "\2514\2013\2013"1.05em; }
.vector-toc .vector-toc-level-4 > .vector-toc-link .vector-toc-text::before { contentwidth: "\2514\2013\2013\2013"1.5em; }
/* the title span is unclassed in Vector's DOM; it is the wrapping block */
.vector-toc .vector-toc-text > span:not(.vector-toc-numb) {