mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
refactor: add theme container & lift the dark/light class scope to root & restore scrollbar style.
This commit is contained in:
23
src/main/frontend/components/theme.css
Normal file
23
src/main/frontend/components/theme.css
Normal file
@@ -0,0 +1,23 @@
|
||||
:root {
|
||||
scrollbar-color: var(--ls-scrollbar-foreground-color) var(--ls-scrollbar-background-color) !important;
|
||||
scrollbar-width: thin !important;
|
||||
}
|
||||
|
||||
html:not(.is-mac)[data-theme=dark] {
|
||||
&::-webkit-scrollbar,
|
||||
html::-webkit-scrollbar-track-piece {
|
||||
background-color: var(--ls-scrollbar-background-color);
|
||||
border: 4px solid;
|
||||
border-color: var(--ls-scrollbar-background-color);
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: var(--ls-scrollbar-foreground-color);
|
||||
background-clip: padding-box;
|
||||
min-height: 28px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb:hover {
|
||||
background-color: var(--ls-scrollbar-thumb-hover-color);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user