mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
change chroma horizontal scrollbar styles
Again, the chroma (dark and light) horizontal scrollbar looks pretty awful in Firefox. In order to make them to look consistent in both, Chromium and Firefox, this changed has been introduced.
This commit is contained in:
parent
58e8fadafe
commit
bd6ef236ce
@ -6,7 +6,26 @@
|
||||
/* Background */
|
||||
.chroma {
|
||||
color: #f8f8f2;
|
||||
background-color: #272822
|
||||
background-color: #272822;
|
||||
|
||||
/* scrollbar styles for Firefox */
|
||||
scrollbar-width: auto;
|
||||
scrollbar-color: var(--scrollbar-thumb) #272822;
|
||||
/**/
|
||||
|
||||
/* scrollbar styles for Chromium */
|
||||
&::-webkit-scrollbar {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: var(--scrollbar-thumb);
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background-color: #272822;
|
||||
}
|
||||
/**/
|
||||
}
|
||||
|
||||
/* Other */
|
||||
@ -381,4 +400,4 @@
|
||||
.chroma .gl {}
|
||||
|
||||
/* TextWhitespace */
|
||||
.chroma .w {}
|
||||
.chroma .w {}
|
||||
|
@ -7,6 +7,25 @@
|
||||
.chroma {
|
||||
color: #272822;
|
||||
background-color: #fafafa;
|
||||
|
||||
/* scrollbar styles for Firefox */
|
||||
scrollbar-width: auto;
|
||||
scrollbar-color: var(--scrollbar-thumb) #fafafa;
|
||||
/**/
|
||||
|
||||
/* scrollbar styles for Chromium */
|
||||
&::-webkit-scrollbar {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: var(--scrollbar-thumb);
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
/**/
|
||||
}
|
||||
|
||||
/* Other */
|
||||
@ -403,4 +422,4 @@
|
||||
.chroma .gl {}
|
||||
|
||||
/* TextWhitespace */
|
||||
.chroma .w {}
|
||||
.chroma .w {}
|
||||
|
Loading…
Reference in New Issue
Block a user