1
1
mirror of https://github.com/primer/css.git synced 2024-12-20 20:51:38 +03:00
css/modules/primer-labels/lib/states.scss
2017-06-29 12:49:16 -07:00

36 lines
823 B
SCSS

// A rounded corner box containing a label "open" or "closed"
// The default state is gray.
//
// open - $green background
// reopened - $green background
// closed - $red background
// merged - $purple background
// .state to be deprecated in replace of .State
.state,
.State {
display: inline-block;
padding: $spacer-1 $spacer-2;
font-weight: $font-weight-bold;
line-height: 20px;
color: $text-white;
text-align: center;
background-color: $gray-500;
border-radius: 3px;
}
.State--green { background-color: darken($green-400, 5%); }
.State--purple { background-color: $bg-purple; }
.State--red { background-color: $red-600; }
.State--small {
padding: 0.125em $spacer-1;
font-size: $h6-size;
.octicon {
width: 1em; // Ensures different icons don't change State indicator width
}
}