@trilogy-ds/styles 0.0.1-beta.9 → 0.0.1-fix-timepicker

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.
Files changed (153) hide show
  1. package/dist/default/assets/icons/all/arrow-high.svg +1 -0
  2. package/dist/default/assets/icons/all/calendar.svg +1 -0
  3. package/dist/default/assets/icons/all/clock.svg +1 -0
  4. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  5. package/dist/default/assets/icons/all/micro.svg +1 -0
  6. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  7. package/dist/default/trilogy-mangled.css +1 -1
  8. package/dist/default/trilogy-partials.css +1 -1
  9. package/dist/default/trilogy.css +1 -1
  10. package/framework/src/_all.scss +2 -2
  11. package/framework/src/base/_all.scss +0 -1
  12. package/framework/src/base/_color.scss +1 -52
  13. package/framework/src/base/_elements.scss +1 -1
  14. package/framework/src/base/_generic.scss +9 -1
  15. package/framework/src/base/_helpers.scss +34 -44
  16. package/framework/src/base/_loading.scss +9 -2
  17. package/framework/src/base/_reset.scss +11 -1
  18. package/framework/src/components/_accordion.scss +55 -97
  19. package/framework/src/components/_autocomplete.scss +38 -0
  20. package/framework/src/components/_autolayout.scss +332 -0
  21. package/framework/src/components/_badge.scss +87 -0
  22. package/framework/src/components/_box.scss +168 -0
  23. package/framework/src/components/_breadcrumb.scss +29 -38
  24. package/framework/src/components/_button.scss +86 -0
  25. package/framework/src/components/_calendar.scss +129 -0
  26. package/framework/src/components/_card.scss +32 -86
  27. package/framework/src/components/_checkbox.scss +73 -0
  28. package/framework/src/components/_chips.scss +84 -0
  29. package/framework/src/{elements → components}/_container.scss +7 -46
  30. package/framework/src/components/_countdown.scss +49 -47
  31. package/framework/src/components/_date-picker.scss +58 -0
  32. package/framework/src/components/_divider.scss +49 -14
  33. package/framework/src/components/_dropdown.scss +166 -99
  34. package/framework/src/components/_fab.scss +25 -38
  35. package/framework/src/components/_flex-box.scss +1005 -0
  36. package/framework/src/{elements → components}/_icon.scss +12 -11
  37. package/framework/src/components/_image.scss +69 -0
  38. package/framework/src/components/_index.scss +53 -0
  39. package/framework/src/components/_link.scss +62 -0
  40. package/framework/src/components/_list.scss +66 -0
  41. package/framework/src/{elements → components}/_loader.scss +2 -2
  42. package/framework/src/components/_modal.scss +182 -158
  43. package/framework/src/components/_otp.scss +11 -30
  44. package/framework/src/components/_pagination.scss +60 -159
  45. package/framework/src/components/_popover.scss +260 -260
  46. package/framework/src/components/_price.scss +140 -165
  47. package/framework/src/components/_product-tour.scss +2 -4
  48. package/framework/src/components/_prompt.scss +156 -0
  49. package/framework/src/components/_radio.scss +85 -0
  50. package/framework/src/components/_range.scss +73 -72
  51. package/framework/src/components/_segmented-control.scss +55 -53
  52. package/framework/src/components/_select.scss +131 -0
  53. package/framework/src/components/_stepper.scss +81 -224
  54. package/framework/src/{elements → components}/_sticker.scss +34 -29
  55. package/framework/src/components/_switch.scss +97 -191
  56. package/framework/src/components/_table.scss +244 -0
  57. package/framework/src/components/_tabs.scss +114 -98
  58. package/framework/src/components/_tag.scss +114 -0
  59. package/framework/src/components/_text.scss +55 -0
  60. package/framework/src/components/_textarea.scss +46 -0
  61. package/framework/src/components/_timeline.scss +28 -113
  62. package/framework/src/components/_timepicker-circular.scss +88 -0
  63. package/framework/src/components/_timepicker.scss +79 -0
  64. package/framework/src/components/_title.scss +151 -0
  65. package/framework/src/{elements → components/alert}/_alert.scss +15 -12
  66. package/framework/src/components/alert/_index.scss +2 -0
  67. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  68. package/framework/src/components/input/_entry.scss +135 -0
  69. package/framework/src/{elements → components/input}/_form.scss +42 -33
  70. package/framework/src/components/input/_index.scss +4 -0
  71. package/framework/src/components/input/_input-gauge.scss +44 -0
  72. package/framework/src/components/input/_input-icons.scss +55 -0
  73. package/framework/src/components/progress/_index.scss +2 -0
  74. package/framework/src/components/progress/_progress-radial.scss +28 -0
  75. package/framework/src/{elements → components/progress}/_progress.scss +33 -24
  76. package/framework/src/elements/_index.scss +5 -0
  77. package/framework/src/elements/_other.scss +0 -41
  78. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  79. package/framework/src/grid/_columns.scss +278 -763
  80. package/framework/src/grid/_rows.scss +45 -38
  81. package/framework/src/layout/_all.scss +0 -1
  82. package/framework/src/layout/_hero.scss +92 -214
  83. package/framework/src/layout/_section.scss +10 -29
  84. package/framework/src/theming/_all.scss +3 -0
  85. package/framework/src/theming/buttons_partial.scss +32 -0
  86. package/framework/src/theming/common_partials.scss +10 -0
  87. package/framework/src/theming/links_partial.scss +20 -0
  88. package/framework/src/trilogy-mangled.scss +3 -3
  89. package/framework/src/trilogy.scss +3 -2
  90. package/framework/src/utilities/_a11y.scss +13 -0
  91. package/framework/src/utilities/_all.scss +4 -0
  92. package/framework/src/utilities/_background.scss +21 -0
  93. package/framework/src/utilities/_controls.scss +38 -49
  94. package/framework/src/utilities/_derived-variables.scss +0 -103
  95. package/framework/src/utilities/_initial-variables.scss +4 -144
  96. package/framework/src/utilities/_pre.scss +4 -1
  97. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  98. package/framework/src/utilities/mixins/_delete.scss +86 -0
  99. package/framework/src/utilities/mixins/_index.scss +11 -0
  100. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  101. package/framework/src/utilities/mixins/_mixins.scss +372 -0
  102. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  103. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  104. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  105. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  106. package/framework/src/utilities/mixins/_state.scss +25 -0
  107. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  108. package/framework/src/utilities/mixins/_utils.scss +24 -0
  109. package/framework/src/utilities/variables/_animation.scss +2 -0
  110. package/framework/src/utilities/variables/_color.scss +86 -0
  111. package/framework/src/utilities/variables/_font.scss +97 -0
  112. package/framework/src/utilities/variables/_index.scss +6 -0
  113. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  114. package/framework/src/utilities/variables/_shadow.scss +3 -0
  115. package/framework/src/utilities/variables/_zindex.scss +14 -0
  116. package/package.json +8 -3
  117. package/framework/src/components/_all.scss +0 -30
  118. package/framework/src/components/_autolayout2.scss +0 -38
  119. package/framework/src/components/_disclaimer.scss +0 -84
  120. package/framework/src/components/_level.scss +0 -120
  121. package/framework/src/components/_media.scss +0 -64
  122. package/framework/src/components/_menu.scss +0 -213
  123. package/framework/src/components/_progress-radial.scss +0 -23
  124. package/framework/src/components/_search-modal.scss +0 -197
  125. package/framework/src/components/_slices.scss +0 -316
  126. package/framework/src/components/_slider.scss +0 -92
  127. package/framework/src/elements/_all.scss +0 -35
  128. package/framework/src/elements/_badge.scss +0 -81
  129. package/framework/src/elements/_box.scss +0 -267
  130. package/framework/src/elements/_button.scss +0 -192
  131. package/framework/src/elements/_checkbox.scss +0 -39
  132. package/framework/src/elements/_checkradio.scss +0 -173
  133. package/framework/src/elements/_chips.scss +0 -100
  134. package/framework/src/elements/_dot.scss +0 -6
  135. package/framework/src/elements/_entry.scss +0 -109
  136. package/framework/src/elements/_image.scss +0 -59
  137. package/framework/src/elements/_input-gauge.scss +0 -37
  138. package/framework/src/elements/_input-icons.scss +0 -41
  139. package/framework/src/elements/_link.scss +0 -79
  140. package/framework/src/elements/_list.scss +0 -61
  141. package/framework/src/elements/_notification.scss +0 -151
  142. package/framework/src/elements/_options.scss +0 -146
  143. package/framework/src/elements/_paragraph.scss +0 -101
  144. package/framework/src/elements/_radio.scss +0 -67
  145. package/framework/src/elements/_select.scss +0 -315
  146. package/framework/src/elements/_switch.scss +0 -108
  147. package/framework/src/elements/_table.scss +0 -298
  148. package/framework/src/elements/_tag.scss +0 -131
  149. package/framework/src/elements/_textarea.scss +0 -125
  150. package/framework/src/elements/_timeline.scss +0 -283
  151. package/framework/src/elements/_title.scss +0 -139
  152. package/framework/src/layout/_toolbar.scss +0 -100
  153. package/framework/src/utilities/_mixins.scss +0 -744
