Skip to content

Commit

Permalink
feat: reverse scrollbar thumb color in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
KawaiiZapic committed Mar 27, 2024
1 parent d5d33f3 commit 2225d46
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions src/style/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,6 @@ body {
pointer-events: initial;
}

@media (width >= 1024px) {
body ::-webkit-scrollbar {
width: 8px;
height: 8px;
}
}

body ::-webkit-scrollbar {
width: 5px;
height: 5px;
background: 0 0;
}

body ::-webkit-scrollbar-thumb {
background: rgb(0 0 0 / 20%);
}

#matecho-app-bar {
height: 4em;
}
Expand Down Expand Up @@ -154,3 +137,30 @@ body ::-webkit-scrollbar-thumb {
transform: translateX(0);
}
}

@media (width >= 1024px) {
body ::-webkit-scrollbar {
width: 8px;
height: 8px;
}
}

body ::-webkit-scrollbar {
width: 5px;
height: 5px;
background: 0 0;
}

body ::-webkit-scrollbar-thumb {
background: rgb(0 0 0 / 20%);
}

@media (prefers-color-scheme: dark) {
.mdui-theme-auto body ::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 20%);
}
}

.mdui-theme-dark body ::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 20%);
}

0 comments on commit 2225d46

Please sign in to comment.