@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50

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 (87) hide show
  1. package/README.md +47 -0
  2. package/dist/default/trilogy-mangled.css +1 -1
  3. package/dist/default/trilogy-partials.css +1 -1
  4. package/dist/default/trilogy.css +1 -1
  5. package/framework/src/base/_color.scss +14 -36
  6. package/framework/src/base/_generic.scss +4 -1
  7. package/framework/src/base/_helpers.scss +20 -37
  8. package/framework/src/base/_loading.scss +8 -1
  9. package/framework/src/base/_reset.scss +8 -3
  10. package/framework/src/components/_accordion.scss +40 -86
  11. package/framework/src/components/_all.scss +0 -6
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +7 -78
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +2 -2
  16. package/framework/src/components/_fab.scss +12 -26
  17. package/framework/src/components/_level.scss +1 -1
  18. package/framework/src/components/_media.scss +2 -2
  19. package/framework/src/components/_modal.scss +167 -166
  20. package/framework/src/components/_otp.scss +9 -28
  21. package/framework/src/components/_pagination.scss +104 -133
  22. package/framework/src/components/_plus-symbol.scss +1 -1
  23. package/framework/src/components/_popover.scss +255 -255
  24. package/framework/src/components/_price.scss +196 -166
  25. package/framework/src/components/_product-tour.scss +2 -4
  26. package/framework/src/components/_range.scss +73 -72
  27. package/framework/src/components/_segmented-control.scss +37 -51
  28. package/framework/src/components/_stepper.scss +18 -142
  29. package/framework/src/components/_tabs.scss +32 -59
  30. package/framework/src/components/_timeline.scss +52 -45
  31. package/framework/src/elements/_alert.scss +5 -8
  32. package/framework/src/elements/_all.scss +1 -3
  33. package/framework/src/elements/_autocomplete.scss +32 -0
  34. package/framework/src/elements/_badge.scss +54 -59
  35. package/framework/src/elements/_box.scss +8 -115
  36. package/framework/src/elements/_button.scss +15 -133
  37. package/framework/src/elements/_checkbox.scss +21 -27
  38. package/framework/src/elements/_chips.scss +74 -83
  39. package/framework/src/elements/_dot.scss +1 -1
  40. package/framework/src/elements/_entry.scss +76 -88
  41. package/framework/src/elements/_form.scss +17 -15
  42. package/framework/src/elements/_icon.scss +3 -3
  43. package/framework/src/elements/_input-gauge.scss +32 -33
  44. package/framework/src/elements/_input-icons.scss +33 -31
  45. package/framework/src/elements/_link.scss +38 -65
  46. package/framework/src/elements/_list.scss +38 -46
  47. package/framework/src/elements/_loader.scss +1 -1
  48. package/framework/src/elements/_other.scss +2 -2
  49. package/framework/src/elements/_paragraph.scss +4 -26
  50. package/framework/src/elements/_progress.scss +12 -21
  51. package/framework/src/elements/_radio.scss +2 -2
  52. package/framework/src/elements/_select.scss +84 -301
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +85 -88
  55. package/framework/src/elements/_table.scss +173 -226
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +95 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +3 -4
  60. package/framework/src/grid/_columns.scss +5 -5
  61. package/framework/src/layout/_all.scss +0 -1
  62. package/framework/src/layout/_hero.scss +109 -207
  63. package/framework/src/layout/_section.scss +7 -14
  64. package/framework/src/theming/_all.scss +3 -0
  65. package/framework/src/theming/buttons_partial.scss +30 -0
  66. package/framework/src/theming/common_partials.scss +9 -0
  67. package/framework/src/theming/links_partial.scss +20 -0
  68. package/framework/src/utilities/_all.scss +3 -0
  69. package/framework/src/utilities/_background.scss +15 -0
  70. package/framework/src/utilities/_controls.scss +37 -48
  71. package/framework/src/utilities/_derived-variables.scss +3 -14
  72. package/framework/src/utilities/_initial-variables.scss +22 -26
  73. package/framework/src/utilities/_mixins.scss +481 -593
  74. package/framework/src/utilities/_pre.scss +1 -0
  75. package/package.json +3 -2
  76. package/framework/src/components/_disclaimer.scss +0 -84
  77. package/framework/src/components/_dropdown.scss +0 -128
  78. package/framework/src/components/_menu.scss +0 -213
  79. package/framework/src/components/_search-modal.scss +0 -197
  80. package/framework/src/components/_slices.scss +0 -316
  81. package/framework/src/components/_slider.scss +0 -92
  82. package/framework/src/components/_switch.scss +0 -209
  83. package/framework/src/elements/_checkradio.scss +0 -173
  84. package/framework/src/elements/_notification.scss +0 -151
  85. package/framework/src/elements/_options.scss +0 -146
  86. package/framework/src/elements/_timeline.scss +0 -283
  87. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,315 +1,98 @@
