Skip to content

Commit 198b31e

Browse files
committed
1 parent 64b86a5 commit 198b31e

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

_assets/stylesheets/_article.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,6 @@ article {
171171
}
172172

173173

174-
.highlight {
175-
border:0;
176-
177-
.lineno {
178-
color:$textmuted;
179-
}
180-
}
181-
182174
pre {
183175
border: 0;
184176
padding: 1.5em 3em;

_assets/stylesheets/_syntax.scss

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,19 @@
5757
.highlight .vc { color: #008080 } /* Name.Variable.Class */
5858
.highlight .vg { color: #008080 } /* Name.Variable.Global */
5959
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
60-
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
60+
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
61+
62+
// suggestions from http://demisx.github.io/jekyll/2014/01/13/improve-code-highlighting-in-jekyll.html
63+
.highlight .lineno {
64+
color: #ccc;
65+
display: inline-block;
66+
padding: 0 5px;
67+
border-right: 1px solid #ccc;
68+
}
69+
.highlight pre code {
70+
font: 13px Menlo, Monaco, Consolas, "Courier New", monospace;
71+
display: block;
72+
white-space: pre;
73+
overflow-x: auto;
74+
word-wrap: normal;
75+
}

0 commit comments

Comments
 (0)