mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
feat: apply custom scrollbar style to all elements
This commit is contained in:
parent
a9ab6b58e8
commit
37547c229e
@ -1,25 +1,6 @@
|
|||||||
html {
|
html {
|
||||||
font-size: 62.5%;
|
font-size: 62.5%;
|
||||||
overflow-y: scroll;
|
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;
|
|
||||||
}
|
|
||||||
/**/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@ -34,3 +15,24 @@ body {
|
|||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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;
|
||||||
|
}
|
||||||
|
/**/
|
||||||
|
@ -52,24 +52,6 @@
|
|||||||
margin-bottom: var(--section-separation);
|
margin-bottom: var(--section-separation);
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
|
||||||
/* 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;
|
|
||||||
}
|
|
||||||
/**/
|
|
||||||
|
|
||||||
.article-list--tile {
|
.article-list--tile {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
|
Loading…
Reference in New Issue
Block a user