~xdavidwu/xdavidwu.link

d98beaea441f7bf1d19cd16cbc8d347270ed8093 — Michael Rose 6 years ago 9b36452
Fix syntax highlighting line number inconsistency

Globally enabling Rouge block line numbers in Kramdown _config.yml settings should be styled consistently with `{% highlight linenos %}` Jekyll tag.

Fixes #1467
1 files changed, 4 insertions(+), 2 deletions(-)

M _sass/minimal-mistakes/_syntax.scss
M _sass/minimal-mistakes/_syntax.scss => _sass/minimal-mistakes/_syntax.scss +4 -2
@@ 31,7 31,8 @@ figure.highlight {
    border: 0;

    /* line numbers*/
    &.gutter {
    &.gutter,
    &.rouge-gutter {
      padding-right: 1em;
      width: 1em;
      color: $base04;


@@ 40,7 41,8 @@ figure.highlight {
    }

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