MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,313:
/* Scrollbars everywhere match the wikitable scroll wrapper — thin, warm
thumb (--wt-th-bg) on a transparent track. scrollbar-width/color are
INHERITED
(wider) scrollbar-width, and a direct rule beats an inherited value —
color matched (Vector sets width there but not color, so color inherited
through while width did not). The universal !important rule below FORCES
the same thin width + warm color onto every element: !important outranks
any normal skin rule regardless of its selector specificity, so no scroll
container — named or not — can override it. */
:root, body {
scrollbar-width: thin;
scrollbar-color: var(--wt-th-bg) transparent;
}
* {
scrollbar-width: thin !important;
scrollbar-color: var(--wt-th-bg) transparent !important;
}
/* WebKit/Blink path. The standard properties above are IGNORED by Chrome for
any element a skin targets with ::-webkit-scrollbar (webkit pseudo-elements
take precedence) — that is why `* !important` above did NOT thin the TOC bar:
Vector styles the sticky TOC scroller with ::-webkit-scrollbar. So restyle
the webkit scrollbar globally to a matching thin warm bar; !important beats
any non-important skin ::-webkit-scrollbar rule regardless of its selector
specificity. Defining ANY ::-webkit-scrollbar rule switches every scrollbar
(table + window included) to this custom bar, so they all render identically:
8px, warm thumb (--wt-th-bg), transparent track. */
::-webkit-scrollbar { width: 8px !important; height: 8px !important; }
::-webkit-scrollbar-track { background: transparent !important; }
::-webkit-scrollbar-thumb {
background: var(--wt-th-bg) !important;
border-radius: 4px !important;
}
::-webkit-scrollbar-thumb:hover { background: var(--wt-rule) !important; }
::-webkit-scrollbar-corner { background: transparent !important; }
/* Minerva (mobile skin) paints its own white wrappers over body */
#mw-mf-page-center, .mw-body { background-color: var(--ed-paper) !important; }
| |||