diff options
author | Egor Lynko <flexoid@gmail.com> | 2020-09-10 19:15:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 00:15:40 +0800 |
commit | 513c19a0fe9bbc92686ca10c1d1c793a61098219 (patch) | |
tree | 27fbdff338b6e49d70c97b0edbb2446021f05112 /assets/sass | |
parent | 708de67fd6a87ccf9b00d6626a18d135d38ca2e1 (diff) |
fix(scss): Fix code block padding with `codeFences = false` (#297)
Diffstat (limited to 'assets/sass')
-rw-r--r-- | assets/sass/_partial/_post/_code.scss | 8 |
1 files 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; } |