1
1
mirror of https://github.com/primer/css.git synced 2025-01-05 21:22:57 +03:00

Use aliases for the colors

This commit is contained in:
simurai 2019-10-23 09:28:17 +09:00
parent d65b411ee1
commit ff8e78f9a4
2 changed files with 7 additions and 2 deletions

View File

@ -20,7 +20,7 @@
}
.diffstat-block-deleted {
background-color: $red-600;
background-color: $bg-diffstat-deleted;
}
.diffstat-block-added {
@ -28,5 +28,5 @@
}
.diffstat-block-neutral {
background-color: $gray-300;
background-color: $bg-diffstat-neutral;
}

View File

@ -37,3 +37,8 @@ $max_tab_size: 12;
$form-control-shadow: inset 0 1px 2px rgba($black, 0.075);
$btn-input-focus-shadow: 0 0 0 0.2em rgba($blue, 0.3);
$btn-active-shadow: inset 0 0.15em 0.3em $black-fade-15;
// diffstat
$bg-diffstat-added: darken($green-400, 5%);
$bg-diffstat-deleted: $red-600;
$bg-diffstat-neutral: $gray-300;