@trilogy-ds/styles 0.0.1-beta.9 → 0.0.2-alpha-prompt

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 (149) hide show
  1. package/dist/default/assets/icons/all/calendar.svg +1 -0
  2. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  3. package/dist/default/assets/icons/all/micro.svg +1 -0
  4. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  5. package/dist/default/trilogy-mangled.css +1 -1
  6. package/dist/default/trilogy-partials.css +1 -1
  7. package/dist/default/trilogy.css +1 -1
  8. package/framework/src/_all.scss +2 -2
  9. package/framework/src/base/_all.scss +1 -1
  10. package/framework/src/base/_color.scss +1 -52
  11. package/framework/src/base/_elements.scss +1 -1
  12. package/framework/src/base/_generic.scss +9 -1
  13. package/framework/src/base/_helpers.scss +34 -44
  14. package/framework/src/base/_loading.scss +9 -2
  15. package/framework/src/base/_reset.scss +11 -1
  16. package/framework/src/components/_accordion.scss +55 -89
  17. package/framework/src/components/_autocomplete.scss +38 -0
  18. package/framework/src/components/_autolayout.scss +332 -0
  19. package/framework/src/components/_badge.scss +87 -0
  20. package/framework/src/components/_box.scss +168 -0
  21. package/framework/src/components/_breadcrumb.scss +29 -38
  22. package/framework/src/components/_button.scss +79 -0
  23. package/framework/src/components/_calendar.scss +129 -0
  24. package/framework/src/components/_card.scss +33 -87
  25. package/framework/src/components/_checkbox.scss +71 -0
  26. package/framework/src/components/_chips.scss +84 -0
  27. package/framework/src/{elements → components}/_container.scss +7 -46
  28. package/framework/src/components/_countdown.scss +49 -47
  29. package/framework/src/components/_date-picker.scss +58 -0
  30. package/framework/src/components/_divider.scss +48 -14
  31. package/framework/src/components/_dropdown.scss +166 -99
  32. package/framework/src/components/_fab.scss +25 -38
  33. package/framework/src/components/_flex-box.scss +994 -0
  34. package/framework/src/{elements → components}/_icon.scss +4 -4
  35. package/framework/src/components/_image.scss +69 -0
  36. package/framework/src/components/_index.scss +51 -0
  37. package/framework/src/components/_link.scss +58 -0
  38. package/framework/src/components/_list.scss +66 -0
  39. package/framework/src/{elements → components}/_loader.scss +2 -2
  40. package/framework/src/components/_modal.scss +182 -158
  41. package/framework/src/components/_otp.scss +11 -30
  42. package/framework/src/components/_pagination.scss +60 -159
  43. package/framework/src/components/_popover.scss +260 -260
  44. package/framework/src/components/_price.scss +140 -165
  45. package/framework/src/components/_product-tour.scss +2 -4
  46. package/framework/src/components/_prompt.scss +125 -0
  47. package/framework/src/components/_radio.scss +82 -0
  48. package/framework/src/components/_range.scss +73 -72
  49. package/framework/src/components/_segmented-control.scss +55 -53
  50. package/framework/src/components/_select.scss +131 -0
  51. package/framework/src/components/_stepper.scss +42 -222
  52. package/framework/src/{elements → components}/_sticker.scss +25 -28
  53. package/framework/src/components/_switch.scss +97 -191
  54. package/framework/src/components/_table.scss +244 -0
  55. package/framework/src/components/_tabs.scss +114 -98
  56. package/framework/src/components/_tag.scss +114 -0
  57. package/framework/src/components/_text.scss +55 -0
  58. package/framework/src/components/_textarea.scss +46 -0
  59. package/framework/src/components/_timeline.scss +28 -113
  60. package/framework/src/components/_title.scss +151 -0
  61. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  62. package/framework/src/components/alert/_index.scss +2 -0
  63. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  64. package/framework/src/components/input/_entry.scss +135 -0
  65. package/framework/src/{elements → components/input}/_form.scss +42 -33
  66. package/framework/src/components/input/_index.scss +4 -0
  67. package/framework/src/components/input/_input-gauge.scss +44 -0
  68. package/framework/src/components/input/_input-icons.scss +55 -0
  69. package/framework/src/components/progress/_index.scss +2 -0
  70. package/framework/src/components/progress/_progress-radial.scss +28 -0
  71. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  72. package/framework/src/elements/_index.scss +5 -0
  73. package/framework/src/elements/_other.scss +0 -41
  74. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  75. package/framework/src/grid/_columns.scss +278 -763
  76. package/framework/src/grid/_rows.scss +45 -38
  77. package/framework/src/layout/_all.scss +0 -1
  78. package/framework/src/layout/_hero.scss +92 -214
  79. package/framework/src/layout/_section.scss +10 -29
  80. package/framework/src/theming/_all.scss +3 -0
  81. package/framework/src/theming/buttons_partial.scss +32 -0
  82. package/framework/src/theming/common_partials.scss +10 -0
  83. package/framework/src/theming/links_partial.scss +20 -0
  84. package/framework/src/trilogy-mangled.scss +3 -3
  85. package/framework/src/trilogy.scss +2 -2
  86. package/framework/src/utilities/_a11y.scss +13 -0
  87. package/framework/src/utilities/_all.scss +4 -0
  88. package/framework/src/utilities/_background.scss +21 -0
  89. package/framework/src/utilities/_controls.scss +38 -49
  90. package/framework/src/utilities/_derived-variables.scss +0 -103
  91. package/framework/src/utilities/_initial-variables.scss +4 -144
  92. package/framework/src/utilities/_pre.scss +4 -1
  93. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  94. package/framework/src/utilities/mixins/_delete.scss +86 -0
  95. package/framework/src/utilities/mixins/_index.scss +11 -0
  96. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  97. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  98. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  99. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  100. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  101. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  102. package/framework/src/utilities/mixins/_state.scss +25 -0
  103. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  104. package/framework/src/utilities/mixins/_utils.scss +24 -0
  105. package/framework/src/utilities/variables/_animation.scss +2 -0
  106. package/framework/src/utilities/variables/_color.scss +85 -0
  107. package/framework/src/utilities/variables/_font.scss +97 -0
  108. package/framework/src/utilities/variables/_index.scss +6 -0
  109. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  110. package/framework/src/utilities/variables/_shadow.scss +3 -0
  111. package/framework/src/utilities/variables/_zindex.scss +14 -0
  112. package/package.json +8 -3
  113. package/framework/src/components/_all.scss +0 -30
  114. package/framework/src/components/_autolayout2.scss +0 -38
  115. package/framework/src/components/_disclaimer.scss +0 -84
  116. package/framework/src/components/_level.scss +0 -120
  117. package/framework/src/components/_media.scss +0 -64
  118. package/framework/src/components/_menu.scss +0 -213
  119. package/framework/src/components/_progress-radial.scss +0 -23
  120. package/framework/src/components/_search-modal.scss +0 -197
  121. package/framework/src/components/_slices.scss +0 -316
  122. package/framework/src/components/_slider.scss +0 -92
  123. package/framework/src/elements/_all.scss +0 -35
  124. package/framework/src/elements/_badge.scss +0 -81
  125. package/framework/src/elements/_box.scss +0 -267
  126. package/framework/src/elements/_button.scss +0 -192
  127. package/framework/src/elements/_checkbox.scss +0 -39
  128. package/framework/src/elements/_checkradio.scss +0 -173
  129. package/framework/src/elements/_chips.scss +0 -100
  130. package/framework/src/elements/_dot.scss +0 -6
  131. package/framework/src/elements/_entry.scss +0 -109
  132. package/framework/src/elements/_image.scss +0 -59
  133. package/framework/src/elements/_input-gauge.scss +0 -37
  134. package/framework/src/elements/_input-icons.scss +0 -41
  135. package/framework/src/elements/_link.scss +0 -79
  136. package/framework/src/elements/_list.scss +0 -61
  137. package/framework/src/elements/_notification.scss +0 -151
  138. package/framework/src/elements/_options.scss +0 -146
  139. package/framework/src/elements/_paragraph.scss +0 -101
  140. package/framework/src/elements/_radio.scss +0 -67
  141. package/framework/src/elements/_select.scss +0 -315
  142. package/framework/src/elements/_switch.scss +0 -108
  143. package/framework/src/elements/_table.scss +0 -298
  144. package/framework/src/elements/_tag.scss +0 -131
  145. package/framework/src/elements/_textarea.scss +0 -125
  146. package/framework/src/elements/_timeline.scss +0 -283
  147. package/framework/src/elements/_title.scss +0 -139
  148. package/framework/src/layout/_toolbar.scss +0 -100
  149. package/framework/src/utilities/_mixins.scss +0 -744
@@ -1,744 +0,0 @@
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 48px 16px 16px !important;
713
- }
714
- }
715
- }
716
- }
717
-
718
- label.#{$type}-label {
719
- width: 100%;
720
- display: flex;
721
- align-items: center;
722
- justify-content: flex-start;
723
- text-align: left;
724
- padding: 16px 48px 16px 16px;
725
-
726
- &:focus,
727
- &:active,
728
- &:hover {
729
- padding: 15px 48px 15px 15px !important;
730
- }
731
-
732
- &:before,
733
- &:after {
734
- top: 50% !important;
735
- transform: translateY(-50%);
736
- }
737
- }
738
-
739
- .icon {
740
- margin-right: 16px;
741
- }
742
- }
743
- }
744
- }