summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/highlight/themes/none.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/highlight/themes/none.scss')
-rw-r--r--app/assets/stylesheets/highlight/themes/none.scss27
1 files changed, 8 insertions, 19 deletions
diff --git a/app/assets/stylesheets/highlight/themes/none.scss b/app/assets/stylesheets/highlight/themes/none.scss
index fa1f7211b3e..8339d7eff80 100644
--- a/app/assets/stylesheets/highlight/themes/none.scss
+++ b/app/assets/stylesheets/highlight/themes/none.scss
@@ -55,7 +55,7 @@
&,
pre.code,
- .line_holder .line_content {
+ .line_holder .line_content:not(.hll) {
background-color: $white;
color: $gl-text-color;
}
@@ -84,8 +84,8 @@
@include line-coverage-border-color($green-500, $orange-500);
}
- .line-coverage,
- .line-codequality {
+ .line-coverage:not(.hll),
+ .line-codequality:not(.hll) {
&.old,
&.new,
&.new-nomappinginraw,
@@ -119,11 +119,6 @@
&.hll:not(.empty-cell).is-over {
@include line-number-hover;
}
-
- &.hll:not(.empty-cell) {
- background-color: $white;
- border-color: $white-normal;
- }
}
&:not(.diff-expanded) + .diff-expanded,
@@ -158,7 +153,7 @@
}
}
- &.new, &.new-nomappinginraw {
+ &.new:not(.hll), &.new-nomappinginraw:not(.hll) {
background-color: $white-normal;
&::before {
@@ -174,18 +169,9 @@
&.match {
@include match-line;
}
-
- &.hll:not(.empty-cell) {
- background-color: $white-normal;
- }
}
}
- // highlight line via anchor
- pre .hll {
- background-color: $white-normal;
- }
-
// Search result highlight
span.highlight_word {
background-color: $white-normal;
@@ -197,7 +183,10 @@
text-decoration: underline;
}
- .hll { background-color: $white; }
+ .hll {
+ --highlight-border-color: #{$orange-200};
+ background-color: $orange-50;
+ }
.gd {
color: $gl-text-color;