Skip to content

Commit

Permalink
fix(scss): Fix code block padding with codeFences = false (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
flexoid committed Sep 10, 2020
1 parent 708de67 commit 513c19a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions assets/sass/_partial/_post/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ code {
color: $code-color;
}

pre > code {
display: block;
}

// highlight.js
figure.highlight {
margin: 1em 0;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 513c19a

Please sign in to comment.