Commit 506836a6 authored by Alexis Reigel's avatar Alexis Reigel

unify commit signature colors with pipeline status

parent 027309eb
...@@ -118,3 +118,29 @@ ...@@ -118,3 +118,29 @@
@content; @content;
} }
} }
/*
* Mixin for status badges, as used for pipelines and commit signatures
*/
@mixin status-color($color-light, $color-main, $color-dark) {
color: $color-main;
border-color: $color-main;
&:not(span):hover {
background-color: $color-light;
color: $color-dark;
border-color: $color-dark;
svg {
fill: $color-dark;
}
}
svg {
fill: $color-main;
}
}
@mixin green-status-color {
@include status-color($green-50, $green-500, $green-700);
}
...@@ -284,15 +284,15 @@ ...@@ -284,15 +284,15 @@
} }
} }
.gpg-status-box { .gpg-status-box {
&.valid { &.valid {
color: $brand-success; @include green-status-color;
border: 1px solid $brand-success;
} }
&.invalid { &.invalid {
color: $gray; @include status-color($gray-dark, $gray, $common-gray-dark);
border: 1px solid $common-gray-light; border-color: $common-gray-light;
} }
} }
......
@mixin status-color($color-light, $color-main, $color-dark) {
color: $color-main;
border-color: $color-main;
&:not(span):hover {
background-color: $color-light;
color: $color-dark;
border-color: $color-dark;
svg {
fill: $color-dark;
}
}
svg {
fill: $color-main;
}
}
.ci-status { .ci-status {
padding: 2px 7px 4px; padding: 2px 7px 4px;
border: 1px solid $gray-darker; border: 1px solid $gray-darker;
...@@ -41,7 +22,7 @@ ...@@ -41,7 +22,7 @@
} }
&.ci-success { &.ci-success {
@include status-color($green-50, $green-500, $green-700); @include green-status-color;
} }
&.ci-canceled, &.ci-canceled,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment