Repository navigation
Expand file tree
/
Copy pathcontent.css
More file actions
50 lines (49 loc) · 1.45 KB
/
Copy pathcontent.css
File metadata and controls
50 lines (49 loc) · 1.45 KB
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
41
42
43
44
45
46
47
48
49
50
.gh-badges {
display: inline-flex;
gap: 3px;
margin-left: 4px;
vertical-align: middle;
position: relative;
top: -2px;
user-select: none;
white-space: nowrap;
}
.gh-badge {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 0 6px;
border-radius: 999px;
font-size: 11px;
font-weight: 600;
line-height: 16px;
color: #fff;
}
.gh-badge svg {
width: 11px;
height: 11px;
flex-shrink: 0;
}
/* Full-circle icons sit concentric with the pill's rounded end: 3px + 10px/2 = 16px/2. */
.gh-badge:is([data-icon="open-issue"], [data-icon="done"], [data-icon="notplanned"], [data-icon="error"]) {
padding-left: 3px;
}
.gh-badge:is([data-icon="open-issue"], [data-icon="done"], [data-icon="notplanned"], [data-icon="error"]) svg {
width: 10px;
height: 10px;
}
.gh-badge--loading { background: #6e7781; opacity: 0.5; padding: 0 4px; }
.gh-badge--loading svg { animation: gh-spin 0.8s linear infinite; }
.gh-badge--open { background: #1f883d; }
.gh-badge--approved { background: #1a7f37; }
.gh-badge--changes { background: #bc4c00; }
.gh-badge--conflicts { background: #9a6700; }
.gh-badge--draft { background: #6e7781; }
.gh-badge--merged { background: #8250df; }
.gh-badge--closed { background: #cf222e; }
.gh-badge--done { background: #8250df; }
.gh-badge--notplanned { background: #6e7781; }
.gh-badge--error { background: transparent; color: #cf222e; border: 1px solid currentColor; }
@keyframes gh-spin {
to { transform: rotate(360deg); }
}