From 513c19a0fe9bbc92686ca10c1d1c793a61098219 Mon Sep 17 00:00:00 2001 From: Egor Lynko Date: Thu, 10 Sep 2020 19:15:40 +0300 Subject: [PATCH] fix(scss): Fix code block padding with `codeFences = false` (#297) --- assets/sass/_partial/_post/_code.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/sass/_partial/_post/_code.scss b/assets/sass/_partial/_post/_code.scss index 50fcdd2..2bd16a1 100644 --- a/assets/sass/_partial/_post/_code.scss +++ b/assets/sass/_partial/_post/_code.scss @@ -11,6 +11,10 @@ code { color: $code-color; } +pre > code { + display: block; +} + // highlight.js figure.highlight { margin: 1em 0; @@ -129,11 +133,11 @@ figure.highlight { .hljs-formula { background: map-get($code-highlight-color, formula); } - + .hljs-emphasis { font-style: italic; } - + .hljs-strong { font-weight: bold; }