@trilogy-ds/styles 0.0.1-beta.9 → 0.0.3-beta-v4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/base/_color.scss +9 -39
- package/framework/src/base/_generic.scss +4 -1
- package/framework/src/base/_helpers.scss +13 -38
- package/framework/src/base/_loading.scss +8 -1
- package/framework/src/base/_reset.scss +8 -3
- package/framework/src/components/_accordion.scss +53 -88
- package/framework/src/components/_all.scss +1 -7
- package/framework/src/components/_autolayout.scss +302 -0
- package/framework/src/components/_breadcrumb.scss +39 -34
- package/framework/src/components/_card.scss +8 -79
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_divider.scss +10 -15
- package/framework/src/components/_fab.scss +25 -38
- package/framework/src/components/_modal.scss +161 -158
- package/framework/src/components/_otp.scss +10 -29
- package/framework/src/components/_pagination.scss +59 -161
- package/framework/src/components/_plus-symbol.scss +1 -1
- package/framework/src/components/_popover.scss +260 -260
- package/framework/src/components/_price.scss +119 -170
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_progress-radial.scss +24 -19
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +51 -53
- package/framework/src/components/_stepper.scss +42 -222
- package/framework/src/components/_tabs.scss +46 -81
- package/framework/src/components/_timeline.scss +27 -112
- package/framework/src/elements/_alert.scss +13 -10
- package/framework/src/elements/_all.scss +1 -4
- package/framework/src/elements/_autocomplete.scss +32 -0
- package/framework/src/elements/_badge.scss +67 -61
- package/framework/src/elements/_box.scss +64 -161
- package/framework/src/elements/_button.scss +15 -141
- package/framework/src/elements/_checkbox.scss +29 -26
- package/framework/src/elements/_chips.scss +69 -85
- package/framework/src/elements/_container.scss +7 -39
- package/framework/src/elements/_entry.scss +76 -88
- package/framework/src/elements/_form.scss +26 -23
- package/framework/src/elements/_icon.scss +4 -4
- package/framework/src/elements/_image.scss +50 -40
- package/framework/src/elements/_input-gauge.scss +32 -33
- package/framework/src/elements/_input-icons.scss +33 -31
- package/framework/src/elements/_link.scss +38 -65
- package/framework/src/elements/_list.scss +45 -44
- package/framework/src/elements/_loader.scss +2 -2
- package/framework/src/elements/_other.scss +0 -37
- package/framework/src/elements/_paragraph.scss +35 -69
- package/framework/src/elements/_progress.scss +33 -22
- package/framework/src/elements/_radio.scss +45 -31
- package/framework/src/elements/_select.scss +85 -304
- package/framework/src/elements/_sticker.scss +12 -27
- package/framework/src/elements/_switch.scss +101 -99
- package/framework/src/elements/_table.scss +175 -228
- package/framework/src/elements/_tag.scss +104 -105
- package/framework/src/elements/_textarea.scss +113 -105
- package/framework/src/elements/_title.scss +89 -87
- package/framework/src/elements/_toaster.scss +4 -5
- package/framework/src/grid/_columns.scss +257 -764
- package/framework/src/grid/_rows.scss +45 -38
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +89 -215
- package/framework/src/layout/_section.scss +5 -29
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +32 -0
- package/framework/src/theming/common_partials.scss +10 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +4 -0
- package/framework/src/utilities/_background.scss +19 -0
- package/framework/src/utilities/_colors.scss +40 -0
- package/framework/src/utilities/_controls.scss +38 -49
- package/framework/src/utilities/_derived-variables.scss +4 -15
- package/framework/src/utilities/_initial-variables.scss +4 -36
- package/framework/src/utilities/_mixins.scss +483 -592
- package/framework/src/utilities/_pre.scss +1 -0
- package/package.json +3 -3
- package/framework/src/components/_autolayout2.scss +0 -38
- package/framework/src/components/_disclaimer.scss +0 -84
- package/framework/src/components/_dropdown.scss +0 -128
- package/framework/src/components/_level.scss +0 -120
- package/framework/src/components/_media.scss +0 -64
- package/framework/src/components/_menu.scss +0 -213
- package/framework/src/components/_search-modal.scss +0 -197
- package/framework/src/components/_slices.scss +0 -316
- package/framework/src/components/_slider.scss +0 -92
- package/framework/src/components/_switch.scss +0 -209
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_dot.scss +0 -6
- package/framework/src/elements/_notification.scss +0 -151
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_timeline.scss +0 -283
- package/framework/src/layout/_toolbar.scss +0 -100
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
@import "../utilities/spacing";
|
|
3
3
|
|
|
4
|
-
$timeline-marker-color: getColor('
|
|
4
|
+
$timeline-marker-color: getColor('neutral-fade') !default;
|
|
5
5
|
$timeline-marker-icon-size: 2.85em !default;
|
|
6
|
-
$timeline-line-color: getColor('
|
|
6
|
+
$timeline-line-color: getColor('neutral-fade') !default;
|
|
7
7
|
$timeline-marker-size: 0.8em !default;
|
|
8
8
|
$timeline-marker-border-size: 0.1em !default;
|
|
9
|
-
$timeline-marker-border: $timeline-marker-border-size solid
|
|
10
|
-
$timeline-marker-color !default;
|
|
9
|
+
$timeline-marker-border: $timeline-marker-border-size solid $timeline-marker-color !default;
|
|
11
10
|
$timeline-line-width: 0.125em !default;
|
|
12
11
|
$timeline-line-style: solid !default;
|
|
13
12
|
$timeline-line: $timeline-line-width $timeline-line-style $timeline-line-color !default;
|
|
@@ -32,8 +31,9 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
32
31
|
margin-left: 0;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
.timeline-item
|
|
36
|
-
|
|
34
|
+
.timeline-item {
|
|
35
|
+
--font-color: #{getColor('neutral')};
|
|
36
|
+
--bg-color: #{getColor('background')};
|
|
37
37
|
display: flex;
|
|
38
38
|
display: -ms-flexbox;
|
|
39
39
|
display: -webkit-flex;
|
|
@@ -43,9 +43,9 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
43
43
|
|
|
44
44
|
&::before {
|
|
45
45
|
content: '';
|
|
46
|
-
background-color: getColor('grey-lighter');
|
|
47
46
|
display: block;
|
|
48
47
|
width: $timeline-line-width;
|
|
48
|
+
background-color: var(--font-color);
|
|
49
49
|
position: absolute;
|
|
50
50
|
top: 49.80px;
|
|
51
51
|
left: 3rem;
|
|
@@ -55,86 +55,32 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.timeline-marker.is-icon {
|
|
58
|
-
background-color:
|
|
59
|
-
|
|
60
|
-
color: aside;
|
|
61
|
-
}
|
|
58
|
+
background-color: var(--font-color);
|
|
59
|
+
color: var(--bg-color);
|
|
62
60
|
}
|
|
63
61
|
|
|
64
|
-
|
|
62
|
+
&.active, &.done {
|
|
63
|
+
--font-color: #{getColor('main')};
|
|
64
|
+
--bg-color: #{getColor('background')};
|
|
65
|
+
}
|
|
65
66
|
|
|
66
67
|
&.active {
|
|
67
|
-
.timeline-marker.is-icon {
|
|
68
|
-
background-color: getColor('alternate');
|
|
69
|
-
.icon {
|
|
70
|
-
color: getColor('background');
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
68
|
.timeline-content {
|
|
74
69
|
p.main-content {
|
|
75
70
|
font-weight: 800;
|
|
76
71
|
}
|
|
77
72
|
}
|
|
78
|
-
&::before {
|
|
79
|
-
content: '';
|
|
80
|
-
background-color: getColor('alternate');
|
|
81
|
-
display: block;
|
|
82
|
-
width: $timeline-line-width;
|
|
83
|
-
position: absolute;
|
|
84
|
-
top: 49.80px;
|
|
85
|
-
left: 3rem;
|
|
86
|
-
bottom: 8px;
|
|
87
|
-
height: auto;
|
|
88
|
-
border-radius: 2px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
&.done {
|
|
93
|
-
.timeline-marker.is-icon {
|
|
94
|
-
background-color: getColor('font');
|
|
95
|
-
.icon {
|
|
96
|
-
color: getColor('background')
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
&::before {
|
|
100
|
-
content: '';
|
|
101
|
-
background-color: getColor('font');
|
|
102
|
-
display: block;
|
|
103
|
-
width: $timeline-line-width;
|
|
104
|
-
position: absolute;
|
|
105
|
-
top: 49.80px;
|
|
106
|
-
left: 3rem;
|
|
107
|
-
bottom: 8px;
|
|
108
|
-
height: auto;
|
|
109
|
-
border-radius: 2px;
|
|
110
|
-
}
|
|
111
73
|
}
|
|
112
74
|
|
|
113
75
|
&.cancel {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
.icon {
|
|
117
|
-
color: getColor('grey-darker');
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
&::before {
|
|
121
|
-
content: '';
|
|
122
|
-
background-color: getColor('grey-light');
|
|
123
|
-
display: block;
|
|
124
|
-
width: $timeline-line-width;
|
|
125
|
-
position: absolute;
|
|
126
|
-
top: 49.80px;
|
|
127
|
-
left: 3rem;
|
|
128
|
-
bottom: 8px;
|
|
129
|
-
height: auto;
|
|
130
|
-
border-radius: 2px;
|
|
131
|
-
}
|
|
76
|
+
--font-color: #{getColor('neutral')};
|
|
77
|
+
--bg-color: #{getColor('neutral-fade')};
|
|
132
78
|
}
|
|
133
79
|
|
|
134
80
|
.timeline-marker {
|
|
135
81
|
position: absolute;
|
|
136
82
|
background: $timeline-marker-color;
|
|
137
|
-
border-radius:
|
|
83
|
+
border-radius: 9999px;
|
|
138
84
|
content: '';
|
|
139
85
|
display: block;
|
|
140
86
|
height: $timeline-marker-size;
|
|
@@ -154,7 +100,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
154
100
|
}
|
|
155
101
|
|
|
156
102
|
background: $timeline-marker-color;
|
|
157
|
-
border-radius:
|
|
103
|
+
border-radius: 9999px;
|
|
158
104
|
display: block;
|
|
159
105
|
overflow: hidden;
|
|
160
106
|
}
|
|
@@ -169,13 +115,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
169
115
|
$timeline-marker-border-size * 0.5);
|
|
170
116
|
line-height: size(0.75rem);
|
|
171
117
|
padding: math.div($timeline-icon-size, 3);
|
|
172
|
-
|
|
173
|
-
border-radius: 100%;
|
|
174
|
-
|
|
175
|
-
> i {
|
|
176
|
-
color: getColor('background');
|
|
177
|
-
font-size: $timeline-icon-size !important;
|
|
178
|
-
}
|
|
118
|
+
border-radius: 9999px;
|
|
179
119
|
}
|
|
180
120
|
|
|
181
121
|
&.is-outlined {
|
|
@@ -199,13 +139,12 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
199
139
|
|
|
200
140
|
.heading {
|
|
201
141
|
font-size: $text-12;
|
|
202
|
-
color: getColor('
|
|
142
|
+
color: getColor('font');
|
|
203
143
|
font-family: $family-sans-serif;
|
|
204
144
|
text-transform: none;
|
|
205
145
|
letter-spacing: 0;
|
|
206
146
|
line-height: 15px;
|
|
207
147
|
font-weight: 500;
|
|
208
|
-
color: #707070;
|
|
209
148
|
}
|
|
210
149
|
|
|
211
150
|
p {
|
|
@@ -213,7 +152,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
213
152
|
}
|
|
214
153
|
}
|
|
215
154
|
|
|
216
|
-
@each $name in $colors-brand-
|
|
155
|
+
@each $name in $colors-brand-functionnal {
|
|
217
156
|
$color: getColor($name);
|
|
218
157
|
$brandName: getColorBrandName($name);
|
|
219
158
|
|
|
@@ -293,7 +232,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
293
232
|
}
|
|
294
233
|
}
|
|
295
234
|
|
|
296
|
-
@each $name, $pair in $colors-brand-
|
|
235
|
+
@each $name, $pair in $colors-brand-functionnal {
|
|
297
236
|
$color: getColor($name);
|
|
298
237
|
$brandName: getColorBrandName($name);
|
|
299
238
|
|
|
@@ -314,51 +253,27 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
314
253
|
.timeline-item {
|
|
315
254
|
flex-direction: column;
|
|
316
255
|
width: 100%;
|
|
256
|
+
|
|
317
257
|
&:not(:last-child) {
|
|
318
258
|
margin-right: 16px;
|
|
319
259
|
}
|
|
320
260
|
|
|
321
261
|
&::before {
|
|
322
|
-
content: '';
|
|
323
|
-
background-color: $timeline-line-color;
|
|
324
|
-
display: block;
|
|
325
262
|
width: calc(100% - 58px);
|
|
326
|
-
position: absolute;
|
|
327
263
|
top: 22.89px;
|
|
328
264
|
left: 59px;
|
|
329
|
-
bottom: 8px;
|
|
330
265
|
height: 2px;
|
|
331
|
-
border-radius: 2px;
|
|
332
|
-
}
|
|
333
|
-
&.active::before {
|
|
334
|
-
background-color: getColor('alternate');
|
|
335
|
-
}
|
|
336
|
-
&.undone
|
|
337
|
-
{
|
|
338
|
-
i {
|
|
339
|
-
background-color: getColor('font');
|
|
340
|
-
}
|
|
341
|
-
&::before {
|
|
342
|
-
background-color: getColor('grey-lighter');
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
&.done::before {
|
|
346
|
-
background-color: getColor('font');
|
|
347
|
-
}
|
|
348
|
-
&.cancel::before {
|
|
349
|
-
background-color: getColor('grey-light');
|
|
350
266
|
}
|
|
267
|
+
|
|
351
268
|
.timeline-marker {
|
|
352
|
-
position: static
|
|
353
|
-
margin-left:0
|
|
269
|
+
position: static;
|
|
270
|
+
margin-left: 0
|
|
354
271
|
}
|
|
272
|
+
|
|
355
273
|
.timeline-content {
|
|
356
274
|
margin-left: 0;
|
|
357
|
-
padding:0;
|
|
275
|
+
padding: 0;
|
|
358
276
|
margin-top: 8px;
|
|
359
|
-
.main-content {
|
|
360
|
-
margin-left: 0;
|
|
361
|
-
}
|
|
362
277
|
|
|
363
278
|
}
|
|
364
279
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* @todo validate a.alert exist */
|
|
1
2
|
a.alert {
|
|
2
3
|
cursor: pointer;
|
|
3
4
|
transition: box-shadow $animation-duration;
|
|
@@ -10,19 +11,24 @@ a.alert {
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.alert {
|
|
13
|
-
|
|
14
|
-
border-radius: $radius;
|
|
15
|
-
margin-bottom: 16px;
|
|
14
|
+
border-radius: var(--radius);
|
|
16
15
|
position: relative;
|
|
17
16
|
display: flex;
|
|
18
17
|
align-self: flex-start;
|
|
19
18
|
box-shadow: none;
|
|
20
19
|
padding: $spacing-4;
|
|
21
20
|
|
|
21
|
+
&.is-banner {
|
|
22
|
+
|
|
23
|
+
text-align: center;
|
|
24
|
+
border-radius: 0;
|
|
25
|
+
border: none !important;
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
|
|
22
29
|
.text:first-child,
|
|
23
30
|
.title:first-child {
|
|
24
31
|
line-height: normal;
|
|
25
|
-
font-size: $text-16 !important;
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
.title,
|
|
@@ -47,12 +53,10 @@ a.alert {
|
|
|
47
53
|
color: currentColor;
|
|
48
54
|
}
|
|
49
55
|
|
|
50
|
-
@each $name
|
|
51
|
-
$bg-color: nth($pair, 1);
|
|
52
|
-
|
|
56
|
+
@each $name in $colors-feedback {
|
|
53
57
|
&.is-#{$name} {
|
|
54
|
-
background-color:
|
|
55
|
-
border:
|
|
58
|
+
background-color: fadeColor($name);
|
|
59
|
+
border: 1px solid getColor($name);
|
|
56
60
|
|
|
57
61
|
.icon {
|
|
58
62
|
color: getColor($name);
|
|
@@ -81,7 +85,6 @@ a.alert {
|
|
|
81
85
|
}
|
|
82
86
|
}
|
|
83
87
|
|
|
84
|
-
.title,
|
|
85
88
|
.text,
|
|
86
89
|
.paragraph {
|
|
87
90
|
font-size: $text-14;
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
@import '../utilities/spacing';
|
|
3
3
|
|
|
4
4
|
@import 'alert';
|
|
5
|
+
@import 'autocomplete';
|
|
5
6
|
@import 'badge';
|
|
6
7
|
@import 'box';
|
|
7
8
|
@import 'button';
|
|
8
9
|
@import 'chips';
|
|
9
10
|
@import 'checkbox';
|
|
10
|
-
@import 'checkradio';
|
|
11
11
|
@import 'container';
|
|
12
|
-
@import 'dot';
|
|
13
12
|
@import 'entry';
|
|
14
13
|
@import 'form';
|
|
15
14
|
@import 'icon';
|
|
@@ -17,9 +16,7 @@
|
|
|
17
16
|
@import 'loader';
|
|
18
17
|
@import 'link';
|
|
19
18
|
@import 'list';
|
|
20
|
-
@import 'notification';
|
|
21
19
|
@import 'toaster';
|
|
22
|
-
@import 'options';
|
|
23
20
|
@import 'progress';
|
|
24
21
|
@import 'paragraph';
|
|
25
22
|
@import 'radio';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.is-autocomplete {
|
|
2
|
+
.autocomplete-menu {
|
|
3
|
+
display: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&.is-active {
|
|
7
|
+
.autocomplete-menu {
|
|
8
|
+
display: block;
|
|
9
|
+
border: 1px solid rgba(0,38,60,.4);
|
|
10
|
+
padding: calc($spacing-1 + 1px) calc($spacing-2 + 2px);
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
max-height: 220px;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
background-color: getColor('background');
|
|
15
|
+
z-index: 10000;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.autocomplete-item {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
padding: calc($spacing-1 - 0.25px) calc($spacing-1 + 1px);
|
|
21
|
+
|
|
22
|
+
&.is-active, &[data-autocomplete-item-hover] {
|
|
23
|
+
@include hoverRules();
|
|
24
|
+
margin-left: calc(2px - $spacing-3 );
|
|
25
|
+
margin-right: calc(2px - $spacing-3 );
|
|
26
|
+
border-top: 1px solid getColor('neutral-fade');
|
|
27
|
+
border-bottom: 1px solid getColor('neutral-fade');
|
|
28
|
+
padding: calc($spacing-1 - 1.25px) calc($spacing-4 - 1px);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,81 +1,87 @@
|
|
|
1
1
|
.title .badge {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
margin-left: 0.6em;
|
|
3
|
+
margin-right: 0.6em;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
min-width: $text-20;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
align-items: center;
|
|
6
|
+
.badge-container {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
justify-content: flex-start;
|
|
10
|
+
align-items: center;
|
|
11
|
+
min-width: 40px;
|
|
12
|
+
min-height: 40px;
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
.badge,
|
|
15
|
+
.badge-icon {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
right: 0;
|
|
21
19
|
|
|
22
|
-
&.is-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
&.is-bottom-left {
|
|
21
|
+
bottom: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
right: auto;
|
|
24
|
+
top: auto;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
&.is-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
&.is-bottom-right {
|
|
28
|
+
bottom: 0;
|
|
29
|
+
right: 0;
|
|
30
|
+
top: auto;
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
&.is-top-left {
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
right: auto;
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
39
|
|
|
40
|
-
.badge {
|
|
41
|
-
|
|
40
|
+
.badge-icon {
|
|
41
|
+
width: $text-20;
|
|
42
|
+
height: $text-20;
|
|
43
|
+
}
|
|
42
44
|
}
|
|
43
45
|
|
|
44
|
-
.badge
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
.badge {
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
border-radius: 9999px;
|
|
49
|
+
color: getColor('background');
|
|
50
|
+
background: getColor('main');
|
|
51
|
+
font-size: $text-10;
|
|
52
|
+
min-height: $text-20;
|
|
53
|
+
min-width: $text-20;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
align-items: center;
|
|
50
56
|
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
&:empty {
|
|
58
|
+
min-width: $text-10;
|
|
59
|
+
min-height: $text-10;
|
|
60
|
+
}
|
|
53
61
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
}
|
|
62
|
+
&.is-inverted {
|
|
63
|
+
color: getColor('main') !important;
|
|
64
|
+
background: getColor('background');
|
|
65
|
+
}
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
[data-badge-number] {
|
|
63
|
-
|
|
69
|
+
position: relative;
|
|
64
70
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
&::after {
|
|
72
|
+
content: attr(data-badge-number);
|
|
73
|
+
position: absolute;
|
|
74
|
+
margin-left: -15px;
|
|
75
|
+
top: -7px;
|
|
76
|
+
color: getColor('background');
|
|
77
|
+
left: 100%;
|
|
78
|
+
background: getColor('main');
|
|
79
|
+
font-size: $text-10;
|
|
80
|
+
min-height: $text-20;
|
|
81
|
+
min-width: $text-20;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
border-radius: 9999px;
|
|
86
|
+
}
|
|
81
87
|
}
|