Files
FixIt/assets/scss/widgets/_scrollbar.scss
T
Cell dd6d320654 refactor!: build with Dart Sass and update Vercel deployment scripts (#746)
* BREAKING CHANGE: refactor with Dart Sass (supplement to #741)

* chore: update .gitignore to include .vercel and .env*.local

* CI: add build script for Hugo site deployment on Vercel

* CI: update build script for Hugo site deployment on Vercel

* refactor: update SCSS layout styles and introduce page-style mixin

* refactor: reorganize SCSS files and improve layout structure

* refactor: rename copy button classes and update related styles
2026-05-10 23:02:54 +08:00

48 lines
1.1 KiB
SCSS

@use "core/functions" as *;
@use "core/mixins" as *;
/* Modern browsers with `scrollbar-*` support (high priority) */
@supports (scrollbar-width: auto) {
* {
scrollbar-color: fi-var(scrollbar-thumb-color) fi-var(scrollbar-track-color);
scrollbar-width: fi-var(scrollbar-width);
@include media('print') {
scrollbar-width: none;
}
}
}
/* Legacy browsers with `::-webkit-scrollbar-*` support */
::-webkit-scrollbar {
height: fi-var(scrollbar-width-legacy);
width: fi-var(scrollbar-width-legacy);
overflow: visible;
@include media('print') {
display: none;
}
}
::-webkit-scrollbar-button {
height: 0;
width: 0;
}
::-webkit-scrollbar-corner {
background-color: fi-var(scrollbar-track-color);
}
::-webkit-scrollbar-thumb {
background-color: fi-var(scrollbar-thumb-color);
&:hover {
background-color: fi-var(scrollbar-thumb-hover-color);
}
}
::-webkit-scrollbar-track {
background-color: fi-var(scrollbar-track-color);
}
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track {
background-clip: padding-box;
border: 3px solid transparent;
@include border-radius(full);
}