MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,630:
}
/* entries:
strongly as the article; CHILD rows (level 2+) drop to the faint ink — the
the faint ink so subsections group under their parent WITHOUT any indent;▼
parent↔child contrast is now ink↔faint (the widest gap on the ramp), so
▲
Hover + active go to ink: a child darkens, a top-level row is already ink so
base → children → hover → active (later wins) — keep them in this order. */▼
its "current" cue is the weight bump on active.
CASCADE: the base is a (0,2,0) non-visited + (0,3,0) :visited PAIR; the child
rules carry their own :visited arm so they reach (0,4,0) and win for visited
child links regardless of order; hover/active are (0,3,0) !important and sit
AFTER the child block so source order hands them the tie for a hovered/active
▲ child. Keep this order: base → children → hover → active
.vector-toc .vector-toc-link,
.vector-toc .vector-toc-link:visited {
color: var(--ed-
font-size: var(--ed-small);
text-decoration: none;
}
.vector-toc .vector-toc-level-2 > .vector-toc-link,
.vector-toc .vector-toc-level-2 > .vector-toc-link:visited,
.vector-toc .vector-toc-level-3 > .vector-toc-link,
.vector-toc .vector-toc-level-
.vector-toc .vector-toc-level-4 > .vector-toc-link,
.vector-toc .vector-toc-level-4 > .vector-toc-link:visited {
color: var(--ed-faint) !important;
}
Line 1,649 ⟶ 1,658:
.vector-toc .vector-toc-list-item-active > .vector-toc-link {
color: var(--ed-ink) !important;
font-weight: 500 !important; /* the "current"
}
Line 1,693 ⟶ 1,702:
white-space: nowrap;
font-variant-numeric: tabular-nums;
color: var(--ed-
}
.vector-toc #toc-mw-content-text.vector-toc-list-item-active::before {
Line 1,706 ⟶ 1,715:
without removing it for assistive tech. */
.vector-toc .vector-toc-link,
.vector-toc .vector-toc-text { display: inline; text-indent: 0; } /* guard: keep the
li's hanging text-indent from re-activating if these wrappers ever go block */
.vector-toc .vector-toc-toggle {
position: static !important;
| |||