Commit 5341b16f authored by Rémy Coutable's avatar Rémy Coutable

Reuse existing SCSS variables

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 6daec9e6
...@@ -271,9 +271,9 @@ h1, h2, h3, h4 { ...@@ -271,9 +271,9 @@ h1, h2, h3, h4 {
} }
.idiff.deletion { .idiff.deletion {
background: $gl-idiff-deletion; background: $line-removed-dark;
} }
.idiff.addition { .idiff.addition {
background: $gl-idiff-addition; background: $line-added-dark;
} }
...@@ -178,8 +178,6 @@ $table-border-gray: #f0f0f0; ...@@ -178,8 +178,6 @@ $table-border-gray: #f0f0f0;
$line-target-blue: #eaf3fc; $line-target-blue: #eaf3fc;
$line-select-yellow: #fcf8e7; $line-select-yellow: #fcf8e7;
$line-select-yellow-dark: #f0e2bd; $line-select-yellow-dark: #f0e2bd;
$gl-idiff-deletion: #f8cbcb;
$gl-idiff-addition: #a6f3a6;
/* /*
* Fonts * Fonts
......
...@@ -28,8 +28,18 @@ module Gitlab ...@@ -28,8 +28,18 @@ module Gitlab
# Mark each range # Mark each range
marker_ranges.each_with_index do |range, index| marker_ranges.each_with_index do |range, index|
before_content = markdown ? "{#{MARKDOWN_SYMBOLS[mode]}" : "<span class='#{html_class_names(marker_ranges, mode, index)}'>" before_content =
after_content = markdown ? "#{MARKDOWN_SYMBOLS[mode]}}" : "</span>" if markdown
"{#{MARKDOWN_SYMBOLS[mode]}"
else
"<span class='#{html_class_names(marker_ranges, mode, index)}'>"
end
after_content =
if markdown
"#{MARKDOWN_SYMBOLS[mode]}}"
else
"</span>"
end
offset = insert_around_range(rich_line, range, before_content, after_content, offset) offset = insert_around_range(rich_line, range, before_content, after_content, offset)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment