Files
vue-ts-example-2025/src/styles/scss/scrollbar.scss
严浩 e50d699a2a
Some checks failed
/ playwright (push) Successful in 1m33s
/ build-and-test (push) Failing after 2m7s
CI/CD Pipeline / build-and-deploy (push) Successful in 2m16s
CI/CD Pipeline / playwright (push) Successful in 3m26s
chore: initial commit
2025-10-15 16:27:39 +08:00

25 lines
485 B
SCSS

@mixin scrollbar($size: 7px, $color: rgba(0, 0, 0, 0.5)) {
scrollbar-color: $color transparent;
scrollbar-width: thin;
&::-webkit-scrollbar-thumb {
background-color: $color;
border-radius: $size;
}
&::-webkit-scrollbar-thumb:hover {
background-color: $color;
border-radius: $size;
}
&::-webkit-scrollbar {
width: $size;
height: $size;
}
&::-webkit-scrollbar-track-piece {
background-color: rgb(0 0 0 / 0%);
border-radius: 0;
}
}