@trilogy-ds/styles 0.0.1-beta-1

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 (104) hide show
  1. package/framework/src/_all.scss +8 -0
  2. package/framework/src/base/_all.scss +9 -0
  3. package/framework/src/base/_color.scss +58 -0
  4. package/framework/src/base/_elements.scss +34 -0
  5. package/framework/src/base/_fonts.scss +2 -0
  6. package/framework/src/base/_generic.scss +68 -0
  7. package/framework/src/base/_helpers.scss +880 -0
  8. package/framework/src/base/_loading.scss +102 -0
  9. package/framework/src/base/_reset.scss +138 -0
  10. package/framework/src/components/_accordion.scss +178 -0
  11. package/framework/src/components/_all.scss +30 -0
  12. package/framework/src/components/_autolayout2.scss +38 -0
  13. package/framework/src/components/_breadcrumb.scss +45 -0
  14. package/framework/src/components/_card.scss +298 -0
  15. package/framework/src/components/_countdown.scss +55 -0
  16. package/framework/src/components/_disclaimer.scss +84 -0
  17. package/framework/src/components/_divider.scss +18 -0
  18. package/framework/src/components/_dropdown.scss +128 -0
  19. package/framework/src/components/_fab.scss +60 -0
  20. package/framework/src/components/_level.scss +120 -0
  21. package/framework/src/components/_media.scss +64 -0
  22. package/framework/src/components/_menu.scss +213 -0
  23. package/framework/src/components/_modal.scss +201 -0
  24. package/framework/src/components/_otp.scss +92 -0
  25. package/framework/src/components/_pagination.scss +182 -0
  26. package/framework/src/components/_plus-symbol.scss +32 -0
  27. package/framework/src/components/_popover.scss +340 -0
  28. package/framework/src/components/_price.scss +209 -0
  29. package/framework/src/components/_product-tour.scss +131 -0
  30. package/framework/src/components/_progress-radial.scss +23 -0
  31. package/framework/src/components/_range.scss +84 -0
  32. package/framework/src/components/_scroll-view.scss +19 -0
  33. package/framework/src/components/_search-modal.scss +197 -0
  34. package/framework/src/components/_segmented-control.scss +60 -0
  35. package/framework/src/components/_slices.scss +316 -0
  36. package/framework/src/components/_slider.scss +92 -0
  37. package/framework/src/components/_stepper.scss +397 -0
  38. package/framework/src/components/_switch.scss +209 -0
  39. package/framework/src/components/_tabs.scss +212 -0
  40. package/framework/src/components/_timeline.scss +367 -0
  41. package/framework/src/elements/_alert.scss +91 -0
  42. package/framework/src/elements/_all.scss +35 -0
  43. package/framework/src/elements/_badge.scss +81 -0
  44. package/framework/src/elements/_box.scss +267 -0
  45. package/framework/src/elements/_button.scss +192 -0
  46. package/framework/src/elements/_checkbox.scss +39 -0
  47. package/framework/src/elements/_checkradio.scss +173 -0
  48. package/framework/src/elements/_chips.scss +100 -0
  49. package/framework/src/elements/_container.scss +108 -0
  50. package/framework/src/elements/_dot.scss +6 -0
  51. package/framework/src/elements/_entry.scss +109 -0
  52. package/framework/src/elements/_form.scss +593 -0
  53. package/framework/src/elements/_icon.scss +384 -0
  54. package/framework/src/elements/_image.scss +59 -0
  55. package/framework/src/elements/_input-gauge.scss +37 -0
  56. package/framework/src/elements/_input-icons.scss +41 -0
  57. package/framework/src/elements/_link.scss +79 -0
  58. package/framework/src/elements/_list.scss +61 -0
  59. package/framework/src/elements/_loader.scss +126 -0
  60. package/framework/src/elements/_notification.scss +151 -0
  61. package/framework/src/elements/_options.scss +146 -0
  62. package/framework/src/elements/_other.scss +44 -0
  63. package/framework/src/elements/_paragraph.scss +101 -0
  64. package/framework/src/elements/_progress.scss +212 -0
  65. package/framework/src/elements/_radio.scss +67 -0
  66. package/framework/src/elements/_select.scss +315 -0
  67. package/framework/src/elements/_sticker.scss +151 -0
  68. package/framework/src/elements/_switch.scss +108 -0
  69. package/framework/src/elements/_table.scss +298 -0
  70. package/framework/src/elements/_tag.scss +131 -0
  71. package/framework/src/elements/_textarea.scss +125 -0
  72. package/framework/src/elements/_timeline.scss +283 -0
  73. package/framework/src/elements/_title.scss +139 -0
  74. package/framework/src/elements/_toaster.scss +128 -0
  75. package/framework/src/grid/_all.scss +3 -0
  76. package/framework/src/grid/_columns.scss +952 -0
  77. package/framework/src/grid/_rows.scss +47 -0
  78. package/framework/src/grid/_tiles.scss +78 -0
  79. package/framework/src/layout/_all.scss +6 -0
  80. package/framework/src/layout/_hero.scss +268 -0
  81. package/framework/src/layout/_main.scss +36 -0
  82. package/framework/src/layout/_section.scss +65 -0
  83. package/framework/src/layout/_toolbar.scss +100 -0
  84. package/framework/src/trilogy-core.scss +16 -0
  85. package/framework/src/trilogy-mangled.scss +14 -0
  86. package/framework/src/trilogy-namespaced.scss +14 -0
  87. package/framework/src/trilogy.scss +8 -0
  88. package/framework/src/utilities/_all.scss +9 -0
  89. package/framework/src/utilities/_animations.scss +71 -0
  90. package/framework/src/utilities/_controls.scss +67 -0
  91. package/framework/src/utilities/_derived-variables.scss +104 -0
  92. package/framework/src/utilities/_functions.scss +94 -0
  93. package/framework/src/utilities/_initial-variables.scss +150 -0
  94. package/framework/src/utilities/_mixins.scss +745 -0
  95. package/framework/src/utilities/_post.scss +6 -0
  96. package/framework/src/utilities/_pre.scss +5 -0
  97. package/framework/src/utilities/_spacing.scss +10 -0
  98. package/framework/src/utilities/_tools.scss +3 -0
  99. package/package.json +22 -0
  100. package/themes/default/src/_all.scss +1 -0
  101. package/themes/default/src/assets.scss +11 -0
  102. package/themes/default/src/utilities/_all.scss +0 -0
  103. package/themes/default/src/utilities/_post.scss +0 -0
  104. package/themes/default/src/utilities/_pre.scss +3 -0
