mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
feat: change the page vertical scrollbar styles
This change will make the vertical scrollbar styles to follow the dark and light color scheme modes. Also, this change will make the vertical scrollbar to look consistent in both, Chromium and Firefox.
This commit is contained in:
parent
e90adc4773
commit
bd0e6a08c7
@ -1,6 +1,25 @@
|
||||
html {
|
||||
font-size: 62.5%;
|
||||
overflow-y: scroll;
|
||||
|
||||
/* scrollbar styles for Firefox */
|
||||
scrollbar-width: auto;
|
||||
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
||||
/**/
|
||||
|
||||
/* scrollbar styles for Chromium */
|
||||
&::-webkit-scrollbar {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: var(--scrollbar-thumb);
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background-color: var(--scrollbar-track);
|
||||
}
|
||||
/**/
|
||||
}
|
||||
|
||||
* {
|
||||
|
Loading…
Reference in New Issue
Block a user