-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
_badges.scss
79 lines (70 loc) · 1.36 KB
/
_badges.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
.badge {
justify-content: center;
align-items: center;
background: $badge-bg-color;
overflow: hidden;
user-select: none;
border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) transparent;
min-width: ($badge-padding-y * 2 ) + (divide($badge-font-size, 100%) * 1em);
font-weight: $headings-font-weight;
letter-spacing: .04em;
vertical-align: bottom;
@at-root a#{&} {
color: $card-bg;
}
.avatar {
box-sizing: content-box;
width: 1.25rem;
height: 1.25rem;
margin: 0 .5rem 0 -.5rem;
}
.icon {
width: 1em;
height: 1em;
font-size: 1rem;
stroke-width: 2;
}
}
.badge:empty,
.badge-empty {
display: inline-block;
width: $badge-empty-size;
height: $badge-empty-size;
min-width: 0;
min-height: auto;
padding: 0;
border-radius: $border-radius-pill;
vertical-align: baseline;
}
//
// Outline badge
//
.badge-outline {
background-color: transparent;
border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) currentColor;
}
//
// Pill badge
//
.badge-pill {
border-radius: $border-radius-pill;
}
//
// Badges list
//
.badges-list {
@include elements-list;
}
//
// Notification badge
//
.badge-notification {
position: absolute !important;
top: 0 !important;
right: 0 !important;
transform: translate(50%, -50%);
z-index: 1;
}
.badge-blink {
animation: blink 2s infinite;
}