style: optimized code block font color setting
This commit is contained in:
parent
beb0089923
commit
7ae0dabaa8
|
@ -98,6 +98,9 @@
|
|||
font-weight 600
|
||||
font-size 0.9rem
|
||||
font-family "Source Code Pro", consolas, Menlo
|
||||
if (hexo-config('code_block.highlight_theme') == 'default') {
|
||||
color var(--text-color-3)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -107,6 +110,9 @@
|
|||
|
||||
i {
|
||||
font-size 0.8rem
|
||||
if (hexo-config('code_block.highlight_theme') == 'default') {
|
||||
color var(--text-color-3)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -98,6 +98,10 @@ pre {
|
|||
height 1.5rem
|
||||
color var(--highlight-foreground)
|
||||
|
||||
.language-javascript {
|
||||
color var(--highlight-foreground)
|
||||
}
|
||||
|
||||
.attr {
|
||||
color var(--highlight-foreground)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue