Skip to content

Commit

Permalink
Merge pull request #11 from kabeep/bugfix/bare-minimum-scrollbar
Browse files Browse the repository at this point in the history
fix: bare-minimum scrollbar not working on Chrome 121+ (#10)
  • Loading branch information
dmnsgn authored Nov 26, 2024
2 parents 2c789f9 + 17a9de7 commit efec4b2
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 @@ -64,15 +64,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 efec4b2

Please sign in to comment.