mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-30 04:23:30 +08:00
The body has this transition: 'transition: background-color 0.3s ease 0s'. Making the scrollbar-track background-color transparent allow us to appreciate that transition in the scrollbar-track when switching the background-color.
37 lines
708 B
SCSS
37 lines
708 B
SCSS
html {
|
|
font-size: 62.5%;
|
|
overflow-y: scroll;
|
|
|
|
/* scrollbar styles for Firefox */
|
|
scrollbar-width: auto;
|
|
scrollbar-color: var(--scrollbar-thumb) transparent;
|
|
/**/
|
|
|
|
/* scrollbar styles for Chromium */
|
|
&::-webkit-scrollbar {
|
|
height: auto;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background-color: var(--scrollbar-thumb);
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
background-color: transparent;
|
|
}
|
|
/**/
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
background: var(--body-background);
|
|
margin: 0;
|
|
font-family: var(--base-font-family);
|
|
font-size: 1.6rem;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|