@@ -0,0 +1,745 @@
1
+ @use "sass:string";
2
+ @import "./initial-variables";
3
+
4
+ %delete {
5
+ @extend %unselectable;
6
+
7
+ -moz-appearance: none;
8
+ -webkit-appearance: none;
9
+ background-color: rgba(black, 0.2);
10
+ border: none;
11
+ border-radius: $radius-rounded;
12
+ cursor: pointer;
13
+ display: inline-block;
14
+ flex-grow: 0;
15
+ flex-shrink: 0;
16
+ font-size: 0;
17
+ height: 20px;
18
+ max-height: 20px;
19
+ max-width: 20px;
20
+ min-height: 20px;
21
+ min-width: 20px;
22
+ outline: none;
23
+ position: relative;
24
+ vertical-align: top;
25
+ width: 20px;
26
+
27
+ &::before,
28
+ &::after {
29
+ background-color: #fff;
30
+ content: '';
31
+ display: block;
32
+ left: 50%;
33
+ position: absolute;
34
+ top: 50%;
35
+ transform: translateX(-50%) translateY(-50%) rotate(45deg);
36
+ transform-origin: center center;
37
+ }
38
+
39
+ &::before {
40
+ height: 2px;
41
+ width: 50%;
42
+ }
43
+
44
+ &::after {
45
+ height: 50%;
46
+ width: 2px;
47
+ }
48
+
49
+ &:hover,
50
+ &:focus {
51
+ background-color: rgba(black, 0.3);
52
+ }
53
+
54
+ &:active {
55
+ background-color: rgba(black, 0.4);
56
+ }
57
+
58
+ // Sizes
59
+ &.is-small {
60
+ height: 16px;
61
+ max-height: 16px;
62
+ max-width: 16px;
63
+ min-height: 16px;
64
+ min-width: 16px;
65
+ width: 16px;
66
+ }
67
+
68
+ &.is-medium {
69
+ height: 24px;
70
+ max-height: 24px;
71
+ max-width: 24px;
72
+ min-height: 24px;
73
+ min-width: 24px;
74
+ width: 24px;
75
+ }
76
+
77
+ &.is-large {
78
+ height: 32px;
79
+ max-height: 32px;
80
+ max-width: 32px;
81
+ min-height: 32px;
82
+ min-width: 32px;
83
+ width: 32px;
84
+ }
85
+ }
86
+
87
+ %unselectable {
88
+ -webkit-touch-callout: none;
89
+ -webkit-user-select: none;
90
+ -moz-user-select: none;
91
+ -ms-user-select: none;
92
+ user-select: none;
93
+ }
94
+
95
+ @mixin delete {
96
+ @extend %delete;
97
+ }
98
+
99
+ @mixin arrow($color, $direction: 'down') {
100
+ background-color: $color;
101
+ @if $direction == 'up' {
102
+ content: "";
103
+ mask-image: url('./assets/icons/all/arrow-up.svg');
104
+ } @else if $direction == 'left' {
105
+ content: "";
106
+ mask-image: url('./assets/icons/all/arrow-left.svg');
107
+ } @else if $direction == 'right' {
108
+ content: "";
109
+ mask-image: url('./assets/icons/all/arrow-right.svg');
110
+ } @else {
111
+ content: "";
112
+ mask-image: url('./assets/icons/all/arrow-down.svg');
113
+ }
114
+
115
+ min-width: 15px;
116
+ min-height: 15px;
117
+ mask-size: 15px;
118
+ color: $color;
119
+ position: absolute;
120
+ display: inline-block;
121
+ }
122
+
123
+ @mixin block {
124
+ &:not(:last-child) {
125
+ margin-bottom: 15px;
126
+ }
127
+ }
128
+
129
+ @mixin clearfix {
130
+ &::after {
131
+ clear: both;
132
+ content: ' ';
133
+ display: table;
134
+ }
135
+ }
136
+
137
+ @mixin center($width, $height: 0) {
138
+ position: absolute;
139
+
140
+ @if $height != 0 {
141
+ left: calc(50% - (#{$width} / 2));
142
+ top: calc(50% - (#{$height} / 2));
143
+ } @else {
144
+ left: calc(50% - (#{$width} / 2));
145
+ top: calc(50% - (#{$width} / 2));
146
+ }
147
+ }
148
+
149
+ @mixin spinner {
150
+ animation: spinAround 500ms infinite linear;
151
+ border: 2px solid getColor('grey-light');
152
+ border-radius: 290486px;
153
+ border-right-color: transparent;
154
+ border-top-color: transparent;
155
+ content: '';
156
+ display: block;
157
+ height: 1em;
158
+ position: relative;
159
+ width: 1em;
160
+ }
161
+
162
+ @mixin overflow-touch {
163
+ -webkit-overflow-scrolling: touch;
164
+ }
165
+
166
+ @mixin overlay($offset: 0) {
167
+ position: absolute;
168
+ top: $offset;
169
+ bottom: $offset;
170
+ left: $offset;
171
+ right: $offset;
172
+ }
173
+
174
+ @mixin placeholder {
175
+ $placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input';
176
+
177
+ @each $placeholder in $placeholders {
178
+ &:#{$placeholder}-placeholder {
179
+ @content;
180
+ }
181
+ }
182
+ }
183
+
184
+ @mixin unselectable {
185
+ @extend %unselectable;
186
+ }
187
+
188
+ @mixin ui-icon {
189
+ font-family: trilogy-all;
190
+ font-style: normal;
191
+ font-weight: normal;
192
+ display: inline-block;
193
+ text-decoration: inherit;
194
+ margin-right: 0.2em;
195
+ text-align: center;
196
+
197
+ /* For safety - reset parent styles, that can break glyph codes*/
198
+ font-variant: normal;
199
+ text-transform: none;
200
+
201
+ /* fix buttons height, for twitter bootstrap */
202
+ line-height: 1em;
203
+
204
+ /* remove if not needed */
205
+ margin-left: 0.2em;
206
+
207
+ /* Font smoothing. That was taken from TWBS */
208
+ -webkit-font-smoothing: antialiased;
209
+ -moz-osx-font-smoothing: grayscale;
210
+ }
211
+
212
+ // Responsiveness
213
+ @mixin from($device) {
214
+ @media screen and (min-width: $device) {
215
+ @content;
216
+ }
217
+ }
218
+
219
+ @mixin until($device) {
220
+ @media screen and (max-width: $device - 1px) {
221
+ @content;
222
+ }
223
+ }
224
+
225
+ @mixin mobile {
226
+ @media screen and (max-width: $tablet - 1px) {
227
+ @content;
228
+ }
229
+ }
230
+
231
+ @mixin tablet {
232
+ @media screen and (min-width: $tablet), print {
233
+ @content;
234
+ }
235
+ }
236
+
237
+ @mixin tablet-only {
238
+ @media screen and (min-width: $tablet) and (max-width: $desktop - 1px) {
239
+ @content;
240
+ }
241
+ }
242
+
243
+ @mixin touch {
244
+ @media screen and (max-width: $desktop - 1px) {
245
+ @content;
246
+ }
247
+ }
248
+
249
+ @mixin desktop {
250
+ @media screen and (min-width: $desktop) {
251
+ @content;
252
+ }
253
+ }
254
+
255
+ @mixin desktop-only {
256
+ @media screen and (min-width: $desktop) and (max-width: $widescreen - 1px) {
257
+ @content;
258
+ }
259
+ }
260
+
261
+ @mixin until-widescreen {
262
+ @media screen and (max-width: $widescreen - 1px) {
263
+ @content;
264
+ }
265
+ }
266
+
267
+ @mixin widescreen {
268
+ @media screen and (min-width: $widescreen) {
269
+ @content;
270
+ }
271
+ }
272
+
273
+ @mixin widescreen-only {
274
+ @media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px) {
275
+ @content;
276
+ }
277
+ }
278
+
279
+ @mixin until-fullhd {
280
+ @media screen and (max-width: $fullhd - 1px) {
281
+ @content;
282
+ }
283
+ }
284
+
285
+ @mixin fullhd {
286
+ @media screen and (min-width: $fullhd) {
287
+ @content;
288
+ }
289
+ }
290
+
291
+ @mixin all-desktop-only {
292
+ @media screen and (min-width: $desktop) and (max-width: $fullhd - 1px) {
293
+ @content;
294
+ }
295
+ }
296
+
297
+ @mixin hamburger($hamburger-dimensions) {
298
+ cursor: pointer;
299
+ display: block;
300
+ height: $hamburger-dimensions;
301
+ position: relative;
302
+ width: $hamburger-dimensions;
303
+
304
+ span {
305
+ background-color: currentColor;
306
+ display: block;
307
+ height: 1px;
308
+ left: 50%;
309
+ margin-left: -7px;
310
+ position: absolute;
311
+ top: 50%;
312
+ transition: none $speed $easing;
313
+ transition-property: background, left, opacity, transform;
314
+ width: 15px;
315
+
316
+ &:nth-child(1) {
317
+ margin-top: -6px;
318
+ }
319
+
320
+ &:nth-child(2) {
321
+ margin-top: -1px;
322
+ }
323
+
324
+ &:nth-child(3) {
325
+ margin-top: 4px;
326
+ }
327
+ }
328
+
329
+ &:hover {
330
+ background-color: rgba(black, 0.05);
331
+ }
332
+
333
+ // Modifers
334
+ &.is-active {
335
+ span {
336
+ &:nth-child(1) {
337
+ margin-left: -5px;
338
+ transform: rotate(45deg);
339
+ transform-origin: left top;
340
+ }
341
+
342
+ &:nth-child(2) {
343
+ opacity: 0;
344
+ }
345
+
346
+ &:nth-child(3) {
347
+ margin-left: -5px;
348
+ transform: rotate(-45deg);
349
+ transform-origin: left bottom;
350
+ }
351
+ }
352
+ }
353
+ }
354
+
355
+ @mixin ellipsis() {
356
+ white-space: nowrap;
357
+ overflow-x: hidden;
358
+ text-overflow: ellipsis;
359
+ }
360
+
361
+ @mixin text-tags() {
362
+ a,
363
+ span,
364
+ p,
365
+ i,
366
+ strong,
367
+ h1,
368
+ h2,
369
+ h3,
370
+ h4,
371
+ h5,
372
+ label,
373
+ h6 {
374
+ @content;
375
+ }
376
+ }
377
+
378
+ @mixin heading-tags() {
379
+ h1,
380
+ h2,
381
+ h3,
382
+ h4,
383
+ h5,
384
+ h6 {
385
+ @content;
386
+ }
387
+ }
388
+
389
+ @mixin apply-shadow-box {
390
+ box-shadow: $shadow;
391
+ }
392
+
393
+ @mixin apply-colors($property: 'color') {
394
+ @each $name, $pair in $colors-brand-funcionnal {
395
+ $color: getColor($name);
396
+ $brandName: getColorBrandName($name);
397
+ &.is-#{$brandName} {
398
+ #{$property}: $color;
399
+ }
400
+ }
401
+ }
402
+
403
+ @mixin pattern-light($size, $x-pos: top, $y-pos: center) {
404
+ background-size: $size;
405
+ background-position: $x-pos $y-pos;
406
+ }
407
+
408
+ @mixin pattern-dark($size, $x-pos: top, $y-pos: center) {
409
+ background: linear-gradient(#1b3650, getColor('alternate'));
410
+ background-size: auto, $size, auto;
411
+ background-position: top left, $x-pos $y-pos, top left;
412
+ }
413
+
414
+ // import sass bulma
415
+ @mixin input {
416
+ @include control;
417
+ height: 56px;
418
+ background-color: #fff;
419
+ border-color: getColor('grey');
420
+ color: getColor('font');
421
+
422
+ @include placeholder {
423
+ color: getColor('grey') !important;
424
+ opacity: 1 !important;
425
+ transition: all 0.2s ease-out;
426
+ }
427
+
428
+ &:hover,
429
+ &.is-hovered,
430
+ &:focus,
431
+ &.is-focused {
432
+ outline: 1px auto getVariantColor('alternate', 1);
433
+ }
434
+
435
+ &[disabled] {
436
+ background-color: getColor('grey-disabled');
437
+ border-color: getColor('grey-disabled');
438
+ color: getColor('grey');
439
+ }
440
+ }
441
+
442
+ @mixin checkradio {
443
+ outline: 0;
444
+ user-select: none;
445
+ display: inline-block;
446
+ vertical-align: baseline;
447
+ position: absolute;
448
+ opacity: 0;
449
+
450
+ + label {
451
+ cursor: pointer;
452
+ position: relative;
453
+ display: flex;
454
+ align-items: center;
455
+
456
+ &:hover {
457
+ &::before {
458
+ animation-duration: 0.4s;
459
+ animation-fill-mode: both;
460
+ animation-name: hover-color;
461
+ }
462
+ }
463
+
464
+ &::before,
465
+ &::after {
466
+ content: '';
467
+ }
468
+
469
+ &::before {
470
+ border: 1px solid getColor('grey');
471
+ margin: 0 10px 0 0;
472
+ min-width: 16px;
473
+ min-height: 16px;
474
+ }
475
+
476
+ &::after {
477
+ position: absolute;
478
+ display: none;
479
+ }
480
+ }
481
+ }
482
+
483
+ @mixin checkbox-and-radio($type) {
484
+ //BOTH
485
+ .#{$type},
486
+ .#{$type}-tile {
487
+ position: relative;
488
+
489
+ label.#{$type}-label {
490
+ cursor: pointer;
491
+ font-size: 14px;
492
+
493
+ &:before,
494
+ &:after {
495
+ content: '';
496
+ position: absolute;
497
+ width: 18px;
498
+ height: 18px;
499
+ }
500
+
501
+ &:before {
502
+ border: 1px solid getColor('grey');
503
+ }
504
+ }
505
+
506
+ input {
507
+ display: none;
508
+
509
+ &:checked ~ label.#{$type}-label {
510
+ border-color: getColor('alternate');
511
+
512
+ &:before {
513
+ border-color: getColor('alternate');
514
+ }
515
+
516
+ &:after {
517
+ background-color: getColor('alternate');
518
+ }
519
+ }
520
+
521
+ &:disabled,
522
+ &:disabled:checked {
523
+ & ~ label.#{$type}-label {
524
+ cursor: no-drop;
525
+ color: getColor('grey-darker');
526
+ border-color: getColor('grey-disabled');
527
+
528
+ &:before {
529
+ border-color: getColor('grey-disabled');
530
+ }
531
+
532
+ &:after {
533
+ background-color: getColor('grey-disabled');
534
+ }
535
+ }
536
+ }
537
+
538
+ &:disabled {
539
+ & ~ label.#{$type}-label {
540
+ &:after {
541
+ background-color: transparent;
542
+ }
543
+ }
544
+ & .icon {
545
+ background-color: getColor('grey-darker');
546
+ }
547
+ }
548
+ }
549
+ }
550
+
551
+ // SIMPLE WITH LABEL ONLY
552
+ .#{$type} {
553
+ display: flex;
554
+ align-items: center;
555
+ margin: 6px 8px;
556
+
557
+ label.#{$type}-label {
558
+ padding: 4px;
559
+ padding-left: 34px;
560
+
561
+ &:before,
562
+ &:after {
563
+ top: 50%;
564
+ transform: translateY(-50%);
565
+ left: 0;
566
+ }
567
+ }
568
+
569
+ input:checked ~ label.#{$type}-label {
570
+ font-weight: bold;
571
+ }
572
+
573
+ input:not(:disabled) ~ label.#{$type}-label {
574
+ &:hover {
575
+ &:before {
576
+ border-color: getColor('alternate');
577
+ border-width: 2px;
578
+ }
579
+ }
580
+ }
581
+ }
582
+
583
+ //TILE ONLY
584
+ .#{$type}-tile {
585
+ position: relative;
586
+ max-width: 160px;
587
+ display: inline-block;
588
+ margin: 0;
589
+ margin-right: 16px;
590
+ margin-top: 16px;
591
+ text-align: center;
592
+
593
+ &:first-child {
594
+ margin-left: 0;
595
+ }
596
+
597
+ &:last-child {
598
+ margin-right: 0;
599
+ }
600
+
601
+ label.#{$type}-label {
602
+ display: block;
603
+ position: relative;
604
+ padding: 40px 16px 16px;
605
+ border: 1px solid getColor('font');
606
+ border-radius: 8px;
607
+ box-sizing: border-box;
608
+
609
+ &:before {
610
+ top: 16px;
611
+ right: 16px;
612
+ }
613
+
614
+ span.#{$type}-title {
615
+ font-weight: bold;
616
+ width: 100%;
617
+ display: block;
618
+ font-size: 16px;
619
+ }
620
+ }
621
+
622
+ input {
623
+ &:not(:disabled) ~ label.#{$type}-label {
624
+ &:focus,
625
+ &:active,
626
+ &:hover {
627
+ border-color: getColor('alternate');
628
+ border-width: 2px;
629
+ padding: 15px;
630
+ padding-top: 39px;
631
+
632
+ &:before {
633
+ top: 15px;
634
+ right: 15px;
635
+ }
636
+ }
637
+ }
638
+
639
+ &:checked:not(:disabled) ~ label.#{$type}-label {
640
+ border-color: getColor('alternate');
641
+ border-width: 2px;
642
+ padding: 15px;
643
+ padding-top: 39px;
644
+
645
+ &:before {
646
+ top: 15px;
647
+ right: 15px;
648
+ }
649
+
650
+ span.#{$type}-title {
651
+ color: getColor('alternate');
652
+ }
653
+ }
654
+
655
+ &:disabled {
656
+ & ~ label.#{$type}-label {
657
+ background-color: getColor('grey-disabled');
658
+ color: getColor('grey-dark') !important;
659
+
660
+ &:hover {
661
+ border-width: 1px;
662
+ }
663
+
664
+ &:focus,
665
+ &:active,
666
+ &:hover {
667
+ padding: 16px;
668
+ padding-top: 40px;
669
+ }
670
+
671
+ &:before {
672
+ border-color: getColor('grey') !important;
673
+ }
674
+ }
675
+ }
676
+
677
+ &:disabled:checked ~ label.#{$type}-label {
678
+ &:before {
679
+ border-color: getColor('grey') !important;
680
+ }
681
+
682
+ .checkbox-title {
683
+ color: getColor('grey-dark');
684
+ }
685
+ }
686
+ }
687
+
688
+ &.is-horizontal {
689
+ display: flex;
690
+ justify-content: space-between;
691
+ align-items: center;
692
+ max-width: unset;
693
+ width: auto;
694
+ margin: 16px 0;
695
+ position: relative;
696
+
697
+ &.is-narrow{
698
+ width: fit-content;
699
+ }
700
+
701
+ input {
702
+ &:checked:not(:disabled) ~ label.#{$type}-label {
703
+ padding: 15px;
704
+ padding-right: 47px;
705
+ }
706
+
707
+ &:disabled {
708
+ & ~ label.#{$type}-label {
709
+ &:focus,
710
+ &:active,
711
+ &:hover {
712
+ padding: 16px !important;
713
+ padding-right: 48px;
714
+ }
715
+ }
716
+ }
717
+ }
718
+
719
+ label.#{$type}-label {
720
+ width: 100%;
721
+ display: flex;
722
+ align-items: center;
723
+ justify-content: flex-start;
724
+ text-align: left;
725
+ padding: 16px 48px 16px 16px;
726
+
727
+ &:focus,
728
+ &:active,
729
+ &:hover {
730
+ padding: 15px 48px 15px 15px !important;
731
+ }
732
+
733
+ &:before,
734
+ &:after {
735
+ top: 50% !important;
736
+ transform: translateY(-50%);
737
+ }
738
+ }
739
+
740
+ .icon {
741
+ margin-right: 16px;
742
+ }
743
+ }
744
+ }
745
+ }