@@ -1,144 +1,14 @@
1
1
  @use "sass:math";
2
2
 
3
- $step-width: 30px;
4
- $step-font-size: 18px;
5
- $step-gap: $step-width;
6
- $step-gap-desktop: $step-width * 3;
7
-
8
-
9
- // old stepper , déprécié since ( v2 )
10
- .stepper {
11
- display: inline-flex;
12
- position: relative;
13
-
14
- @include mobile {
15
- &::after {
16
- content: attr(data-label-mobile);
17
- position: absolute;
18
- bottom: 0;
19
- width: 100%;
20
- font-weight: $weight-semibold;
21
- color: getColor('alternate');
22
- }
23
- }
24
-
25
- .step {
26
- position: relative;
27
- z-index: zindex('void');
28
- display: inline-flex;
29
- justify-content: center;
30
- align-items: center;
31
- width: $step-width;
32
- height: $step-width;
33
- border-radius: 100%;
34
- background: getColor('grey-disabled');
35
- color: getColor('background');
36
- font-size: $step-font-size;
37
- transition: background .15s ease;
38
-
39
- &.is-done {
40
- background: getColor('font');
41
- }
42
-
43
- &.is-current,
44
- &.is-active {
45
- background: getColor('alternate');
46
- }
47
- }
48
-
49
- .step + .step {
50
- margin-left: $step-gap;
51
-
52
- @include desktop {
53
- margin-left: $step-gap-desktop;
54
- }
55
-
56
- &::before {
57
- content: '';
58
- height: 4px;
59
- width: $step-gap;
60
- display: block;
61
- position: absolute;
62
- z-index: zindex('subzero');
63
- left: -$step-gap;
64
- top: 50%;
65
- transform: translateY(-50%);
66
- transition: background .15s ease;
67
- background-color: getColor('grey-disabled');
68
-
69
- @include desktop {
70
- width: $step-gap-desktop;
71
- margin-left: -$step-gap-desktop + $step-width;
72
- }
73
- }
74
- }
75
-
76
- // done steps successively
77
- .step.is-done + .step.is-done::before {
78
- background: getColor('font');
79
- }
80
-
81
- // done step followed by current step
82
- .step.is-done + .step.is-current::before {
83
- background: linear-gradient(90deg, getColor('font'), getColor('alternate'));
84
- }
85
-
86
- // active step followed by done step(s)
87
- .step.is-active + .step.is-done::before {
88
- background: linear-gradient(90deg, getColor('alternate'), getColor('font'));
89
- }
90
-
91
- // current step followed by unvisited step(s)
92
- .step.is-current + .step::before {
93
- background: linear-gradient(90deg, getColor('alternate'), getColor('grey-disabled') 75%);
94
- }
95
-
96
- // labels
97
- .step[data-label] {
98
- margin-bottom: 40px;
99
-
100
- &::after {
101
- position: absolute;
102
- left: -$step-gap-desktop * 0.5;
103
- right: -$step-gap-desktop * 0.5;
104
- color: getColor('grey');
105
- font-size: $size-7;
106
- font-weight: $weight-semibold;
107
- top: 50px;
108
- text-align: center;
109
-
110
- @include desktop {
111
- content: attr(data-label);
112
- }
113
- }
114
-
115
- // active or current step
116
- &.is-current::after,
117
- &.is-active::after {
118
- color: getColor('alternate');
119
- }
120
- }
121
- }
122
-
123
- // back to grey label when going back in steps: the current step is followed by the active step
124
- .step[data-label].is-active ~ .step[data-label].is-current::after {
125
- color: getColor('grey');
126
- }
127
-
128
-
129
- // Nouveau stepper
130
-
131
3
  .stepper-wrapper {
132
4
  display: flex;
133
5
  position: relative;
134
6
  justify-content: space-between;
135
7
  min-height: 44px;
136
- margin-left: -8px;
137
- margin-right: -8px;
8
+ gap: $spacing-4;
138
9
 
139
10
  @include touch {
140
- margin-left: -4px !important;
141
- margin-right: -4px !important;
11
+ gap : $spacing-2;
142
12
  }
143
13
  }
