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
horizontal arm, ONE continuous 1px ink stroke by construction. Glyph
attempts ("|–" pipes, U+2514 └ from a fallback font) were rejected: two
fonts never join their strokes. Depth = the ARM LENGTH (child short,
grandchild longer). Top-level entries carry no marker. */
.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
margin-right: 0.4em;
▲ is per-row (does not connect across rows)
▲ tried and REJECTED (worse). */
}
▲.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 {
/* the title span is unclassed in Vector's DOM; it is the wrapping block */
.vector-toc .vector-toc-text > span:not(.vector-toc-numb) {
| |||