Skip to content

Commit ff8e78f

Browse files
committed
Use aliases for the colors
1 parent d65b411 commit ff8e78f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/labels/diffstat.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
}
2121

2222
.diffstat-block-deleted {
23-
background-color: $red-600;
23+
background-color: $bg-diffstat-deleted;
2424
}
2525

2626
.diffstat-block-added {
2727
background-color: $bg-diffstat-added;
2828
}
2929

3030
.diffstat-block-neutral {
31-
background-color: $gray-300;
31+
background-color: $bg-diffstat-neutral;
3232
}

src/support/variables/misc.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ $max_tab_size: 12;
3737
$form-control-shadow: inset 0 1px 2px rgba($black, 0.075);
3838
$btn-input-focus-shadow: 0 0 0 0.2em rgba($blue, 0.3);
3939
$btn-active-shadow: inset 0 0.15em 0.3em $black-fade-15;
40+
41+
// diffstat
42+
$bg-diffstat-added: darken($green-400, 5%);
43+
$bg-diffstat-deleted: $red-600;
44+
$bg-diffstat-neutral: $gray-300;

0 commit comments

Comments
 (0)