Add user_color_scheme class to file_highlight
Prevents an unstyled flash that occurs when we were only applying the syntax highlighting class in Javascript. Now for these uncached blobs the server can add the syntax class, and for (possibly) cached fenced code blocks, the Javascript will add it as needed.
This commit is contained in:
parent
7a81dc65d9
commit
54771100eb
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
.file-content.code.js-syntax-highlight
|
.file-content.code.js-syntax-highlight{ class: user_color_scheme }
|
||||||
.line-numbers
|
.line-numbers
|
||||||
- if blob.data.present?
|
- if blob.data.present?
|
||||||
- blob.data.lines.each_index do |index|
|
- blob.data.lines.each_index do |index|
|
||||||
|
|
Loading…
Reference in a new issue