diff --git a/source/css/common/code-block/code-block.styl b/source/css/common/code-block/code-block.styl index c7c82ff..d74fa78 100644 --- a/source/css/common/code-block/code-block.styl +++ b/source/css/common/code-block/code-block.styl @@ -10,10 +10,10 @@ box-sizing border-box width 100% padding 0.3rem 0.4rem + color var(--toolbar-foreground) background var(--toolbar-background) border-top-left-radius 0.3rem border-top-right-radius 0.3rem - color var(--toolbar-foreground) &.folded { diff --git a/source/css/common/code-block/code-theme.styl b/source/css/common/code-block/code-theme.styl index 1435002..121515f 100644 --- a/source/css/common/code-block/code-theme.styl +++ b/source/css/common/code-block/code-theme.styl @@ -8,7 +8,6 @@ $dark-code-background = darken($dark-background-color-1, 10%) if (hexo-config('code_block.highlight_theme') == 'obsidian') { - $toolbar-foreground = #b5b5b5 $toolbar-background = #3a3f40 $highlight-foreground = #e8e2bb @@ -42,9 +41,8 @@ if (hexo-config('code_block.highlight_theme') == 'obsidian') { $dark-highlight-purple = darken($highlight-purple, 2%) $dark-highlight-deletion = darken($highlight-deletion, 2%) $dark-highlight-addition = darken($highlight-addition, 2%) - -} else { - +} +else { $toolbar-foreground = $text-color-3 $toolbar-background = $background-color-3 $highlight-foreground = lighten($text-color-3, 2%) diff --git a/source/css/common/code-block/highlight.styl b/source/css/common/code-block/highlight.styl index 5a0b4aa..d1b8ba3 100644 --- a/source/css/common/code-block/highlight.styl +++ b/source/css/common/code-block/highlight.styl @@ -40,8 +40,8 @@ pre { .highlight { @extend $code-block - border-bottom-left-radius 0.1rem border-bottom-right-radius 0.1rem + border-bottom-left-radius 0.1rem pre { margin 0 @@ -117,7 +117,6 @@ pre { .line { color var(--highlight-gutter-color) } - } .gist table {