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
This commit is contained in:
parent
1be03e6335
commit
5de9991999
1 changed files with 4 additions and 2 deletions
|
@ -31,7 +31,8 @@ figure.highlight {
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
||||||
/* line numbers*/
|
/* line numbers*/
|
||||||
&.gutter {
|
&.gutter,
|
||||||
|
&.rouge-gutter {
|
||||||
padding-right: 1em;
|
padding-right: 1em;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
color: $base04;
|
color: $base04;
|
||||||
|
@ -40,7 +41,8 @@ figure.highlight {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* code */
|
/* code */
|
||||||
&.code {
|
&.code,
|
||||||
|
&.rouge-code {
|
||||||
padding-left: 1em;
|
padding-left: 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue