mirror of
https://github.com/primer/css.git
synced 2024-12-24 06:32:00 +03:00
e633a2dd6e
- flash - breadcrumb - button - states - markdown lists - markdown-body - support button mixins - tooltips
36 lines
828 B
SCSS
36 lines
828 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: $em-spacer-2 $spacer-1;
|
|
font-size: $h6-size;
|
|
|
|
.octicon {
|
|
width: 1em; // Ensures different icons don't change State indicator width
|
|
}
|
|
}
|