mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-16 05:33:41 +08:00
fix(styles): show light color scrollbar while dark mode is on
This commit is contained in:
@@ -1,7 +1,14 @@
|
|||||||
@mixin scrollbar($size: 7px, $color: rgba(0, 0, 0, 0.5)) {
|
@mixin scrollbar($size: 7px, $color: rgba(0, 0, 0, 0.5), $dark-color: rgba(255, 255, 255, 0.5)) {
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
scrollbar-color: $color transparent;
|
scrollbar-color: $color transparent;
|
||||||
|
|
||||||
|
// Dark theme override
|
||||||
|
.dark & {
|
||||||
|
// guide safari use light color scrollbar
|
||||||
|
color-scheme: dark;
|
||||||
|
scrollbar-color: $dark-color transparent;
|
||||||
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar-thumb {
|
&::-webkit-scrollbar-thumb {
|
||||||
background-color: $color;
|
background-color: $color;
|
||||||
border-radius: $size;
|
border-radius: $size;
|
||||||
|
|||||||
Reference in New Issue
Block a user