mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-14 02:31:24 +00:00
fix(ui): use direct selector for root scrollbar
- Remove descendant combinator (space) between :root and ::-webkit-scrollbar-thumb - Previous selector matched only child element scrollbars, not root element scrollbar - Now correctly applies to document.documentElement scrollbar in light mode - Drop redundant border-radius (inherits from global rule)
This commit is contained in:
@@ -188,12 +188,11 @@
|
||||
}
|
||||
|
||||
/* Scrollbar - visible on light backgrounds */
|
||||
:root[data-theme-mode="light"] ::-webkit-scrollbar-thumb {
|
||||
:root[data-theme-mode="light"]::-webkit-scrollbar-thumb {
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
:root[data-theme-mode="light"] ::-webkit-scrollbar-thumb:hover {
|
||||
:root[data-theme-mode="light"]::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user