commit
0b1c932ff8
@ -0,0 +1,19 @@ |
||||
//replace the default background color from highlightjs |
||||
.hljs { |
||||
background: $gray-100; |
||||
} |
||||
|
||||
.line-numbers { |
||||
|
||||
[data-line-number] { |
||||
|
||||
&:before { |
||||
content: attr(data-line-number); |
||||
display: inline-block; |
||||
border-right: 1px solid $gray-400; |
||||
padding: 0 .5em; |
||||
margin-right: .5em; |
||||
color: $gray-600 |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,9 @@ |
||||
import $ from 'jquery' |
||||
import hljs from 'highlight.js' |
||||
import hljsDefineSolidity from 'highlightjs-solidity' |
||||
|
||||
// only activate highlighting on pages with this selector
|
||||
if ($('[data-activate-highlight]').length > 0) { |
||||
hljsDefineSolidity(hljs) |
||||
hljs.initHighlightingOnLoad() |
||||
} |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue