@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
@@ -0,0 +1,86 @@
1
+ $button-border-width: 2px !default;
2
+
3
+ .buttons {
4
+ width: 100%;
5
+ column-gap: 16px;
6
+
7
+ &.is-vertical {
8
+ row-gap: 16px;
9
+ }
10
+
11
+ @include tablet {
12
+ display: flex;
13
+ align-items: center;
14
+ width: auto;
15
+ }
16
+
17
+ &.is-centered,
18
+ &.has-text-centered,
19
+ .has-text-centered & {
20
+ justify-content: center;
21
+ }
22
+ }
23
+
24
+ .button {
25
+ @include control;
26
+ @include unselectable;
27
+ @extend %buttons-states;
28
+
29
+ background-color: white;
30
+ border-width: $button-border-width;
31
+ border-radius: var(--radius-small);
32
+ cursor: pointer;
33
+ justify-content: center;
34
+ text-align: center;
35
+ white-space: nowrap;
36
+ padding: 0 $spacing-4;
37
+ text-decoration: inherit;
38
+ font-weight: $weight-semibold;
39
+
40
+ @include mobile {
41
+ width: 100%;
42
+ margin: 8px 0 !important;
43
+ }
44
+
45
+ @each $name, $pair in $button-colors {
46
+ $variantName: nth($pair, 1);
47
+ $colorBG: getColor(#{nth($pair, 2)});
48
+ $colorText: getColor(nth($pair, 3));
49
+
50
+ &.is-#{$variantName} {
51
+ background-color: $colorBG;
52
+ color: $colorText;
53
+ }
54
+ }
55
+
56
+ &.is-ghost:hover:not([disabled]) {
57
+ background-color: var(--color-main-fade);
58
+ filter: none !important;
59
+ }
60
+
61
+ &[disabled],
62
+ &[aria-disabled=true] {
63
+ border-color: transparent !important;
64
+ background-color: getColor('main-fade') !important;
65
+ color: getColor('disabled') !important
66
+ }
67
+
68
+ [aria-disabled=true] {
69
+ pointer-events: none;
70
+ }
71
+ &:has(.icon) {
72
+ gap: $spacing-2;
73
+ }
74
+
75
+ .icon {
76
+ width: auto;
77
+ }
78
+
79
+ &.is-loading {
80
+ background-color: getColor('neutral');
81
+ &::after {
82
+ @include spinner('neutral-fade');
83
+ }
84
+ }
85
+
86
+ }
@@ -0,0 +1,129 @@
1
+ .calendar {
2
+ border-collapse: separate;
3
+ box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
4
+ padding: 24px;
5
+ border-radius: 8px;
6
+ border-spacing: 0 8px;
7
+ background-color: getColor('background');
8
+
9
+ button {
10
+ all: unset;
11
+ &:focus-visible:not(.is-disabled, .is-active), &:hover:not(.is-disabled, .is-active){
12
+ background-color: getColor('main-fade');
13
+ }
14
+
15
+ &.is-active:hover, &.is-active:focus-visible,
16
+ &.is-disabled:hover, &.is-disabled:focus-visible {
17
+ filter: brightness(80%);
18
+ }
19
+ }
20
+
21
+ &-range.calendar-range-init {
22
+ .calendar-week-day:not(.calendar-date-in-range) {
23
+ button:focus-visible:not(.is-disabled, .is-active), button:hover:not(.is-disabled, .is-active){
24
+ background-color: getColor('main');
25
+ color: getColor('background');
26
+ }
27
+ }
28
+ }
29
+
30
+ &-date-in-range {
31
+ button:not(.is-disabled, .is-active){
32
+ background-color: getColor('main-fade');
33
+ border-radius: 0px;
34
+ &:hover {
35
+ filter: brightness(95%) ;
36
+ border-radius: 4px;
37
+ }
38
+ }
39
+
40
+ &.calendar-date-rounded-left {
41
+ button:not(.is-disabled, .is-active){
42
+ border-radius: 8px 0 0 8px;
43
+ }
44
+ }
45
+
46
+ &.calendar-date-rounded-right {
47
+ button:not(.is-disabled, .is-active){
48
+ border-radius: 0px 8px 8px 0;
49
+ }
50
+ }
51
+ }
52
+
53
+ &-next-month, &-prev-month {
54
+ padding-bottom: 16px;
55
+ button {
56
+ text-align: center;
57
+ border-radius: 4px;
58
+ width: 36px;
59
+ height: 36px;
60
+ i {
61
+ height: 100%;
62
+ }
63
+ }
64
+ }
65
+
66
+ &-week-day {
67
+ text-align: center !important;
68
+ vertical-align: middle;
69
+ &-disabled {
70
+ button {
71
+ color: getColor('disabled');
72
+ background-color: getColor('disabled-fade');
73
+ }
74
+ }
75
+ &-label {
76
+ padding: 4px;
77
+ text-align: center !important;
78
+ width: 36px;
79
+ color: getColor('font-placeholder');
80
+ }
81
+ button {
82
+ display: block;
83
+ width: 36px;
84
+ height: 36px;
85
+ border-radius: 4px;
86
+ }
87
+ }
88
+
89
+ &-active-month {
90
+ height: 28px;
91
+ text-align: center !important;
92
+ position: relative;
93
+ padding-bottom: 16px;
94
+ .icon {
95
+ vertical-align: bottom;
96
+ }
97
+ button {
98
+ padding: 2px 6px;
99
+ border-radius: 4px;
100
+ }
101
+ }
102
+
103
+ &-active-date button {
104
+ background-color: getColor('main');
105
+ color: getColor('background');
106
+ }
107
+
108
+ &-header-dropdown {
109
+ display: flex;
110
+ gap: $spacing-3;
111
+ justify-content: center;
112
+ .select{
113
+ margin-bottom: 0 !important;
114
+ width: 40%;
115
+ select {
116
+ height: 30px !important;
117
+ margin-bottom: 0 !important;
118
+ padding: 0px 25px 0px 5px;
119
+ &:focus{
120
+ padding-left: 4px !important;
121
+ }
122
+ }
123
+ .control:after {
124
+ right: -8px !important;
125
+ }
126
+ }
127
+ }
128
+
129
+ }
@@ -1,14 +1,28 @@
1
+ $basis-values: (
2
+ 'is-1': 70%,
3
+ 'is-2': 60%,
4
+ 'is-3': 50%,
5
+ 'is-4': 40%
6
+ );
7
+
8
+
1
9
  .card {
2
10
  max-width: 100%;
3
11
  display: flex;
4
- border-radius: $radius;
12
+ border-radius: var(--radius);
13
+ overflow: hidden;
5
14
  flex-direction: column;
6
15
  position: relative;
7
16
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
8
- background-color: getColor("background");
17
+ background-color: getColor('background');
18
+
19
+ &:not(.is-reversed) .card-image {
20
+ order: 1;
21
+ }
22
+
9
23
 
10
- &:not(:last-child) {
11
- margin-bottom: 15px;
24
+ &:not(.is-reversed) .card-content {
25
+ order: 2;
12
26
  }
13
27
 
14
28
  .card-image {
@@ -16,12 +30,9 @@
16
30
  position: relative;
17
31
  flex-shrink: 0;
18
32
  overflow: hidden;
19
- border-radius: 8px 8px 0px 0px;
20
33
  }
21
34
 
22
35
  .card-content {
23
- border-bottom-left-radius: $radius;
24
- border-bottom-right-radius: $radius;
25
36
  padding: $spacing-5;
26
37
  flex-grow: 1;
27
38
 
@@ -31,7 +42,7 @@
31
42
  }
32
43
 
33
44
  .card-footer {
34
- border-top: 1px solid getColor('grey');
45
+ border-top: 1px solid getColor('neutral');
35
46
  }
36
47
 
37
48
  .mention {
@@ -49,20 +60,16 @@
49
60
 
50
61
  &.is-strong {
51
62
  .title {
52
- font-family: $family-serif;
63
+ font-family: $family-secondary;
53
64
  font-size: 24px !important;
54
65
  }
55
66
  }
56
67
 
57
68
  &.is-flat {
58
69
  box-shadow: none;
59
-
60
- .card-image {
61
- margin-bottom: -1px;
62
- }
70
+ border: 1px solid #{getColor('stroke-fade')};
63
71
 
64
72
  .card-content {
65
- border: 1px solid getColor('grey');
66
73
  padding-left: 20px;
67
74
  padding-right: 20px;
68
75
 
@@ -74,26 +81,15 @@
74
81
  }
75
82
 
76
83
  &.is-active {
77
- border: 2px solid getColor('alternate');
78
-
79
- .card-image {
80
- border-radius: 6px 6px 0px 0px;
81
- }
84
+ outline: var(--border-active);
82
85
 
83
86
  .card-content {
84
- border-bottom-left-radius: ($radius - 2px);
85
- border-bottom-right-radius: ($radius - 2px);
87
+
86
88
  padding: 22px;
87
89
  @include mobile {
88
90
  padding: 14px;
89
91
  }
90
92
  }
91
-
92
- &.is-horizontal {
93
- .card-image {
94
- border-radius: ($radius - 2px) 0px 0px ($radius - 2px);
95
- }
96
- }
97
93
  }
98
94
 
99
95
  &.is-horizontal {
@@ -111,9 +107,14 @@
111
107
  }
112
108
  }
113
109
 
110
+ @for $i from 1 through 4 {
111
+ &:has(.card-content + .card-image.is-#{$i}) .card-content {
112
+ flex-basis: map-get($basis-values, 'is-#{$i}');
113
+ }
114
+ }
115
+
114
116
  .card-image {
115
117
  max-width: 100%;
116
- border-radius: 8px 0px 0px 8px;
117
118
 
118
119
  @include tablet {
119
120
  img {
@@ -179,31 +180,11 @@
179
180
  top: 50%;
180
181
  transform: translateY(-50%);
181
182
  }
182
- &.is-polyfilled {
183
- border-top-left-radius: $radius;
184
- border-top-right-radius: 0;
185
- border-bottom-left-radius: $radius;
186
- position: absolute;
187
- top: 0;
188
- left: 0;
189
- bottom: 0;
190
- right: 0;
191
- background-size: cover;
192
- background-repeat: no-repeat;
193
- background-position: 50% 50%;
194
-
195
- img {
196
- visibility: hidden;
197
- }
198
- }
199
183
  }
200
184
  }
201
185
  }
202
186
 
203
187
  .card-content {
204
- border-top-right-radius: $radius;
205
- border-bottom-right-radius: $radius;
206
- border-bottom-left-radius: 0;
207
188
  padding-left: 20px;
208
189
  padding-right: 20px;
209
190
 
@@ -223,10 +204,8 @@
223
204
  box-shadow: none;
224
205
  background: transparent;
225
206
 
226
- &.is-inverted .card-image .image img,
227
- &.is-reversed .card-image .image img,
228
207
  .card-image .image img {
229
- border-radius: $radius;
208
+ border-radius: var(--radius);
230
209
  }
231
210
 
232
211
  .card-content {
@@ -255,44 +234,11 @@
255
234
  &.is-inverted,
256
235
  &.is-reversed {
257
236
  .card-image {
258
- order: 1;
259
- border-radius: 0;
260
-
261
- .image {
262
- img {
263
- border-bottom-left-radius: $radius;
264
- border-bottom-right-radius: $radius;
265
- }
266
- }
237
+ order: 2;
267
238
  }
268
239
 
269
240
  .card-content {
270
- border-top-left-radius: $radius;
271
- border-top-right-radius: $radius;
272
- border-bottom-left-radius: 0;
273
- border-bottom-right-radius: 0;
274
- }
275
-
276
- &.is-horizontal {
277
- .card-image {
278
- order: 1;
279
-
280
- .image {
281
- img {
282
- border-top-left-radius: 0;
283
- border-top-right-radius: $radius;
284
- border-bottom-left-radius: 0;
285
- border-bottom-right-radius: $radius;
286
- }
287
- }
288
- }
289
-
290
- .card-content {
291
- border-top-left-radius: $radius;
292
- border-top-right-radius: 0;
293
- border-bottom-left-radius: $radius;
294
- border-bottom-right-radius: 0;
295
- }
241
+ order: 1;
296
242
  }
297
243
  }
298
244
  }
@@ -0,0 +1,73 @@
1
+ @include checkbox-and-radio('checkbox');
2
+
3
+ .checkboxes {
4
+ width: 100%;
5
+ column-gap: $spacing-5;
6
+ row-gap: $spacing-3;
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ flex-direction: column;
10
+
11
+ @include tablet {
12
+ flex-direction: row;
13
+
14
+ &.is-vertical-desktop {
15
+ flex-direction: column;
16
+ }
17
+ }
18
+
19
+ @include mobile {
20
+ &.is-horizontal-mobile {
21
+ flex-direction: row;
22
+ }
23
+ }
24
+
25
+ &.is-centered,
26
+ &.has-text-centered,
27
+ .has-text-centered & {
28
+ justify-content: center;
29
+ }
30
+ }
31
+
32
+ .checkbox,
33
+ .checkbox-tile {
34
+ input:checked ~ label.checkbox-label,
35
+ input:checked ~ .checkbox-container {
36
+ &:before {
37
+ background-color: getColor('main');
38
+ }
39
+
40
+ &:after {
41
+ content: "";
42
+ mask-image: url('./assets/icons/all/check.svg');
43
+ background-color: getColor('background');
44
+ mask-size: 18px;
45
+ }
46
+ }
47
+
48
+ label.checkbox-label,
49
+ .checkbox-container {
50
+ &:before,
51
+ &:after {
52
+ border-radius: var(--radius-small);
53
+ }
54
+ }
55
+ }
56
+
57
+ .checkbox-tile {
58
+ input:checked ~ label.checkbox-label,
59
+ input:checked ~ .checkbox-container {
60
+ &:after {
61
+ top: 15px;
62
+ left: 15px;
63
+ }
64
+ }
65
+ }
66
+
67
+ .checkbox {
68
+ input:not(:disabled):not(:checked) ~ label.checkbox-label:hover {
69
+ &:before {
70
+ @include hoverRules()
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,84 @@
1
+ @import "../utilities/spacing";
2
+
3
+ .chips-list {
4
+ align-items: center;
5
+ display: flex;
6
+ justify-content: flex-start;
7
+ flex-wrap: wrap;
8
+ gap: $spacing-2;
9
+
10
+ // centrage des chips
11
+ &.is-centered {
12
+ justify-content: center;
13
+ }
14
+
15
+ &.is-scrollable {
16
+ flex-wrap: nowrap;
17
+ overflow: auto;
18
+ &::-webkit-scrollbar {
19
+ display: none;
20
+ }
21
+ }
22
+
23
+ &.is-multiple {
24
+ .chips:before {
25
+ content: "";
26
+ mask-image: url('./assets/icons/all/check.svg');
27
+ background-color: currentColor;
28
+ margin-right: 4px;
29
+ margin-left: -8px;
30
+ width: 0;
31
+ height: 20px;
32
+ mask-size: 20px;
33
+ transition: width 250ms;
34
+ }
35
+ .chips.is-active:before{
36
+ width: 20px;
37
+ }
38
+ }
39
+
40
+ .chips {
41
+ align-items: center;
42
+ background-color: white;
43
+ border-radius: 9999px;
44
+ color: getColor('font');
45
+ display: inline-flex;
46
+ font-size: $size-normal;
47
+ height: 32px;
48
+ justify-content: center;
49
+ line-height: 2;
50
+ padding: 6px $spacing-4;
51
+ white-space: nowrap;
52
+ cursor: pointer;
53
+ border: var(--border);
54
+ &:not(.is-disabled) {
55
+ &.is-active {
56
+ background-color: getColor('main');
57
+ color: white;
58
+ border: var(--border-active);
59
+ padding: 5px ($spacing-4 - 1px);
60
+ #{$hoverSelector} {
61
+ background-color: getColor('main');
62
+ color: white;
63
+ }
64
+ }
65
+ #{$hoverSelector} {
66
+ background-color: getColor('neutral-fade');
67
+ }
68
+ }
69
+
70
+ &.is-inverted {
71
+ background-color: white;
72
+ color: getColor('accent');
73
+
74
+ &:active,
75
+ &:hover,
76
+ &:focus,
77
+ &:focus-visible,
78
+ &.is-active {
79
+ background-color: getColor('accent') !important;
80
+ color: getColor('background') !important;
81
+ }
82
+ }
83
+ }
84
+ }
@@ -21,14 +21,7 @@
21
21
 
22
22
  @include desktop {
23
23
  max-width: $desktop - 2 * $gap;
24
- width: $desktop - 2 * $gap;
25
-
26
- &.is-fluid {
27
- margin-left: $gap;
28
- margin-right: $gap;
29
- max-width: none;
30
- width: auto;
31
- }
24
+ width: auto;
32
25
  }
33
26
 
34
27
  @include until-widescreen {
@@ -47,47 +40,17 @@
47
40
 
48
41
  @include widescreen {
49
42
  max-width: $widescreen - 2 * $gap;
50
- width: $widescreen - 2 * $gap;
51
43
  }
52
44
 
53
45
  @include fullhd {
46
+ margin: 0 auto;
54
47
  max-width: $fullhd - 2 * $gap;
55
- width: $fullhd - 2 * $gap;
56
- }
57
-
58
- &:not(.is-fluid) {
59
- @include desktop {
60
- width: 904px;
61
- max-width: 904px;
62
- }
63
-
64
- @include widescreen {
65
- width: 1160px;
66
- max-width: 1160px;
67
- }
68
-
69
- @include fullhd {
70
- width: 1308px;
71
- max-width: 1308px;
72
- }
73
- }
74
-
75
- &.is-fluid {
76
- @include fullhd {
77
- margin: 0 auto;
78
- max-width: $fullhd - 2 * $gap;
79
- }
80
48
  }
81
49
 
82
50
  &.is-medium {
83
51
  max-width: 960px;
84
52
  margin: auto;
85
53
  }
86
-
87
- &.is-fullwidth {
88
- max-width: 100%;
89
- width: 100%;
90
- }
91
54
  }
92
55
 
93
56
  main,
@@ -95,14 +58,12 @@ header .navbar,
95
58
  header,
96
59
  footer {
97
60
  > .container {
98
- &.is-fluid {
99
- @include desktop {
100
- margin: 0 auto;
101
- }
61
+ @include desktop {
62
+ margin: 0 auto;
63
+ }
102
64
 
103
- @include fullhd {
104
- max-width: 100%;
105
- }
65
+ @include fullhd {
66
+ max-width: 100%;
106
67
  }
107
68
  }
108
69
  }