@trilogy-ds/styles 0.0.3-beta-v4 → 0.0.3-calendar

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 (101) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/_all.scss +2 -2
  5. package/framework/src/base/_all.scss +1 -1
  6. package/framework/src/base/_color.scss +0 -21
  7. package/framework/src/base/_elements.scss +1 -1
  8. package/framework/src/base/_generic.scss +5 -0
  9. package/framework/src/base/_helpers.scss +21 -6
  10. package/framework/src/base/_loading.scss +2 -2
  11. package/framework/src/base/_reset.scss +6 -1
  12. package/framework/src/components/_accordion.scss +4 -3
  13. package/framework/src/components/_autocomplete.scss +38 -0
  14. package/framework/src/components/_autolayout.scss +139 -109
  15. package/framework/src/{elements → components}/_badge.scss +1 -1
  16. package/framework/src/{elements → components}/_box.scss +9 -11
  17. package/framework/src/components/_breadcrumb.scss +17 -31
  18. package/framework/src/{elements → components}/_button.scss +16 -3
  19. package/framework/src/components/_calendar.scss +128 -0
  20. package/framework/src/components/_card.scss +26 -9
  21. package/framework/src/{elements → components}/_checkbox.scss +30 -1
  22. package/framework/src/components/_countdown.scss +1 -1
  23. package/framework/src/components/_divider.scss +16 -0
  24. package/framework/src/components/_flex-box.scss +457 -0
  25. package/framework/src/components/_index.scss +48 -0
  26. package/framework/src/{elements → components}/_link.scss +9 -3
  27. package/framework/src/components/_list.scss +66 -0
  28. package/framework/src/components/_modal.scss +32 -11
  29. package/framework/src/components/_otp.scss +2 -2
  30. package/framework/src/components/_pagination.scss +5 -2
  31. package/framework/src/components/_price.scss +28 -2
  32. package/framework/src/{elements → components}/_radio.scss +4 -3
  33. package/framework/src/components/_segmented-control.scss +9 -5
  34. package/framework/src/components/_select.scss +131 -0
  35. package/framework/src/components/_stepper.scss +1 -1
  36. package/framework/src/{elements → components}/_sticker.scss +13 -1
  37. package/framework/src/{elements → components}/_switch.scss +13 -8
  38. package/framework/src/{elements → components}/_table.scss +9 -10
  39. package/framework/src/components/_tabs.scss +66 -28
  40. package/framework/src/{elements → components}/_tag.scss +1 -17
  41. package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
  42. package/framework/src/components/_textarea.scss +46 -0
  43. package/framework/src/components/_timeline.scss +1 -1
  44. package/framework/src/{elements → components}/_title.scss +10 -0
  45. package/framework/src/components/alert/_index.scss +2 -0
  46. package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
  47. package/framework/src/{elements → components/input}/_entry.scss +48 -10
  48. package/framework/src/{elements → components/input}/_form.scss +18 -12
  49. package/framework/src/components/input/_index.scss +4 -0
  50. package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
  51. package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
  52. package/framework/src/components/progress/_index.scss +2 -0
  53. package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
  54. package/framework/src/{elements → components/progress}/_progress.scss +3 -3
  55. package/framework/src/elements/_index.scss +5 -0
  56. package/framework/src/elements/_other.scss +0 -4
  57. package/framework/src/grid/_columns.scss +33 -11
  58. package/framework/src/layout/_hero.scss +4 -0
  59. package/framework/src/layout/_section.scss +5 -0
  60. package/framework/src/theming/buttons_partial.scss +1 -1
  61. package/framework/src/theming/common_partials.scss +1 -1
  62. package/framework/src/trilogy-mangled.scss +3 -3
  63. package/framework/src/trilogy.scss +2 -2
  64. package/framework/src/utilities/_background.scss +3 -1
  65. package/framework/src/utilities/_derived-variables.scss +0 -92
  66. package/framework/src/utilities/_initial-variables.scss +3 -111
  67. package/framework/src/utilities/_pre.scss +3 -1
  68. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  69. package/framework/src/utilities/mixins/_delete.scss +86 -0
  70. package/framework/src/utilities/mixins/_index.scss +11 -0
  71. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  72. package/framework/src/utilities/mixins/_mixins.scss +293 -0
  73. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  74. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  75. package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
  76. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  77. package/framework/src/utilities/mixins/_state.scss +25 -0
  78. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  79. package/framework/src/utilities/mixins/_utils.scss +24 -0
  80. package/framework/src/utilities/variables/_animation.scss +2 -0
  81. package/framework/src/utilities/{_colors.scss → variables/_color.scss} +45 -0
  82. package/framework/src/utilities/variables/_font.scss +97 -0
  83. package/framework/src/utilities/variables/_index.scss +6 -0
  84. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  85. package/framework/src/utilities/variables/_shadow.scss +3 -0
  86. package/framework/src/utilities/variables/_zindex.scss +14 -0
  87. package/package.json +1 -1
  88. package/framework/src/components/_all.scss +0 -24
  89. package/framework/src/elements/_all.scss +0 -32
  90. package/framework/src/elements/_autocomplete.scss +0 -32
  91. package/framework/src/elements/_list.scss +0 -62
  92. package/framework/src/elements/_select.scss +0 -96
  93. package/framework/src/elements/_textarea.scss +0 -133
  94. package/framework/src/utilities/_mixins.scss +0 -635
  95. /package/framework/src/{elements → components}/_chips.scss +0 -0
  96. /package/framework/src/{elements → components}/_container.scss +0 -0
  97. /package/framework/src/{elements → components}/_icon.scss +0 -0
  98. /package/framework/src/{elements → components}/_image.scss +0 -0
  99. /package/framework/src/{elements → components}/_loader.scss +0 -0
  100. /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
  101. /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
