-
Notifications
You must be signed in to change notification settings - Fork 301
Expand file tree
/
Copy pathbadge.scss
More file actions
115 lines (105 loc) · 2.23 KB
/
Copy pathbadge.scss
File metadata and controls
115 lines (105 loc) · 2.23 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.nut-badge {
position: relative;
/* #ifndef dynamic*/
display: inline-flex;
/* #endif */
/* #ifdef dynamic*/
display: flex;
/* #endif */
vertical-align: middle;
box-sizing: content-box;
width: auto;
&-icon {
display: flex;
justify-content: center;
align-items: center;
background: $badge-background-color;
padding: $badge-icon-padding;
text-align: center;
z-index: $badge-z-index;
.nut-icon {
width: $badge-icon-size;
height: $badge-icon-size;
font-size: $badge-icon-size;
}
}
&-sup,
&-icon {
border-radius: $badge-border-radius;
&::after {
content: '';
position: absolute;
top: -50%;
bottom: -50%;
left: -50%;
right: -50%;
transform: scale(0.5);
border: $badge-border;
border-radius: $badge-border-radius;
}
}
&-sup {
/* #ifndef dynamic*/
display: inline-flex;
/* #endif */
/* #ifdef dynamic*/
display: flex;
/* #endif */
text-align: center;
min-width: $badge-min-width;
padding: $badge-padding;
box-sizing: border-box;
color: $badge-color;
font-size: $badge-font-size;
line-height: 12px;
white-space: nowrap;
font-weight: normal;
vertical-align: middle;
background: $badge-background-color;
z-index: 1;
}
&-disabled {
background: $badge-background-disabled-color;
}
&-number {
font-family: 'JDZH-Regular';
}
&-one {
height: $badge-height;
width: $badge-height;
}
&-content {
position: absolute;
transform: $badge-content-transform;
}
&-dot {
padding: 0;
border-radius: 50%;
&::after {
border: $badge-dot-border;
border-radius: 50%;
}
&-normal {
min-width: $badge-dot-width;
width: $badge-dot-width;
height: $badge-dot-width;
}
&-small {
min-width: $badge-dot-small-width;
width: $badge-dot-small-width;
height: $badge-dot-small-width;
}
&-large {
min-width: $badge-dot-large-width;
width: $badge-dot-large-width;
height: $badge-dot-large-width;
}
}
&-outline {
background: $color-primary-text;
color: $badge-outline-color;
&::after {
border: $badge-outline-border;
}
}
}