summaryrefslogtreecommitdiffstats
path: root/assets/sass/@primer/css/labels/states.scss
blob: 6be06057714d884896908d5172541da93f4d25af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 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;
  // stylelint-disable-next-line primer/typography
  line-height: 20px;
  color: $text-white;
  text-align: center;
  white-space: nowrap;
  // stylelint-disable-next-line primer/colors
  background-color: $gray-500;
  border-radius: $border-radius;
}

// stylelint-disable-next-line primer/colors
.State--green { background-color: darken($green-400, 5%); }

.State--purple { background-color: $bg-purple; }

// stylelint-disable-next-line primer/colors
.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
  }
}