mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 12:03:31 +08:00
make the scrollbar-track background-color transparent
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.
This commit is contained in:
parent
bd0e6a08c7
commit
c8aefa0fd3
@ -4,7 +4,7 @@ html {
|
|||||||
|
|
||||||
/* scrollbar styles for Firefox */
|
/* scrollbar styles for Firefox */
|
||||||
scrollbar-width: auto;
|
scrollbar-width: auto;
|
||||||
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
scrollbar-color: var(--scrollbar-thumb) transparent;
|
||||||
/**/
|
/**/
|
||||||
|
|
||||||
/* scrollbar styles for Chromium */
|
/* scrollbar styles for Chromium */
|
||||||
@ -17,7 +17,7 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar-track {
|
&::-webkit-scrollbar-track {
|
||||||
background-color: var(--scrollbar-track);
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
/**/
|
/**/
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user