144
14
 
@@ -146,43 +16,47 @@ $step-gap-desktop: $step-width * 3;
146
16
  display: flex;
147
17
  flex-direction: column;
148
18
  width: 100%;
149
- padding: $spacing-2;
150
19
 
151
- &:before{
20
+ &:before {
152
21
  content: "";
153
22
  display: block;
154
23
  height: 4px;
155
- background: getColor('grey-disabled');
156
- border-radius: 4px;
24
+ border-radius: var(--radius-small);
25
+ background-size: 200% !important;
26
+ background-color: getColor('neutral');
157
27
  }
158
28
 
159
29
  &.is-error {
160
30
 
161
- &:before{
162
- background: getColor('error') !important;
31
+ &:before {
32
+ background-color: getColor('error') !important;
33
+
163
34
  }
35
+ &.is-current{
36
+ &:before{
37
+ animation: progress 1s;
38
+ }
39
+
40
+ }
41
+
164
42
  .step-bars {
165
43
  background: getColor('error') !important;
166
44
  }
45
+
167
46
  color: getColor('font');
168
47
 
169
48
  .step-label {
170
49
 
171
- padding-left: $spacing-2;
172
-
173
- @include touch {
174
- padding-left: $spacing-1;
175
- }
176
-
177
50
  &::before {
178
51
  content: "";
179
- mask-image: url('./assets/icons/all/times-circle.svg') !important;
52
+ mask-image: url('./assets/icons/all/times.svg') !important;
180
53
  background-color: getColor('error') !important;
181
54
  border-width: 0;
55
+ mask-size: 20px;
182
56
  width: 20px;
183
57
  height: 20px;
184
- margin: 2px 8px 0 -8px;
185
58
  align-self: baseline;
59
+ margin-top: 2px;
186
60
  }
187
61
 
188
62
  .icon {
@@ -193,28 +67,26 @@ $step-gap-desktop: $step-width * 3;
193
67
 
194
68
  &.is-done {
195
69
 
196
- &:before{
197
- background: getColor('font');
198
- transition: background-color 2s ease-in-out;
70
+ &:before {
71
+ background-color: getColor('font');
199
72
  }
73
+
200
74
  .step-bars {
201
75
  background: getColor('font');
202
- transition: background-color 2s ease-in-out;
76
+ transition: background-color 1s ease-in-out;
203
77
  }
204
78
 
205
79
  .step-label {
206
- color: getColor('font');
207
- padding-left: $spacing-2;
208
-
209
80
  &::before {
210
81
  content: "";
211
82
  mask-image: url('./assets/icons/all/check-circle.svg');
212
83
  background-color: getColor('success');
213
84
  border-width: 0;
214
85
  min-width: 20px;
86
+ mask-size: 20px;
215
87
  height: 20px;
216
- margin: 2px 8px 0 -8px;
217
88
  align-self: baseline;
89
+ margin-top: 2px;
218
90
  }
219
91
  }
220
92
  }
@@ -222,28 +94,20 @@ $step-gap-desktop: $step-width * 3;
222
94
  &.is-current,
223
95
  &.is-active {
224
96
 
225
- &:before{
226
- background: getColor('alternate');
227
- animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
228
- -o-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
229
- -webkit-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
230
- -moz-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
97
+ &:before {
98
+ background-color: getColor('main');
99
+ animation: progress 1s;
231
100
  }
101
+
232
102
  .step-bars {
233
- background: getColor('alternate');
234
- animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
235
- -o-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
236
- -webkit-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
237
- -moz-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
103
+ background: getColor('main');
238
104
  }
239
105
 
240
106
  .step-label {
241
107
  font-style: normal;
242
108
  font-weight: 600;
243
- font-size: 22px;
244
- line-height: 24px;
245
- color: getColor('font');
246
- transition: color 1.45s ease;
109
+ font-size: 20px;
110
+ line-height: 22px;
247
111
  width: max-content;
248
112
 
249
113
  .icon [class^=tri-], .icon [class*=" tri-"] {
@@ -262,47 +126,53 @@ $step-gap-desktop: $step-width * 3;
262
126
  }
263
127
  }
264
128
  }
265
-
266
- @include touch {
267
- padding: $spacing-1 !important;
268
- }
269
129
  }
270
130
 
271
131
  .step-bars {
272
132
  height: 4px;
273
- background: getColor('grey-disabled');
274
- border-radius: 4px;
133
+ background: getColor('disabled');
134
+ border-radius: var(--radius-small);
275
135
  display: none;
276
136
  }
277
137
 
278
138
  .step-label {
279
139
  display: flex;
280
140
  align-items: center;
281
- color: getColor('grey');
141
+ color: getColor('font');
282
142
  font-style: normal;
283
143
  font-weight: 400;
284
144
  font-size: 16px;
285
145
  line-height: 24px;
286
- padding-top: $spacing-2;
287
-
146
+ gap: $spacing-1;
288
147
  .icon {
289
148
  font-size: 20px;
290
- margin-left: 8px;
291
149
  height: auto;
292
150
  }
151
+ }
293
152
 
294
- .icon [class^=tri-], .icon [class*=" tri-"] {
295
- margin: 0 4px 0 -4px;
296
- }
153
+ .stepper-wrapper > .stepper-item > .step-label {
154
+ padding-top: $spacing-2;
155
+ @include touch {
156
+ position: absolute;
157
+ top: 10px;
158
+ left: 0;
159
+ }
160
+ }
297
161
 
162
+ .stepper-container > .stepper-content > .step-label {
163
+ transition: opacity 0.3s ease-in-out;
164
+ animation: fadeInLabel 0.4s ease-out;
165
+ }
298
166
 
299
- @include touch {
300
- position: absolute;
301
- top: 10px;
302
- left: 4px;
303
- }
167
+ .stepper-content {
168
+ margin-bottom: $spacing-3 !important;
304
169
  }
305
170
 
171
+ .stepper-steps {
172
+ margin-bottom: $spacing-2 !important;
173
+ }
174
+
175
+
306
176
  @include desktop {
307
177
  .step-count {
308
178
  display: none;
@@ -326,6 +196,20 @@ $step-gap-desktop: $step-width * 3;
326
196
  display: none;
327
197
  }
328
198
  }
199
+
200
+ .stepper-container > .stepper-steps {
201
+ font-size: 12px !important;
202
+ line-height: 18px !important;
203
+ }
204
+
205
+ .stepper-container > .stepper-content > .step-label {
206
+ font-size: 14px !important;
207
+ line-height: 18px !important;
208
+ }
209
+
210
+ .stepper-container > .stepper-content > .icon {
211
+ font-size: 16px !important;
212
+ }
329
213
  }
330
214
 
331
215
  @include tablet-only {
@@ -340,58 +224,31 @@ $step-gap-desktop: $step-width * 3;
340
224
 
341
225
  .stepper-item:not(.is-current) {
342
226
  display: flex;
343
-
227
+
344
228
  .step-label {
345
- display: none;
229
+ display: none;
346
230
  }
347
231
  }
348
232
  }
349
233
 
350
- @keyframes cssload-width {
351
- 0%, 100% {
352
- transition-timing-function: cubic-bezier(1, 0, 0.65, 0.85);
353
- }
354
- 0% {
355
- width: 0;
356
- }
357
- 100% {
358
- width: 100%;
359
- }
360
- }
361
234
 
362
- @-o-keyframes cssload-width {
235
+ @keyframes progress {
363
236
  0%, 100% {
364
- -o-transition-timing-function: cubic-bezier(1, 0, 0.65, 0.85);
237
+ background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
365
238
  }
366
239
  0% {
367
- width: 0;
240
+ background-position: 100% 0;
368
241
  }
369
242
  100% {
370
- width: 100%;
243
+ background-position: 0 0;
371
244
  }
372
245
  }
373
246
 
374
- @-webkit-keyframes cssload-width {
375
- 0%, 100% {
376
- -webkit-transition-timing-function: cubic-bezier(1, 0, 0.65, 0.85);
377
- }
378
- 0% {
379
- width: 0;
380
- }
381
- 100% {
382
- width: 100%;
383
- }
384
- }
385
-
386
- @-moz-keyframes cssload-width {
387
- 0%, 100% {
388
- -moz-transition-timing-function: cubic-bezier(1, 0, 0.65, 0.85);
389
- }
247
+ @keyframes fadeInLabel {
390
248
  0% {
391
- width: 0;
249
+ opacity: 0;
392
250
  }
393
251
  100% {
394
- width: 100%;
252
+ opacity: 1;
395
253
  }
396
- }
397
-
254
+ }
@@ -1,8 +1,7 @@
1
1
  $sticker-height: 35px;
2
- $sticker-radius: $radius-large;
3
2
 
4
3
  .sticker {
5
- border-radius: 24px;
4
+ border-radius: 9999px;
6
5
  font-size: 16px;
7
6
  flex-grow: 0;
8
7
  display: inline-flex;
@@ -10,64 +9,70 @@ $sticker-radius: $radius-large;
10
9
  color: getColor('background') !important;
11
10
  line-height: 20px;
12
11
  flex-shrink: 0;
13
- background-color: getColor('font');
12
+ background-color: getColor('main');
14
13
  font-weight: 600;
14
+ max-height: 36px;
15
+
16
+ .icon {
17
+ font-size: 20px;
18
+ width: auto;
19
+ height: auto;
20
+ margin-right: $spacing-2;
21
+ }
22
+
23
+ &.is-small {
24
+ .icon {
25
+ margin-right: $spacing-1;
26
+ }
27
+ }
15
28
 
16
29
  &:not(.is-hat) {
17
30
  width: fit-content;
18
-
19
- @include mobile{
20
- border-radius: 16px;
31
+ @include mobile {
21
32
  font-size: 12px;
22
33
  padding: $spacing-1 $spacing-2;
23
34
  height: auto;
24
35
  line-height: 15px;
25
-
26
- &.is-flag {
27
- border-radius: 0 $sticker-radius 0 0;
36
+ .icon {
37
+ font-size: 16px;
38
+ margin-right: $spacing-1;
28
39
  }
29
-
30
40
  }
31
41
  }
32
42
 
33
-
34
- &.is-primary {
35
- background-color: getColor('main');
43
+ &.is-accent {
44
+ background-color: getColor('accent');
36
45
  color: getColor('background') !important;
37
46
  }
38
47
 
39
- &.is-flag {
40
- border-radius: 0 16px 0 0;
48
+ &.is-info {
49
+ background-color: getColor('info');
50
+ color: getColor('background') !important;
41
51
  }
42
52
 
43
- &.is-outlined,
44
53
  &.is-inverted {
45
54
  background-color: white !important;
46
55
  border-style: solid;
47
56
  border-width: 2px;
48
57
  border-color: currentColor;
49
- color: getColor('font') !important;
50
-
51
- &.is-primary {
52
- color: getColor('main') !important;
53
- }
58
+ color: currentColor;
54
59
  }
55
60
 
56
61
  &.is-small {
57
- border-radius: 16px;
58
62
  font-size: 12px;
59
63
  padding: $spacing-1 $spacing-2;
60
64
  height: auto;
61
65
  line-height: 15px;
62
-
63
- &.is-flag {
64
- border-radius: 0 $sticker-radius 0 0;
66
+ .icon {
67
+ font-size: 16px;
68
+ height: 15px;
69
+ margin-right: $spacing-1;
65
70
  }
66
71
  }
67
72
 
68
73
  // deprecated
69
74
  &.is-stretched {
70
- border-radius: $radius 0;
75
+ border-radius: var(--radius) 0;
71
76
  padding: 0 10px;
72
77
  position: relative;
73
78
  margin-right: 10px;
@@ -87,12 +92,12 @@ $sticker-radius: $radius-large;
87
92
  }
88
93
 
89
94
  &::before {
90
- border-radius: $radius 0 0 $radius;
95
+ border-radius: var(--radius) 0 0 var(--radius);
91
96
  left: -6px;
92
97
  }
93
98
 
94
99
  &::after {
95
- border-radius: 0 $radius $radius 0;
100
+ border-radius: 0 var(--radius) var(--radius) 0;
96
101
  right: -7px;
97
102
  }
98
103
  }
@@ -111,7 +116,7 @@ $sticker-radius: $radius-large;
111
116
  .has-hat-mobile {
112
117
  .is-hat {
113
118
  display: inline-block;
114
- border-radius: $radius $radius 0 0;
119
+ border-radius: var(--radius) var(--radius) 0 0;
115
120
  position: absolute;
116
121
  top: -$sticker-height;
117
122
  left: 0;