1
- [data-blur-select] {
2
- position: absolute;
3
- z-index: zindex('large');
4
- min-width: 100%;
5
- min-height: 100%;
6
- left:0;
7
- top: 0;
8
- }
9
-
10
-
11
- @mixin arrow-style($isDisabled:false, $direction:"up") {
12
- $color: getColor('font');
13
- @if($isDisabled) { $color: getColor('grey') }
14
-
15
- @include arrow($color,$direction);
16
- right: 16px;
17
- margin-left: 16px;
18
- top: calc(50% - 7px);
19
- }
20
1
 
21
2
  .select {
22
- border: 1px solid getColor('grey');
23
- display: inline-block;
24
- max-width: 100%;
25
- position: relative;
26
- font-family: $body-family;
27
- border-radius: 4px;
28
- background-color: getColor('background');
29
- display: block;
30
- font-size: 1em;
31
- max-width: 100%;
32
- outline: none;
33
- cursor: pointer;
34
- height: 56px;
35
-
36
- select {
37
- height: 100%;
38
- border: 1px solid transparent;
39
- border-radius: 3px;
40
- max-width: 100%;
41
- width: 100%;
42
- font-size: 1em;
43
- font-family: $body-family;
44
- color: getColor('font');
45
- cursor: pointer;
46
- -webkit-appearance: none;
47
- -moz-appearance: none;
48
- appearance: none;
49
- z-index: 10;
50
- background-color: transparent;
51
- opacity: 100;
52
- outline: none;
53
- padding-left: $spacing-4;
54
- &::-ms-expand {
55
- display: none !important;
56
- }
57
- &:focus, &:hover {
58
- outline: 1px auto getColor('alternate');
59
- }
60
-
61
- }
62
-
63
- label {
64
- position: absolute;
65
- top: 50%;
66
- transform: translate(0, -50%);
67
- left: 16px !important;
68
- color: getColor('grey') !important
69
- }
70
-
71
- &.select-native {
72
- .icon {
73
- position: absolute;
74
- }
75
-
76
- &.has-icon {
77
- select {
78
- padding-left: 50px;
79
- &:not(.no-label) {
80
- padding-bottom: 5px;
81
- }
82
- }
83
- }
84
- }
85
-
86
- .has-dynamic-placeholder {
87
- label {
88
- top: 18px;
89
- color: getColor('grey') !important
90
- }
91
- }
92
-
93
-
94
- &-value {
95
- position: absolute ;
96
- left: 16px;
97
- top: 50%;
98
- transform: translateY(-20%);
99
-
100
- &.no-label {
101
- transform: translateY(-50%);
102
-
103
- }
104
- }
105
-
3
+ position: relative;
4
+ input { cursor: pointer;}
106
5
 
6
+ .field.focus .control input:first-child,
7
+ .field.focus .input.select-native {
8
+ border: 2px solid currentColor;
9
+ }
107
10
 
108
- &-disabled {
109
- background-color: getColor('grey-disabled');
110
- border: 1px solid getColor('grey-disabled');
111
- cursor:default ;
112
- label {
113
- color: #565656 !important;
114
- }
115
- .icon {
116
- color: #565656;
117
- }
118
- }
119
-
120
-
121
-
122
- .icon {
123
- height: 100%;
124
- width: 50px;
125
- }
126
-
127
- &.has-icon {
128
- label {
129
- left: 50px !important;
130
- }
131
- .select-value {
132
- left: 50px !important;
133
- }
134
- }
135
-
136
-
137
- &:not(.is-loading) {
138
- &:not(.select-disabled) {
139
- &::after {
140
- @include arrow-style(false,"down")
141
- }
142
- &:not(.select-native):hover, &:not(.select-native):focus {
143
- outline: 1px auto getColor('alternate');
144
- }
145
- }
146
- &.select-disabled {
147
- &::after {
148
- @include arrow-style(true,"down")
149
- }
150
- }
151
-
152
- }
153
-
154
- &.select-show-options:not(.is-loading) {
155
- outline: 1px auto getColor('alternate');
156
- &::after {
157
- @include arrow-style()
158
- }
159
- &:hover {
160
- &::after {
161
- border-color: getColor('font');
162
- }
163
- }
164
- }
165
-
166
- // Colors
167
- @each $name in $colors-brand {
168
- $brandName: getColorBrandName($name);
169
- $color: getColor($name);
170
-
171
- &.is-#{$brandName} {
172
- &:not(:hover) {
173
- outline: 1px auto $color;
174
- }
175
- &:hover,
176
- &.is-hovered {
177
- outline: 1px auto getVariantColor($name, 1);
178
- }
179
- }
180
- }
181
-
182
- // Sizes
183
- &.is-small {
184
- @include control-small;
185
- }
186
-
187
- &.is-large {
188
- @include control-large;
189
- }
190
-
191
-
192
- &.is-loading {
193
- &::after {
194
- @include spinner;
195
- margin-top: 0;
196
- position: absolute;
197
- right: 0.625em;
198
- top: 0.625em;
199
- transform: none;
200
- }
201
- &.is-small::after {
202
- font-size: $size-small;
203
- }
204
- &.is-large::after {
205
- font-size: $size-large;
206
- }
207
- }
208
- }
209
-
210
- .select-options {
211
- position: absolute;
212
- margin-top: 8px;
213
- display: flex;
214
- flex-direction: column;
215
- align-items: flex-start;
216
- background: getColor('background');
217
- box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
11
+ &-options {
12
+ box-shadow: 0 0 8px #0000001a;
218
13
  border-radius: 4px;
219
- overflow: auto;
220
- width: 100%;
221
- max-height: 260px;
222
- z-index: zindex('large') ;
223
-
224
-
225
- &-option {
226
- display: flex;
227
- flex-direction: row;
228
- align-items: center;
229
- justify-content: space-between;
230
- padding: 14px $spacing-4;
231
- width: 100%;
232
- .has-icon {
233
- display: flex;
234
- align-items: center;
235
- .icon {
236
- margin-right: 16px;
237
- width: 20px;
238
- height: 20px;
239
- }
240
- }
241
- &-activated {
242
- color: getColor('alternate');
243
- font-weight: $weight-bold;
244
- &::after {
245
- content: "";
246
- mask-image: url('./assets/icons/all/check.svg');
247
- background-color: getColor('alternate');
248
- min-width: 15px;
249
- min-height: 15px;
250
- display:inline-block;
251
- margin-left: 16px;
252
- mask-size: 20px;
253
- }
254
- }
255
- &-disabled {
256
- background-color: getColor('grey-disabled');
257
- color: #565656
258
- }
14
+ overflow: hidden;
15
+ position: absolute;
16
+ top: 64px;
17
+ z-index: 1001;
18
+ left: 0;
19
+ right: 0;
20
+ }
21
+
22
+ .radio-tile {
23
+ input:checked {
24
+ &~label.radio-label {
25
+ font-weight: $weight-black ;
26
+ &:after {
27
+ content: "" !important;
28
+ mask-image: url('./assets/icons/all/check.svg') !important;
29
+ background-color: getColor('main') !important;
30
+ mask-size: 18px !important;
31
+ top: 25px !important;
32
+ right: 18px !important;
33
+ height:18px !important;
34
+ width: 18px !important
35
+ }
36
+ }
37
+ }
38
+
39
+ label.radio-label {
40
+ border:none !important;
41
+ border-radius: 0 !important;
42
+ height: 52px;
43
+ &:before { display: none; }
44
+ @include hover
45
+ }
46
+
47
+ &.focus label.radio-label { @include hoverRules(); }
48
+
49
+ .icon.is-medium {
50
+ font-size: $text-20 !important;
51
+ }
52
+ }
53
+
54
+ .control:not(.has-icons-left.has-icons-right) {
55
+ .select-native.multiple.input {
56
+ padding-left:0 !important;
57
+ select option {padding-left: 16px;}
58
+ }
59
+ }
60
+
61
+ &-native {
62
+ position: relative;
63
+ select {
64
+ width: 100%;
65
+ border:none;
66
+ height: 100%;
67
+ background-color: transparent;
68
+ -webkit-appearance: none;
69
+ -moz-appearance: none;
70
+ text-indent: 1px;
71
+ outline: none;
72
+ color: getColor('main');
73
+ font-size: $text-16 !important;
259
74
  }
260
75
 
261
- .option-container, &-option {
262
- outline:none;
263
- &:focus {
264
- background-color: #E4EAED;
265
- }
266
-
267
- &:not([data-is-disabled='true']){
268
- cursor: pointer;
269
- }
76
+ &.input {
77
+ padding-top: 0px !important;
78
+ padding-bottom: 0px !important;
270
79
  }
271
- }
272
-
273
- [data-is-open-options="false"] {
274
- display: none;
275
- }
276
80
 
277
- [data-is-open-options="true"] {
278
- display:block
279
- }
280
-
281
- //AutoComplete
282
- .is-autocomplete {
283
- .autocomplete-menu {
284
- display: none;
81
+ &.multiple.input{
82
+ height: auto !important;
83
+ padding-right: 0 !important;
84
+ select { padding-top: 0 !important; }
285
85
  }
86
+ }
286
87
 
287
- &.is-active {
288
- .autocomplete-menu {
289
- display: block;
290
- border: 1px solid rgba(0,38,60,.4);
291
- padding: 5px 10px;
292
- border-radius: 4px;
293
- max-height: 220px;
294
- overflow-y: auto;
295
- background-color: getColor('background');
296
- z-index: 10000;
297
- }
298
-
299
- .autocomplete-item {
300
- cursor: pointer;
301
- padding: 3.75px calc(15px - 10px);
302
-
303
- &.is-active, &[data-autocomplete-item-hover] {
304
- background-color: rgba(16,157,185,.08);
305
- border-top: 1px solid getColor('alternate');
306
- border-bottom: 1px solid getColor('alternate');
307
- margin-left: -10px;
308
- margin-right: -10px;
309
- padding: 2.75px 15px;
310
- }
311
- }
312
- }
88
+ &-trilogy_modal_open {
89
+ position: fixed;
90
+ top:0;
91
+ left:0;
92
+ right:0;
93
+ bottom:0;
94
+ z-index: 1000;
95
+ }
313
96
  }
314
97
 
315
98
 
@@ -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;
@@ -16,58 +15,44 @@ $sticker-radius: $radius-large;
16
15
  &:not(.is-hat) {
17
16
  width: fit-content;
18
17
 
19
- @include mobile{
20
- border-radius: 16px;
18
+ @include mobile {
21
19
  font-size: 12px;
22
20
  padding: $spacing-1 $spacing-2;
23
21
  height: auto;
24
22
  line-height: 15px;
25
23
 
26
- &.is-flag {
27
- border-radius: 0 $sticker-radius 0 0;
28
- }
29
-
30
24
  }
31
25
  }
32
26
 
33
-
34
- &.is-primary {
35
- background-color: getColor('main');
27
+ &.is-accent {
28
+ background-color: getColor('alternate');
36
29
  color: getColor('background') !important;
37
30
  }
38
31
 
39
- &.is-flag {
40
- border-radius: 0 16px 0 0;
32
+ &.is-info {
33
+ background-color: getColor('info');
34
+ color: getColor('background') !important;
41
35
  }
42
36
 
43
- &.is-outlined,
44
37
  &.is-inverted {
45
38
  background-color: white !important;
46
39
  border-style: solid;
47
40
  border-width: 2px;
48
41
  border-color: currentColor;
49
- color: getColor('font') !important;
50
-
51
- &.is-primary {
52
- color: getColor('main') !important;
53
- }
42
+ color: currentColor;
54
43
  }
55
44
 
56
45
  &.is-small {
57
- border-radius: 16px;
58
46
  font-size: 12px;
59
47
  padding: $spacing-1 $spacing-2;
60
48
  height: auto;
61
49
  line-height: 15px;
62
50
 
63
- &.is-flag {
64
- border-radius: 0 $sticker-radius 0 0;
65
- }
66
51
  }
67
52
 
68
53
  // deprecated
69
54
  &.is-stretched {
70
- border-radius: $radius 0;
55
+ border-radius: var(--radius) 0;
71
56
  padding: 0 10px;
72
57
  position: relative;
73
58
  margin-right: 10px;
@@ -87,12 +72,12 @@ $sticker-radius: $radius-large;
87
72
  }
88
73
 
89
74
  &::before {
90
- border-radius: $radius 0 0 $radius;
75
+ border-radius: var(--radius) 0 0 var(--radius);
91
76
  left: -6px;
92
77
  }
93
78
 
94
79
  &::after {
95
- border-radius: 0 $radius $radius 0;
80
+ border-radius: 0 var(--radius) var(--radius) 0;
96
81
  right: -7px;
97
82
  }
98
83
  }
@@ -111,7 +96,7 @@ $sticker-radius: $radius-large;
111
96
  .has-hat-mobile {
112
97
  .is-hat {
113
98
  display: inline-block;
114
- border-radius: $radius $radius 0 0;
99
+ border-radius: var(--radius) var(--radius) 0 0;
115
100
  position: absolute;
116
101
  top: -$sticker-height;
117
102
  left: 0;
@@ -1,108 +1,105 @@
1
1
  .switch {
2
- position: relative;
3
- margin: 8px;
2
+ position: relative;
3
+ margin: 8px;
4
4
 
5
- input {
6
- display: none;
5
+ input {
6
+ display: none;
7
7
 
8
- &:disabled ~ label,
9
- &:disabled:checked ~ label {
10
- &:hover {
11
- cursor: no-drop;
12
- }
13
-
14
- &:before {
15
- background-color: getColor('grey-disabled');
16
- }
17
- }
8
+ &:disabled ~ label,
9
+ &:disabled:checked ~ label {
10
+ cursor: not-allowed;
11
+ &:before {
12
+ background-color: getColor('disabled');
13
+ }
14
+ }
18
15
 
19
- &:disabled ~ label {
20
- &:after {
21
- $colorSvg: encodecolor(getColorValue('grey-dark'));
22
- content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
23
- }
24
- }
16
+ &:disabled ~ label {
17
+ &:after {
18
+ $colorSvg: encodecolor(getColorValue('neutral-dark'));
19
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
20
+ }
21
+ }
25
22
 
26
- &:disabled:checked ~ label {
27
- &:after {
28
- $colorSvg: encodecolor(getColorValue('grey-dark'));
29
- content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
30
- }
31
- }
23
+ &:disabled:checked ~ label {
24
+ &:after {
25
+ $colorSvg: encodecolor(getColorValue('neutral-dark'));
26
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
27
+ }
32
28
  }
29
+ }
33
30
 
34
- label {
35
- width: 100%;
36
- display: flex;
37
- align-items: center;
38
- cursor: pointer;
39
- padding: $spacing-1;
40
- padding-right: 60px;
31
+ label {
32
+ width: 100%;
33
+ display: flex;
34
+ align-items: center;
35
+ cursor: pointer;
36
+ padding: $spacing-1;
37
+ padding-right: 60px;
41
38
 
42
- &:before {
43
- content: '';
44
- position: absolute;
45
- top: 50%;
46
- transform: translateY(-50%);
47
- right: 0;
48
- border-radius: 24px;
49
- width: 44px;
50
- height: 22px;
51
- background-color: getColorValue('grey');
52
- margin-left: 16px;
53
- }
39
+ &:before {
40
+ content: '';
41
+ position: absolute;
42
+ top: 50%;
43
+ transform: translateY(-50%);
44
+ right: 0;
45
+ border-radius: 9999px;
46
+ width: 44px;
47
+ height: 22px;
48
+ background-color: getBGColor('font');
49
+ margin-left: 16px;
50
+ }
54
51
 
55
- &:after {
56
- $colorSvg: encodecolor(getColorValue('grey'));
57
- content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
58
- position: absolute;
59
- top: 50%;
60
- transform: translateY(-50%);
61
- right: calc(44px - 18px - 2px);
62
- border-radius: 50%;
63
- width: 18px;
64
- height: 18px;
65
- background-color: getColorValue('background');
66
- transition: 0.3s;
67
- }
52
+ &:after {
53
+ $colorSvg: encodecolor(getBGColorValue('font'));
54
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
55
+ position: absolute;
56
+ top: 50%;
57
+ transform: translateY(-50%);
58
+ right: calc(44px - 18px - 2px);
59
+ border-radius: 9999px;
60
+ width: 18px;
61
+ height: 18px;
62
+ background-color: getColorValue('background');
63
+ transition: 0.3s;
68
64
  }
65
+ }
69
66
 
70
- input:checked {
71
- & ~ label {
72
- font-weight: bold;
67
+ input:checked {
68
+ & ~ label {
69
+ font-weight: bold;
73
70
 
74
- &:before {
75
- background-color: getColorValue('alternate');
76
- }
71
+ &:before {
72
+ background-color: getColorValue('main');
73
+ }
77
74
 
78
- &:after {
79
- right: 2px;
80
- $colorSvg: encodecolor(getColorValue('alternate'));
81
- content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
82
- background-color: getColorValue('background');
83
- }
84
- }
75
+ &:after {
76
+ right: 2px;
77
+ $colorSvg: encodecolor(getColorValue('main'));
78
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
79
+ background-color: getColorValue('background');
80
+ }
85
81
  }
82
+ }
86
83
 
87
- &.is-reversed {
88
- label {
89
- flex-direction: row-reverse;
90
- padding-right: 0;
91
- padding-left: 60px;
84
+ &.is-reversed {
85
+ label {
86
+ flex-direction: row-reverse;
87
+ padding-right: 0;
88
+ padding-left: 60px;
92
89
 
93
- &:before {
94
- left: 0;
95
- margin-left: 0;
96
- margin-right: 16px;
97
- }
90
+ &:before {
91
+ left: 0;
92
+ margin-left: 0;
93
+ margin-right: 16px;
94
+ }
98
95
 
99
- &:after {
100
- left: 2px;
101
- }
102
- }
96
+ &:after {
97
+ left: 2px;
98
+ }
99
+ }
103
100
 
104
- input:checked ~ label:after {
105
- left: calc(44px - 18px - 2px);
106
- }
101
+ input:checked ~ label:after {
102
+ left: calc(44px - 18px - 2px);
107
103
  }
104
+ }
108
105
  }