style: optimized code block font color setting

This commit is contained in:
XPoet 2022-11-01 22:51:23 +08:00
parent beb0089923
commit 7ae0dabaa8
2 changed files with 10 additions and 0 deletions

View File

@ -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)
}
}
}

View File

@ -98,6 +98,10 @@ pre {
height 1.5rem
color var(--highlight-foreground)
.language-javascript {
color var(--highlight-foreground)
}
.attr {
color var(--highlight-foreground)
}