diff options
author | Fatih Acet <acetfatih@gmail.com> | 2019-01-24 17:30:08 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-01-24 17:30:08 +0000 |
commit | 66456863299001fcae17bb93dd79d91f4147d08f (patch) | |
tree | c0db8229e0e7035996b0e52fd10a688059db58bc | |
parent | 664567a8c2956f048fd9f99b411b0a0236df2e70 (diff) | |
parent | d3fed349fbe82d6a11b53d93a04066db4b6108a6 (diff) | |
download | gitlab-ce-66456863299001fcae17bb93dd79d91f4147d08f.tar.gz |
Merge branch 'remove-diff-coloring' into 'master'
remove red/green colors from diff view of no-color syntax theme
See merge request gitlab-org/gitlab-ce!24582
-rw-r--r-- | app/assets/stylesheets/highlight/none.scss | 28 | ||||
-rw-r--r-- | changelogs/unreleased/remove-diff-coloring.yml | 5 |
2 files changed, 17 insertions, 16 deletions
diff --git a/app/assets/stylesheets/highlight/none.scss b/app/assets/stylesheets/highlight/none.scss index 7d692a87e33..7ced4e82e66 100644 --- a/app/assets/stylesheets/highlight/none.scss +++ b/app/assets/stylesheets/highlight/none.scss @@ -38,7 +38,7 @@ $none-over-bg: #ded7fc; $none-expanded-border: #e0e0e0; - $none-expanded-bg: #f7f7f7; + $none-expanded-bg: #e0e0e0; .line_holder { @@ -50,18 +50,12 @@ .diff-line-num { &.old { - background-color: $line-number-old; - border-color: $line-removed-dark; - a { color: scale-color($line-number-old, $red: -30%, $green: -30%, $blue: -30%); } } &.new { - background-color: $line-number-new; - border-color: $line-added-dark; - a { color: scale-color($line-number-new, $red: -30%, $green: -30%, $blue: -30%); } @@ -78,8 +72,8 @@ } &.hll:not(.empty-cell) { - background-color: $line-number-select; - border-color: $line-select-yellow-dark; + background-color: $white-light; + border-color: $white-normal; } } @@ -101,26 +95,28 @@ .line_content { &.old { - background-color: $line-removed; + background-color: $white-normal; &::before { - color: scale-color($line-number-old, $red: -30%, $green: -30%, $blue: -30%); + color: $gl-text-color; } span.idiff { - background-color: $line-removed-dark; + background-color: $white-normal; + text-decoration: underline; } } &.new { - background-color: $line-added; + background-color: $white-normal; &::before { - color: scale-color($line-number-new, $red: -30%, $green: -30%, $blue: -30%); + color: $gl-text-color; } span.idiff { - background-color: $line-added-dark; + background-color: $white-normal; + text-decoration: underline; } } @@ -129,7 +125,7 @@ } &.hll:not(.empty-cell) { - background-color: $line-select-yellow; + background-color: $white-normal; } } } diff --git a/changelogs/unreleased/remove-diff-coloring.yml b/changelogs/unreleased/remove-diff-coloring.yml new file mode 100644 index 00000000000..1ee1b525c35 --- /dev/null +++ b/changelogs/unreleased/remove-diff-coloring.yml @@ -0,0 +1,5 @@ +--- +title: 'remove red/green colors from diff view of no-color syntax theme' +merge_request: 24582 +author: khm +type: changed |