forked from jenkinsci/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_badges.scss
More file actions
56 lines (50 loc) · 1.09 KB
/
_badges.scss
File metadata and controls
56 lines (50 loc) · 1.09 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
51
52
53
54
55
56
@use "../abstracts/mixins";
a.jenkins-badge,
button.jenkins-badge {
pointer-events: auto;
}
.jenkins-badge {
@include mixins.item;
--item-background: color-mix(
in sRGB,
var(--color, var(--accent-color)) 7.5%,
var(--background)
);
--item-background--hover: color-mix(
in sRGB,
var(--color, var(--accent-color)) 12.5%,
var(--background)
);
--item-background--active: color-mix(
in sRGB,
var(--color, var(--accent-color)) 17.5%,
var(--background)
);
--item-box-shadow--focus: color-mix(
in sRGB,
var(--color, var(--accent-color)) 10%,
var(--background)
);
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 100px;
font-size: 0.6875rem;
font-weight: 400;
min-height: 20px;
min-width: 20px;
padding: 0 0.375rem;
gap: 0.35rem;
pointer-events: none;
text-box: cap alphabetic;
&::before {
border: var(--jenkins-border-width) solid
oklch(from currentColor l c h / 0.17);
background-clip: padding-box;
}
svg {
width: 0.75rem;
height: 0.75rem;
}
}