@@ -0,0 +1,457 @@
1
+ @use 'sass:math';
2
+
3
+ .flex-box {
4
+ display: flex;
5
+ gap: 8px;
6
+ --ColumnGap: 8px;
7
+ flex-direction: row;
8
+ justify-content: flex-start;
9
+
10
+ // DIRECTION
11
+ &.is-direction-column {
12
+ flex-direction: column;
13
+ }
14
+
15
+ &.is-direction-row {
16
+ flex-direction: row;
17
+ }
18
+
19
+ &.is-direction-row-reverse {
20
+ flex-direction: row-reverse;
21
+ }
22
+
23
+ &.is-direction-column-reverse {
24
+ flex-direction: column-reverse;
25
+ }
26
+
27
+ @include desktop {
28
+ &.is-direction-row-desktop {
29
+ flex-direction: row;
30
+ }
31
+
32
+ &.is-direction-column-desktop {
33
+ flex-direction: column;
34
+ }
35
+
36
+ &.is-direction-row-reverse-desktop {
37
+ flex-direction: row-reverse;
38
+ }
39
+
40
+ &.is-direction-column-reverse-desktop {
41
+ flex-direction: column-reverse;
42
+ }
43
+ }
44
+
45
+ @include tablet {
46
+ &.is-direction-row-tablet {
47
+ flex-direction: row;
48
+ }
49
+
50
+ &.is-direction-column-tablet {
51
+ flex-direction: column;
52
+ }
53
+
54
+ &.is-direction-row-reverse-tablet {
55
+ flex-direction: row-reverse;
56
+ }
57
+
58
+ &.is-direction-column-reverse-tablet {
59
+ flex-direction: column-reverse;
60
+ }
61
+ }
62
+
63
+ @include mobile {
64
+ &:has(>.flex-item):not([class*='is-direction']) {
65
+ flex-direction: column;
66
+ }
67
+
68
+ &.is-direction-row-mobile {
69
+ flex-direction: row;
70
+ }
71
+
72
+ &.is-direction-column-mobile {
73
+ flex-direction: column;
74
+ }
75
+
76
+ &.is-direction-row-reverse-mobile {
77
+ flex-direction: row-reverse;
78
+ }
79
+
80
+ &.is-direction-column-reverse-mobile {
81
+ flex-direction: column-reverse;
82
+ }
83
+ }
84
+
85
+ // ALIGN ITEMS
86
+ &.is-aligned-start {
87
+ align-items: flex-start;
88
+ }
89
+
90
+ &.is-aligned-end {
91
+ align-items: flex-end;
92
+ }
93
+
94
+ &.is-aligned-center {
95
+ align-items: center;
96
+ }
97
+
98
+ &.is-aligned-stretch {
99
+ align-items: stretch;
100
+ }
101
+
102
+ @include mobile {
103
+ &.is-aligned-start-mobile {
104
+ align-items: flex-start;
105
+ }
106
+
107
+ &.is-aligned-end-mobile {
108
+ align-items: flex-end;
109
+ }
110
+
111
+ &.is-aligned-center-mobile {
112
+ align-items: center;
113
+ }
114
+
115
+ &.is-aligned-stretch-mobile {
116
+ align-items: stretch;
117
+ }
118
+ }
119
+
120
+ @include tablet {
121
+ &.is-aligned-start-tablet {
122
+ align-items: flex-start;
123
+ }
124
+
125
+ &.is-aligned-end-tablet {
126
+ align-items: flex-end;
127
+ }
128
+
129
+ &.is-aligned-center-tablet {
130
+ align-items: center;
131
+ }
132
+
133
+ &.is-aligned-stretch-tablet {
134
+ align-items: stretch;
135
+ }
136
+ }
137
+
138
+ @include desktop {
139
+ &.is-aligned-start-desktop {
140
+ align-items: flex-start;
141
+ }
142
+
143
+ &.is-aligned-end-desktop {
144
+ align-items: flex-end;
145
+ }
146
+
147
+ &.is-aligned-center-desktop {
148
+ align-items: center;
149
+ }
150
+
151
+ &.is-aligned-stretch-desktop {
152
+ align-items: stretch;
153
+ }
154
+ }
155
+
156
+ // JUSTIFY CONTENT
157
+ &.is-justified-start {
158
+ justify-content: flex-start;
159
+ }
160
+
161
+ &.is-justified-end {
162
+ justify-content: flex-end;
163
+ }
164
+
165
+ &.is-justified-center {
166
+ justify-content: center;
167
+ }
168
+
169
+ &.is-spaced-between {
170
+ justify-content: space-between;
171
+ }
172
+
173
+ &.is-spaced-around {
174
+ justify-content: space-around;
175
+ }
176
+
177
+ &.is-spaced-evenly {
178
+ justify-content: space-evenly;
179
+ }
180
+
181
+ @include mobile {
182
+ &.is-justified-start-mobile {
183
+ justify-content: flex-start;
184
+ }
185
+
186
+ &.is-justified-end-mobile {
187
+ justify-content: flex-end;
188
+ }
189
+
190
+ &.is-justified-center-mobile {
191
+ justify-content: center;
192
+ }
193
+
194
+ &.is-spaced-between-mobile {
195
+ justify-content: space-between;
196
+ }
197
+
198
+ &.is-spaced-around-mobile {
199
+ justify-content: space-around;
200
+ }
201
+
202
+ &.is-spaced-evenly-mobile {
203
+ justify-content: space-evenly;
204
+ }
205
+ }
206
+
207
+ @include tablet {
208
+ &.is-justified-start-tablet {
209
+ justify-content: flex-start;
210
+ }
211
+
212
+ &.is-justified-end-tablet {
213
+ justify-content: flex-end;
214
+ }
215
+
216
+ &.is-justified-center-tablet {
217
+ justify-content: center;
218
+ }
219
+
220
+ &.is-spaced-between-tablet {
221
+ justify-content: space-between;
222
+ }
223
+
224
+ &.is-spaced-around-tablet {
225
+ justify-content: space-around;
226
+ }
227
+
228
+ &.is-spaced-evenly-tablet {
229
+ justify-content: space-evenly;
230
+ }
231
+ }
232
+
233
+ @include desktop {
234
+ &.is-justified-start-desktop {
235
+ justify-content: flex-start;
236
+ }
237
+
238
+ &.is-justified-end-desktop {
239
+ justify-content: flex-end;
240
+ }
241
+
242
+ &.is-justified-center-desktop {
243
+ justify-content: center;
244
+ }
245
+
246
+ &.is-spaced-between-desktop {
247
+ justify-content: space-between;
248
+ }
249
+
250
+ &.is-spaced-around-desktop {
251
+ justify-content: space-around;
252
+ }
253
+
254
+ &.is-spaced-evenly-desktop {
255
+ justify-content: space-evenly;
256
+ }
257
+ }
258
+
259
+ &.is-scrollable {
260
+ overflow: auto;
261
+ width: calc(100% + 48px) !important;
262
+ margin: -24px auto -24px 50% !important;
263
+ transform: translate(-50%);
264
+ padding: 24px;
265
+ scroll-padding: 24px;
266
+ scroll-behavior: smooth;
267
+ scroll-snap-type: x mandatory;
268
+
269
+ @include mobile {
270
+ width: calc(100% + 32px) !important;
271
+ margin: -16px auto -16px 50% !important;
272
+ padding: 16px;
273
+ scroll-padding: 16px;
274
+ }
275
+
276
+ &:not(:last-child) {
277
+ margin-bottom: auto !important;
278
+ }
279
+
280
+ .flex-item {
281
+ scroll-snap-align: center;
282
+ }
283
+ }
284
+
285
+
286
+ // GAP
287
+ $gap: 4px, 8px, 12px, 16px, 24px, 32px, 40px, 48px, 54px, 62px;
288
+
289
+ @for $i from 1 through length($gap) {
290
+ $item: nth($gap, $i);
291
+ &.is-mobile.has-gap-#{$i} {
292
+ gap: $item;
293
+
294
+ > .flex-item {
295
+ --ColumnGap: #{$item};
296
+ }
297
+ }
298
+
299
+ @include mobile {
300
+ &.has-gap-#{$i}-mobile {
301
+ gap: $item;
302
+
303
+ > .flex-item {
304
+ --ColumnGap: #{$item};
305
+ }
306
+ }
307
+ }
308
+
309
+ @include tablet {
310
+ &.has-gap-#{$i}:not(.is-desktop),
311
+ &.has-gap-#{$i}-tablet {
312
+ gap: $item;
313
+
314
+ > .flex-item {
315
+ --ColumnGap: #{$item};
316
+ }
317
+ }
318
+ }
319
+
320
+ @include desktop {
321
+ &.has-gap-#{$i},
322
+ &.has-gap-#{$i}-desktop {
323
+ gap: $item;
324
+
325
+ > .flex-item {
326
+ --ColumnGap: #{$item};
327
+ }
328
+ }
329
+ }
330
+
331
+ @include widescreen {
332
+ &.has-gap-#{$i}-widescreen {
333
+ gap: $item;
334
+
335
+ > .flex-item {
336
+ --ColumnGap: #{$item};
337
+ }
338
+ }
339
+ }
340
+
341
+ @include fullhd {
342
+ &.has-gap-#{$i}-fullhd {
343
+ gap: $item;
344
+
345
+ > .flex-item {
346
+ --ColumnGap: #{$item};
347
+ }
348
+ }
349
+ }
350
+ }
351
+
352
+ &.is-gapless {
353
+ gap: 0;
354
+
355
+ > .flex-item {
356
+ --ColumnGap: 1px;
357
+ }
358
+ }
359
+
360
+ $itemWidth: calc((100% / (var(--ColumnFraction))) - ((((var(--ColumnFraction)) - 1) / (var(--ColumnFraction))) * var(--ColumnGap)));
361
+ $itemSize: (
362
+ "1" : math.div(12, 1),
363
+ "2" : math.div(12, 2),
364
+ "3" : math.div(12, 3),
365
+ "4" : math.div(12, 4),
366
+ "5" : math.div(12, 5),
367
+ "6" : math.div(12, 6),
368
+ "7" : math.div(12, 7),
369
+ "8" : math.div(12, 8),
370
+ "9" : math.div(12, 9),
371
+ "10" : math.div(12, 10),
372
+ "11" : math.div(12, 11),
373
+ "12" : math.div(12, 12),
374
+ "full" : math.div(12, 12),
375
+ "half" : math.div(12, 6)
376
+ );
377
+
378
+ // SIZE
379
+ .flex-item {
380
+ width: 100%;
381
+
382
+ &.is-narrow {
383
+ width: auto;
384
+ }
385
+
386
+ &[class*="is-"]:not(.is-narrow) {
387
+ width: #{$itemWidth};
388
+ }
389
+
390
+ &:not(.is-narrow) {
391
+ @include mobile {
392
+ --ColumnFraction: 1;
393
+ }
394
+ }
395
+ }
396
+
397
+ @each $key, $value in $itemSize {
398
+ .flex-item.is-#{$key} {
399
+ flex: none;
400
+ --ColumnFraction: #{$value};
401
+ }
402
+ }
403
+
404
+ @include mobile {
405
+ @each $key, $value in $itemSize {
406
+ .flex-item.is-#{$key}-mobile {
407
+ flex: none;
408
+ --ColumnFraction: #{$value};
409
+ }
410
+ }
411
+ }
412
+
413
+ @include tablet {
414
+ @each $key, $value in $itemSize {
415
+ .flex-item.is-#{$key}-tablet {
416
+ flex: none;
417
+ --ColumnFraction: #{$value};
418
+ }
419
+ }
420
+ }
421
+
422
+ @include touch {
423
+ @each $key, $value in $itemSize {
424
+ .flex-item.is-#{$key}-touch {
425
+ flex: none;
426
+ --ColumnFraction: #{$value};
427
+ }
428
+ }
429
+ }
430
+
431
+ @include desktop {
432
+ @each $key, $value in $itemSize {
433
+ .flex-item.is-#{$key}-desktop {
434
+ flex: none;
435
+ --ColumnFraction: #{$value};
436
+ }
437
+ }
438
+ }
439
+
440
+ @include widescreen {
441
+ @each $key, $value in $itemSize {
442
+ .flex-item.is-#{$key}-widescreen {
443
+ flex: none;
444
+ --ColumnFraction: #{$value};
445
+ }
446
+ }
447
+ }
448
+
449
+ @include fullhd {
450
+ @each $key, $value in $itemSize {
451
+ .flex-item.is-#{$key}-fullhd {
452
+ flex: none;
453
+ --ColumnFraction: #{$value};
454
+ }
455
+ }
456
+ }
457
+ }
@@ -0,0 +1,48 @@
1
+ @charset "utf-8";
2
+ @import '../utilities/spacing';
3
+
4
+ @import 'accordion';
5
+ @import 'alert';
6
+ @import 'autocomplete';
7
+ @import 'autolayout';
8
+ @import 'badge';
9
+ @import 'box';
10
+ @import 'breadcrumb';
11
+ @import 'button';
12
+ @import 'calendar';
13
+ @import 'card';
14
+ @import 'checkbox';
15
+ @import 'chips';
16
+ @import 'container';
17
+ @import 'countdown';
18
+ @import 'divider';
19
+ @import 'fab';
20
+ @import 'flex-box';
21
+ @import 'icon';
22
+ @import 'image';
23
+ @import 'input';
24
+ @import 'link';
25
+ @import 'list';
26
+ @import 'loader';
27
+ @import 'modal';
28
+ @import 'otp';
29
+ @import 'pagination';
30
+ @import 'popover';
31
+ @import 'price';
32
+ @import 'product-tour';
33
+ @import 'progress';
34
+ @import 'radio';
35
+ @import 'range';
36
+ @import 'scroll-view';
37
+ @import 'segmented-control';
38
+ @import 'select';
39
+ @import 'stepper';
40
+ @import 'sticker';
41
+ @import 'switch';
42
+ @import 'table';
43
+ @import 'tabs';
44
+ @import 'tag';
45
+ @import 'text';
46
+ @import 'textarea';
47
+ @import 'timeline';
48
+ @import 'title';
@@ -11,18 +11,23 @@
11
11
  font-weight: $weight-normal;
