summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/pages/diff.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/pages/diff.scss')
-rw-r--r--app/assets/stylesheets/pages/diff.scss15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/diff.scss b/app/assets/stylesheets/pages/diff.scss
index 1e2b8b51827..012232a708e 100644
--- a/app/assets/stylesheets/pages/diff.scss
+++ b/app/assets/stylesheets/pages/diff.scss
@@ -392,3 +392,18 @@
right: 15px;
}
}
+
+@mixin diff_background($r, $g, $b, $custom-border) {
+ /* Fallback for web browsers that doesn't support RGBa */
+ background: rgb($r, $g, $b);
+ /* RGBa with 0.3 opacity */
+ background: rgba($r, $g, $b, 0.3);
+
+ &.new_line, &.old_line {
+ border-right-color: $custom-border !important;
+ }
+
+ &.line_content span.idiff {
+ background: rgb($r, $g, $b);
+ }
+}