-
Notifications
You must be signed in to change notification settings - Fork 10
/
vf-badge.scss
executable file
·95 lines (76 loc) · 2.52 KB
/
vf-badge.scss
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// vf-badge
$vf-badge--primary-color--background: set-color(vf-color-azure) !default;
$vf-badge--primary-color--border: set-color(vf-color-azure) !default;
$vf-badge--primary-color--text: set-color(vf-color-white) !default;
$vf-badge--primary--hover-color--background: set-color(vf-color-azure-dark) !default;
$vf-badge--primary--hover-color--border: set-color(vf-color-azure-dark) !default;
$vf-badge-rounded-border--radius: $vf-radius-xs !default;
$vf-badge-pill-border--radius: $vf-radius-pill !default;
$vf-badge--outline-color--background: transparent !default;
$vf-badge--outline-color--text: set-color(vf-color-azure) !default;
$vf-badge--secondary-color--background: set-color(vf-color-green) !default;
$vf-badge--secondary-color--border: set-color(vf-color-green) !default;
$vf-badge--secondary-color--text: set-color(vf-color-white) !default;
$vf-badge--tertiary-color--background: set-color(vf-color-gray-dark) !default;
$vf-badge--tertiary-color--border: set-color(vf-color-gray-dark) !default;
$vf-badge--tertiary-color--text: set-color(vf-color-white) !default;
.vf-badge {
@include set-type(button--r);
border: 1px solid currentColor;
color: inherit;
display: inline-flex;
letter-spacing: .05em;
padding: 4px 8px;
text-decoration: none;
text-transform: uppercase;
}
.vf-badge--pill {
border-radius: $vf-radius-pill;
}
.vf-badge--rounded {
border-radius: $vf-radius-xs;
}
.vf-badge--square {
border: 0;
display: inline-block;
height: 12px;
padding: 0;
width: 12px;
}
.vf-badge--primary {
background-color: $vf-badge--primary-color--background;
border-color: $vf-badge--primary-color--border;
color: $vf-badge--primary-color--text;
}
a.vf-badge--primary:hover {
background-color: $vf-badge--primary--hover-color--background;
border-color: $vf-badge--primary--hover-color--border;
}
.vf-badge--secondary {
background-color: $vf-badge--secondary-color--background;
border-color: $vf-badge--secondary-color--border;
color: $vf-badge--secondary-color--text;
}
.vf-badge--tertiary {
background-color: $vf-badge--tertiary-color--background;
border-color: $vf-badge--tertiary-color--border;
color: $vf-badge--tertiary-color--text;
}
.vf-badge--outline {
background-color: $vf-badge--outline-color--background;
color: $vf-badge--outline-color--text;
}
.vf-badge--square {
height: 12px;
margin-left: 0;
padding: 0;
position: relative;
width: 12px;
}
.vf-badge--phases {
align-items: center;
display: inline-flex;
justify-content: center;
margin: 0 12px 0 0;
min-width: 52px;
}