Revert "Remove styles for dueToRebase chunks"
This reverts commit e048852365d1c7fc92bea2f597f117c13140f9a0.
Reason for revert: Highlighting which hunks were introduced by a rebase
is done as best-effort and will be clearly stated as such when we
announce this feature. Hence, we expect at least some false-negatives
at the moment (which we intend to get rid off over time). There aren't
any false-positives which we know of at the moment.
Change-Id: I103dbe8bea98d0bb7a417c02d371c2864dca015d
diff --git a/polygerrit-ui/app/elements/diff/gr-diff/gr-diff.html b/polygerrit-ui/app/elements/diff/gr-diff/gr-diff.html
index 6aae8d1..5319ace 100644
--- a/polygerrit-ui/app/elements/diff/gr-diff/gr-diff.html
+++ b/polygerrit-ui/app/elements/diff/gr-diff/gr-diff.html
@@ -142,6 +142,20 @@
.content.remove {
background-color: var(--light-remove-highlight-color);
}
+ .dueToRebase .content.add .intraline,
+ .delta.total.dueToRebase .content.add {
+ background-color: var(--dark-rebased-add-highlight-color);
+ }
+ .dueToRebase .content.add {
+ background-color: var(--light-rebased-add-highlight-color);
+ }
+ .dueToRebase .content.remove .intraline,
+ .delta.total.dueToRebase .content.remove {
+ background-color: var(--dark-rebased-remove-highlight-color);
+ }
+ .dueToRebase .content.remove {
+ background-color: var(--light-rebased-remove-highlight-color);
+ }
.content .contentText:after {
/* Newline, to ensure all lines are one line-height tall. */
content: '\A';