mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
style(frontend): apply thin theme-matched scrollbars globally
This commit is contained in:
1 parent
332c3271d2
commit
7cac8baade
2 files changed
+15
-7
No files matched your search
+14
-6
@@ -92,6 +92,14 @@
|
||||
--color-syntax-punctuation: #6b7280;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
:root:not(.dark) {
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
html {
|
||||
background-color: var(--color-background);
|
||||
min-height: calc(100% + env(safe-area-inset-top));
|
||||
@@ -477,27 +485,27 @@ input:-webkit-autofill:active {
|
||||
background-color: color-mix(in oklab, var(--color-diff-delete) 15%, transparent);
|
||||
}
|
||||
|
||||
/* Custom scrollbar styling */
|
||||
.scrollbar-thin {
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--color-border) transparent;
|
||||
}
|
||||
|
||||
.scrollbar-thin::-webkit-scrollbar {
|
||||
*::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
.scrollbar-thin::-webkit-scrollbar-track {
|
||||
*::-webkit-scrollbar-track,
|
||||
*::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.scrollbar-thin::-webkit-scrollbar-thumb {
|
||||
*::-webkit-scrollbar-thumb {
|
||||
background-color: var(--color-border);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
|
||||
*::-webkit-scrollbar-thumb:hover {
|
||||
background-color: var(--color-muted-foreground);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user