Skip to content

Commit

Permalink
Fix syntax highlighting line number inconsistency
Browse files Browse the repository at this point in the history
Globally enabling Rouge block line numbers in Kramdown _config.yml settings should be styled consistently with `{% highlight linenos %}` Jekyll tag.

Fixes mmistakes#1467
  • Loading branch information
mmistakes committed Jan 13, 2018
1 parent 98fceed commit 93beda1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _sass/minimal-mistakes/_syntax.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ figure.highlight {
border: 0;

/* line numbers*/
&.gutter {
&.gutter,
&.rouge-gutter {
padding-right: 1em;
width: 1em;
color: $base04;
Expand All @@ -40,7 +41,8 @@ figure.highlight {
}

/* code */
&.code {
&.code,
&.rouge-code {
padding-left: 1em;
}
}
Expand Down

0 comments on commit 93beda1

Please sign in to comment.