12
12
  color: getColor($link-colors);
13
13
  box-decoration-break: clone;
14
- text-decoration: underline 2px solid;
14
+ text-decoration: underline;
15
+ text-decoration-thickness : 2px;
15
16
  text-underline-offset: 4px;
16
17
  cursor: pointer;
17
18
 
18
19
  &.has-icon {
19
- display: inline-flex;
20
+ display: inline-block;
20
21
  align-items: center;
21
22
 
22
23
  &::after {
23
24
  width: calc(100% - 48px);
24
25
  bottom: 5.5px;
25
26
  }
27
+
28
+ .icon {
29
+ vertical-align: middle;
30
+ }
26
31
  }
27
32
 
28
33
  &.is-inverted {
@@ -44,7 +49,8 @@
44
49
 
45
50
  .text .link:not([disabled]) {
46
51
  text-underline-offset: 2px;
47
- text-decoration: underline 1px solid;
52
+ text-decoration: underline;
53
+ text-decoration-thickness : 1px;
48
54
  &:hover {
49
55
  font-weight: $weight-normal;
50
56
  filter: brightness(0.8);
@@ -0,0 +1,66 @@
1
+ // Bullet list classiques
2
+ ol.list {
3
+ counter-reset: customCounter;
4
+
5
+ & > li.list-item {
6
+ counter-increment: customCounter;
7
+ &:not(:has(.icon)) {
8
+ &::before{
9
+ content: counter(customCounter) ". ";
10
+ margin-right:$spacing-4;
11
+ font-weight: $weight-bold;
12
+ font-size: $text-14 !important;
13
+ font-family: $family-secondary;
14
+ line-height: 1.5 !important;
15
+
16
+ }
17
+ }
18
+ }
19
+ }
20
+
21
+ ul.list {
22
+ li.list-item {
23
+ &:not(:has(.icon)) {
24
+ &::before{
25
+ content:'.';
26
+ margin-right:$spacing-4;
27
+ font-weight: 900;
28
+ font-size: $text-24;
29
+ line-height: 8px;
30
+ }
31
+ }
32
+ }
33
+ }
34
+
35
+ ul.list,
36
+ ol.list {
37
+ display: grid;
38
+ row-gap: $spacing-3;
39
+
40
+ li.list-item {
41
+ display: flex;
42
+ &:has(.icon) {
43
+ list-style: none;
44
+ display: flex;
45
+ }
46
+ .icon {
47
+ margin-right: $spacing-2;
48
+ justify-content: flex-start;
49
+ align-items: flex-start;
50
+ }
51
+ .list-item-content {
52
+ flex: 1;
53
+ }
54
+ }
55
+
56
+ &.has-divider {
57
+ li {
58
+ border-bottom: var(--border);
59
+ padding-bottom: $spacing-3;
60
+ &:last-child {
61
+ border-bottom: none;
62
+ padding-bottom: 0;
63
+ }
64
+ }
65
+ }
66
+ }
@@ -48,13 +48,12 @@ body:has(.modal.is-active) {
48
48
  }
49
49
  }
50
50
 
51
- // gestion des tailles
52
51
  @include tablet {
53
52
  justify-content: center;
54
- @each $dimension in $dimensions-extended {
55
- &.is-#{$dimension} {
53
+ @each $name, $dimension in $modal-dimensions {
54
+ &.is-#{$name} {
56
55
  .modal-content {
57
- width: map-get($modal-dimensions, $dimension);
56
+ width: $dimension;
58
57
  }
59
58
  }
60
59
  }
@@ -76,7 +75,7 @@ body:has(.modal.is-active) {
76
75
  width: 100%;
77
76
  z-index: zindex('tiny');
78
77
  transition: transform ease-in-out 250ms;
79
- transform: translateY(100%);
78
+ transform: translateY(50%);
80
79
 
81
80
  @include tablet {
82
81
  max-height: calc(100vh - 120px);
@@ -110,20 +109,23 @@ body:has(.modal.is-active) {
110
109
  .modal-header {
111
110
  padding: $spacing-5;
112
111
  color: getColor('font');
113
- font-family: $family-sans-serif;
112
+ font-family: $family-primary;
114
113
  font-size: $size-3;
115
114
  font-weight: $weight-semibold;
116
115
  line-height: 1.1;
117
116
  background-color: getColor('background');
118
- z-index: zindex('small');
117
+ z-index: zindex('medium');
119
118
  position: sticky;
120
119
  top: 0;
121
120
  width: 100%;
122
121
  word-wrap: break-word;
123
122
  display: flex;
124
- flex-direction: row-reverse;
125
123
  justify-content: space-between;
126
124
 
125
+ &:has(.modal-close) {
126
+ flex-direction: row-reverse;
127
+ }
128
+
127
129
  &:has(.icon) {
128
130
  text-align: center;
129
131
  }
@@ -139,7 +141,7 @@ body:has(.modal.is-active) {
139
141
  display: block;
140
142
  height: $modal-close-dimensions;
141
143
  width: $modal-close-dimensions;
142
- z-index: zindex('medium');
144
+ z-index: zindex('large');
143
145
 
144
146
  #{$hoverSelector} {
145
147
  background-color: getColor('neutral-fade');
@@ -149,12 +151,22 @@ body:has(.modal.is-active) {
149
151
  &::before {
150
152
  background-color: getColor('font');
151
153
  }
154
+
155
+ &:focus-visible,
156
+ &:focus:focus-visible {
157
+ outline: 2px solid getColor('font') !important;
158
+ outline-offset: 2px;
159
+ }
160
+ &:focus{
161
+ background-color: transparent !important;
162
+ }
152
163
  }
153
164
  }
154
165
 
155
166
  .modal-body {
156
- padding: $spacing-5;
157
- padding-top: 0;
167
+ padding: 0 $spacing-5 $spacing-5 ;
168
+ }
169
+ &:has(>.modal-footer) > .modal-body {
158
170
  padding-bottom: 0;
159
171
  }
160
172
 
@@ -165,9 +177,18 @@ body:has(.modal.is-active) {
165
177
  background: getColor('background');
166
178
  bottom: 0;
167
179
 
180
+ .buttons {
181
+ display: flex;
182
+ flex-direction: column-reverse;
183
+ }
184
+
168
185
  @include tablet {
169
186
  display: flex;
170
187
  justify-content: flex-end;
188
+
189
+ .buttons {
190
+ flex-direction: row;
191
+ }
171
192
  }
172
193
  }
173
194
  }
@@ -5,14 +5,14 @@
5
5
  .otp {
6
6
  @include hover();
7
7
  outline: none;
8
- border: 1px solid currentColor;
8
+ border: var(--border);
9
9
  border-radius: var(--radius-small);
10
10
  background: transparent;
11
11
  width: 33px;
12
12
  height: 40px;
13
13
  margin: 4px 4px 0 4px;
14
14
  text-align: center;
15
- color: getColor('neutral');
15
+ color: getColor('main');
16
16
 
17
17
  &:first-child {
18
18
  margin: 4px 4px 0 0;