Skip to content

Commit 981bc01

Browse files
committed
style internal scrollbars uniformly
1 parent 89ba9c0 commit 981bc01

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

src/css/base.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,18 @@ table {
8484
::placeholder {
8585
opacity: 0.5;
8686
}
87+
88+
@supports (scrollbar-width: thin) {
89+
body * {
90+
scrollbar-width: thin;
91+
scrollbar-color: var(--scrollbar-thumb-color) transparent;
92+
}
93+
}
94+
95+
body ::-webkit-scrollbar {
96+
width: 0.25rem;
97+
}
98+
99+
body ::-webkit-scrollbar-thumb {
100+
background-color: var(--scrollbar-thumb-color);
101+
}

src/css/nav.css

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,6 @@
9898
left: 0;
9999
}
100100

101-
.nav-panel-menu,
102-
.nav-panel-explore .components {
103-
scrollbar-width: thin;
104-
scrollbar-color: var(--scrollbar-thumb-color) transparent;
105-
}
106-
107-
.nav-panel-menu::-webkit-scrollbar,
108-
.nav-panel-explore .components::-webkit-scrollbar {
109-
width: 0.25rem;
110-
}
111-
112-
.nav-panel-menu::-webkit-scrollbar-thumb,
113-
.nav-panel-explore .components::-webkit-scrollbar-thumb {
114-
background-color: var(--scrollbar-thumb-color);
115-
}
116-
117101
.nav-menu {
118102
flex-grow: 1;
119103
min-height: 0;

0 commit comments

Comments
 (0)