Skip to content

Commit

Permalink
No margin/border without line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
andreimarcu committed Jun 18, 2016
1 parent e6db855 commit 9467be9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/css/highlight/lines.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#normal-code {
.linenumbers {
border-left: 1px solid #ccc;
margin-left: 36px;
position: relative;
}

#normal-code code {
.linenumbers code {
counter-reset: linenumbers;
}

#normal-code code div:before {
.linenumbers code div:before {
content: counter(linenumbers);
counter-increment: linenumbers;
left: -36px;
Expand Down
3 changes: 3 additions & 0 deletions static/js/bin_hljs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ for (var i = 0; i < lines.length; i++) {
codeb.appendChild(div);
};


var ncode = document.getElementById("normal-code");
ncode.className = "linenumbers";
// @license-end

0 comments on commit 9467be9

Please sign in to comment.