From 0737fe9a7e35d54fc1035e645673bfada77fa53d Mon Sep 17 00:00:00 2001 From: PCloud Date: Fri, 26 Apr 2024 13:55:52 +0100 Subject: [PATCH] fix: syntax highlightning --- assets/css/_partial/_single/_code.scss | 13 ++----------- layouts/_default/_markup/render-codeblock.html | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/assets/css/_partial/_single/_code.scss b/assets/css/_partial/_single/_code.scss index 5cd4b2fbe..c84bdca5f 100644 --- a/assets/css/_partial/_single/_code.scss +++ b/assets/css/_partial/_single/_code.scss @@ -187,16 +187,6 @@ pre, .gl { text-decoration: underline } - - // @each $class, $color in $code-highlight-color-map { - // .#{$class} { color: $color; } - // } - - // [theme=dark] & { - // @each $class, $color in $code-highlight-color-map-dark { - // .#{$class} { color: $color; } - // } - // } } .gist { @@ -220,5 +210,6 @@ pre, pre > code > span::before { counter-increment: codeblock; content: counter(codeblock); - margin: 10px; + margin: 0 1rem; + color: var(--global-font-color); } \ No newline at end of file diff --git a/layouts/_default/_markup/render-codeblock.html b/layouts/_default/_markup/render-codeblock.html index f19c798d8..d386be8da 100644 --- a/layouts/_default/_markup/render-codeblock.html +++ b/layouts/_default/_markup/render-codeblock.html @@ -10,7 +10,7 @@ -
{{ $result.Inner }}
+
{{ $result.Inner }}