Optimize darkmode code color

This commit is contained in:
Mimi 2020-06-06 11:41:11 +08:00
parent 420095bb6f
commit f055e389d3
2 changed files with 3 additions and 3 deletions

View File

@ -348,7 +348,7 @@ codeblock:
# See: https://github.com/highlightjs/highlight.js/tree/master/src/styles # See: https://github.com/highlightjs/highlight.js/tree/master/src/styles
theme: theme:
light: default light: default
dark: dark dark: tomorrow-night
# Add copy button on codeblock # Add copy button on codeblock
copy_button: copy_button:
enable: false enable: false

View File

@ -132,8 +132,8 @@ $table-row-hover-bg-color-dark = #363636;
// Code & Code Blocks // Code & Code Blocks
// -------------------------------------------------- // --------------------------------------------------
$code-font-family = $font-family-monospace; $code-font-family = $font-family-monospace;
$code-background = $gainsboro; $code-background = var(--body-bg-color);
$code-foreground = $black-light; $code-foreground = var(--text-color);
$highlight-background = convert(hexo-config('highlight.light.background')); $highlight-background = convert(hexo-config('highlight.light.background'));
$highlight-foreground = convert(hexo-config('highlight.light.foreground')); $highlight-foreground = convert(hexo-config('highlight.light.foreground'));