summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/highlight/diff_custom_colors_deletion.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/highlight/diff_custom_colors_deletion.scss')
-rw-r--r--app/assets/stylesheets/highlight/diff_custom_colors_deletion.scss36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/assets/stylesheets/highlight/diff_custom_colors_deletion.scss b/app/assets/stylesheets/highlight/diff_custom_colors_deletion.scss
new file mode 100644
index 00000000000..a8ab43909eb
--- /dev/null
+++ b/app/assets/stylesheets/highlight/diff_custom_colors_deletion.scss
@@ -0,0 +1,36 @@
+/**
+* CSS variables used below are declared in `app/views/layouts/_diffs_colors_css.haml`
+*/
+.diff-custom-deletion-color {
+ .code {
+ .line_holder {
+ .diff-line-num,
+ .line-coverage,
+ .line-codequality,
+ .line_content {
+ &.old {
+ &:not(.hll) {
+ background: var(--diff-deletion-color);
+ }
+
+ &.line_content span.idiff {
+ background: var(--diff-deletion-color) !important;
+ }
+
+ &::before,
+ a {
+ mix-blend-mode: luminosity;
+ }
+ }
+ }
+ }
+
+ .gd {
+ background-color: var(--diff-deletion-color);
+ }
+ }
+
+ .idiff.deletion {
+ background: var(--diff-deletion-color) !important;
+ }
+}