Skip to content

Commit

Permalink
fix: bare-minimum scrollbar not working on Chrome 121+ (dmnsgn#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeep committed Nov 18, 2024
1 parent e02eabb commit 9dd2b9a
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,33 @@ img {
max-width: 100%;
}

*::-webkit-scrollbar {
width: 8px;
height: 8px;
}
*::-webkit-scrollbar-track {
background: none;
@supports not selector(::-webkit-scrollbar) {
* {
scrollbar-width: thin;
scrollbar-color: var(--color-accent) transparent;
}
}
*::-webkit-scrollbar-thumb {
border: none;

@supports selector(::-webkit-scrollbar) {
*::-webkit-scrollbar {
width: 8px;
height: 8px;
}
*::-webkit-scrollbar-track {
background: none;
margin: 4px;
}
*::-webkit-scrollbar-thumb {
border: none;
}
*::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:active {
background-color: var(--md-sys-color-secondary);
}
* {
scrollbar-width: unset;
scrollbar-color: unset;
}
}

.container-main {
Expand Down

0 comments on commit 9dd2b9a

Please sign in to comment.