forked from mirrors/hugo-tufte
move the syntax highlighting theme choice to the scss file (#30)
* move the syntax highlighting theme choice to the scss file Fixes #25 * move the syntax highlighting theme choice to the scss file Fixes #25
This commit is contained in:
parent
c8bc5f6172
commit
4432cb953b
4 changed files with 9 additions and 16 deletions
assets/scss/syntax
12
assets/scss/syntax/highlight-dark.scss
Normal file
12
assets/scss/syntax/highlight-dark.scss
Normal file
|
@ -0,0 +1,12 @@
|
|||
$ht-code-bgcolor: #282a36;
|
||||
|
||||
@import "syntax-dark.scss";
|
||||
|
||||
.highlight {
|
||||
&::-webkit-scrollbar {
|
||||
background: $ht-code-bgcolor;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: scale-color($ht-code-bgcolor, $lightness: 23%, $saturation: -40%);
|
||||
}
|
||||
}
|
12
assets/scss/syntax/highlight-light.scss
Normal file
12
assets/scss/syntax/highlight-light.scss
Normal file
|
@ -0,0 +1,12 @@
|
|||
$ht-code-bgcolor: #dde2ff;
|
||||
|
||||
@import "syntax-light.scss";
|
||||
|
||||
.highlight {
|
||||
&::-webkit-scrollbar {
|
||||
background: $ht-code-bgcolor;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: scale-color($ht-code-bgcolor, $lightness: -13%, $saturation: -80%);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue