summaryrefslogtreecommitdiffstats
path: root/assets/sass/@primer/css/labels/diffstat.scss
blob: 69feb40798151070dbcb3ff1362979b00d0cd601 (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
// diffstat
//
// Green/red blocks showing additions and deletions

.diffstat {
  font-size: $h6-size;
  font-weight: $font-weight-bold;
  color: $text-gray;
  white-space: nowrap;
  cursor: default;
}

.diffstat-block-deleted,
.diffstat-block-added,
.diffstat-block-neutral {
  display: inline-block;
  width: $spacer-2;
  height: $spacer-2;
  // stylelint-disable-next-line primer/spacing
  margin-left: 1px;
}

.diffstat-block-deleted {
  background-color: $bg-diffstat-deleted;
}

.diffstat-block-added {
  background-color: $bg-diffstat-added;
}

.diffstat-block-neutral {
  background-color: $bg-diffstat-neutral;
}