@trilogy-ds/styles 0.0.3-beta-v4 → 0.0.3-calendar
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/_all.scss +2 -2
- package/framework/src/base/_all.scss +1 -1
- package/framework/src/base/_color.scss +0 -21
- package/framework/src/base/_elements.scss +1 -1
- package/framework/src/base/_generic.scss +5 -0
- package/framework/src/base/_helpers.scss +21 -6
- package/framework/src/base/_loading.scss +2 -2
- package/framework/src/base/_reset.scss +6 -1
- package/framework/src/components/_accordion.scss +4 -3
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +139 -109
- package/framework/src/{elements → components}/_badge.scss +1 -1
- package/framework/src/{elements → components}/_box.scss +9 -11
- package/framework/src/components/_breadcrumb.scss +17 -31
- package/framework/src/{elements → components}/_button.scss +16 -3
- package/framework/src/components/_calendar.scss +128 -0
- package/framework/src/components/_card.scss +26 -9
- package/framework/src/{elements → components}/_checkbox.scss +30 -1
- package/framework/src/components/_countdown.scss +1 -1
- package/framework/src/components/_divider.scss +16 -0
- package/framework/src/components/_flex-box.scss +457 -0
- package/framework/src/components/_index.scss +48 -0
- package/framework/src/{elements → components}/_link.scss +9 -3
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/components/_modal.scss +32 -11
- package/framework/src/components/_otp.scss +2 -2
- package/framework/src/components/_pagination.scss +5 -2
- package/framework/src/components/_price.scss +28 -2
- package/framework/src/{elements → components}/_radio.scss +4 -3
- package/framework/src/components/_segmented-control.scss +9 -5
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +1 -1
- package/framework/src/{elements → components}/_sticker.scss +13 -1
- package/framework/src/{elements → components}/_switch.scss +13 -8
- package/framework/src/{elements → components}/_table.scss +9 -10
- package/framework/src/components/_tabs.scss +66 -28
- package/framework/src/{elements → components}/_tag.scss +1 -17
- package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +1 -1
- package/framework/src/{elements → components}/_title.scss +10 -0
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
- package/framework/src/{elements → components/input}/_entry.scss +48 -10
- package/framework/src/{elements → components/input}/_form.scss +18 -12
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
- package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
- package/framework/src/{elements → components/progress}/_progress.scss +3 -3
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +0 -4
- package/framework/src/grid/_columns.scss +33 -11
- package/framework/src/layout/_hero.scss +4 -0
- package/framework/src/layout/_section.scss +5 -0
- package/framework/src/theming/buttons_partial.scss +1 -1
- package/framework/src/theming/common_partials.scss +1 -1
- package/framework/src/trilogy-mangled.scss +3 -3
- package/framework/src/trilogy.scss +2 -2
- package/framework/src/utilities/_background.scss +3 -1
- package/framework/src/utilities/_derived-variables.scss +0 -92
- package/framework/src/utilities/_initial-variables.scss +3 -111
- package/framework/src/utilities/_pre.scss +3 -1
- package/framework/src/utilities/mixins/_arrow.scss +21 -0
- package/framework/src/utilities/mixins/_delete.scss +86 -0
- package/framework/src/utilities/mixins/_index.scss +11 -0
- package/framework/src/utilities/mixins/_markup-group.scss +27 -0
- package/framework/src/utilities/mixins/_mixins.scss +293 -0
- package/framework/src/utilities/mixins/_overlay.scss +7 -0
- package/framework/src/utilities/mixins/_pattern.scss +10 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
- package/framework/src/utilities/mixins/_spinner.scss +12 -0
- package/framework/src/utilities/mixins/_state.scss +25 -0
- package/framework/src/utilities/mixins/_unselectable.scss +10 -0
- package/framework/src/utilities/mixins/_utils.scss +24 -0
- package/framework/src/utilities/variables/_animation.scss +2 -0
- package/framework/src/utilities/{_colors.scss → variables/_color.scss} +45 -0
- package/framework/src/utilities/variables/_font.scss +97 -0
- package/framework/src/utilities/variables/_index.scss +6 -0
- package/framework/src/utilities/variables/_responsiveness.scss +7 -0
- package/framework/src/utilities/variables/_shadow.scss +3 -0
- package/framework/src/utilities/variables/_zindex.scss +14 -0
- package/package.json +1 -1
- package/framework/src/components/_all.scss +0 -24
- package/framework/src/elements/_all.scss +0 -32
- package/framework/src/elements/_autocomplete.scss +0 -32
- package/framework/src/elements/_list.scss +0 -62
- package/framework/src/elements/_select.scss +0 -96
- package/framework/src/elements/_textarea.scss +0 -133
- package/framework/src/utilities/_mixins.scss +0 -635
- /package/framework/src/{elements → components}/_chips.scss +0 -0
- /package/framework/src/{elements → components}/_container.scss +0 -0
- /package/framework/src/{elements → components}/_icon.scss +0 -0
- /package/framework/src/{elements → components}/_image.scss +0 -0
- /package/framework/src/{elements → components}/_loader.scss +0 -0
- /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
- /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
|
@@ -1,118 +1,10 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import "colors";
|
|
1
|
+
@import './variables';
|
|
3
2
|
|
|
4
3
|
$hoverSelector: "&:hover:not([disabled]):not([aria-disabled=true])";
|
|
5
4
|
|
|
6
|
-
// Typography OS-regular
|
|
7
|
-
$family-sans-serif: 'Poppins Read', BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !default;
|
|
8
|
-
$family-serif: 'Poppins Speak', 'Poppins', 'Arial Black', 'Arial Bold', serif !default;
|
|
9
|
-
$family-monospace: monospace !default;
|
|
10
|
-
$render-mode: optimizeLegibility !default;
|
|
11
|
-
|
|
12
|
-
$font-ratio: 1 !default;
|
|
13
|
-
$font-convert-to-px: false !default;
|
|
14
|
-
|
|
15
|
-
$text-8: 8px !default;
|
|
16
|
-
$text-9: 9px !default;
|
|
17
|
-
$text-10: 10px !default;
|
|
18
|
-
$text-11: 11px !default;
|
|
19
|
-
$text-12: 12px !default;
|
|
20
|
-
$text-13: 13px !default;
|
|
21
|
-
$text-14: 14px !default;
|
|
22
|
-
$text-15: 15px !default;
|
|
23
|
-
$text-16: 16px !default;
|
|
24
|
-
$text-17: 17px !default;
|
|
25
|
-
$text-18: 18px !default;
|
|
26
|
-
$text-19: 19px !default;
|
|
27
|
-
$text-20: 20px !default;
|
|
28
|
-
$text-22: 22px !default;
|
|
29
|
-
$text-24: 24px !default;
|
|
30
|
-
$text-26: 26px !default;
|
|
31
|
-
$text-27: 27px !default;
|
|
32
|
-
$text-28: 28px !default;
|
|
33
|
-
$text-29: 29px !default;
|
|
34
|
-
$text-32: 32px !default;
|
|
35
|
-
$text-34: 34px !default;
|
|
36
|
-
$text-35: 35px !default;
|
|
37
|
-
$text-36: 36px !default;
|
|
38
|
-
$text-38: 38px !default;
|
|
39
|
-
$text-39: 39px !default;
|
|
40
|
-
$text-40: 40px !default;
|
|
41
|
-
$text-42: 42px !default;
|
|
42
|
-
$text-44: 44px !default;
|
|
43
|
-
$text-46: 46px !default;
|
|
44
|
-
$text-48: 48px !default;
|
|
45
|
-
$text-50: 50px !default;
|
|
46
|
-
$text-54: 54px !default;
|
|
47
|
-
$text-56: 56px !default;
|
|
48
|
-
$text-58: 58px !default;
|
|
49
|
-
$text-60: 60px !default;
|
|
50
|
-
$text-64: 64px !default;
|
|
51
|
-
$text-80: 80px !default;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
$size-1: 32px;
|
|
55
|
-
$size-2: $text-28;
|
|
56
|
-
$size-3: $text-24;
|
|
57
|
-
$size-4: $text-20;
|
|
58
|
-
$size-5: $text-18;
|
|
59
|
-
$size-6: 14px !default;
|
|
60
|
-
$size-7: $text-12;
|
|
61
|
-
$size-8: $text-11;
|
|
62
|
-
|
|
63
|
-
$size-1-desktop: $text-48;
|
|
64
|
-
$size-2-desktop: $text-38;
|
|
65
|
-
$size-3-desktop: $text-28;
|
|
66
|
-
$size-4-desktop: $text-24;
|
|
67
|
-
$size-5-desktop: $text-18;
|
|
68
|
-
$size-6-desktop: 14px !default;
|
|
69
|
-
$size-7-desktop: $text-12;
|
|
70
|
-
$size-8-desktop: $text-11;
|
|
71
|
-
|
|
72
|
-
$weight-extrathin: 400 !default;
|
|
73
|
-
$weight-thin: 400 !default;
|
|
74
|
-
$weight-light: 400 !default;
|
|
75
|
-
$weight-normal: 400 !default;
|
|
76
|
-
$weight-medium: 500 !default;
|
|
77
|
-
$weight-semibold: 600 !default;
|
|
78
|
-
$weight-bold: 600 !default;
|
|
79
|
-
$weight-extrabold: 600 !default;
|
|
80
|
-
$weight-black: 600 !default;
|
|
81
|
-
|
|
82
|
-
// Responsiveness
|
|
83
|
-
// The container horizontal gap, which acts as the offset for breakpoints
|
|
84
|
-
$gap: 20px !default;
|
|
85
|
-
|
|
86
|
-
// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
|
|
87
|
-
$tablet: 768px !default;
|
|
88
|
-
|
|
89
|
-
// 960px container + 3rem
|
|
90
|
-
//$desktop: 960px + 2 * $gap !default;
|
|
91
|
-
$desktop: 984px + 2 * $gap !default;
|
|
92
|
-
|
|
93
|
-
// 1152px container + 3rem
|
|
94
|
-
$widescreen: 1200px + 2 * $gap !default;
|
|
95
|
-
$widescreen-enabled: true !default;
|
|
96
|
-
|
|
97
|
-
// 1348px container + 3rem
|
|
98
|
-
$fullhd: 1348px + 2 * $gap !default;
|
|
99
|
-
$fullhd-enabled: true !default;
|
|
100
|
-
|
|
101
|
-
// Miscellaneous
|
|
102
|
-
$easing: ease-out !default;
|
|
103
|
-
$speed: 86ms !default;
|
|
104
|
-
|
|
105
5
|
// Radius
|
|
106
6
|
$radius-small: 4px !default;
|
|
107
7
|
$radius: 8px !default;
|
|
108
8
|
|
|
109
|
-
//
|
|
110
|
-
$
|
|
111
|
-
|
|
112
|
-
// Animations
|
|
113
|
-
$animation-duration: 0.3s;
|
|
114
|
-
$animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
115
|
-
|
|
116
|
-
// Logo sizes
|
|
117
|
-
$logo-width: 150px;
|
|
118
|
-
$logo-width-desktop: 200px;
|
|
9
|
+
// Arrow size
|
|
10
|
+
$arrow-size: 15px;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@import "./../initial-variables";
|
|
2
|
+
|
|
3
|
+
@mixin arrow( $direction: 'down') {
|
|
4
|
+
background-color: currentColor;
|
|
5
|
+
content: "";
|
|
6
|
+
mask-image: url('./assets/icons/all/arrow-down.svg');
|
|
7
|
+
|
|
8
|
+
@if $direction == 'up' {
|
|
9
|
+
rotate: 180deg;
|
|
10
|
+
} @else if $direction == 'left' {
|
|
11
|
+
rotate: 90deg;
|
|
12
|
+
} @else if $direction == 'right' {
|
|
13
|
+
rotate: 270deg;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
min-width: $arrow-size;
|
|
17
|
+
min-height: $arrow-size;
|
|
18
|
+
mask-size: $arrow-size;
|
|
19
|
+
position: absolute;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
%delete {
|
|
2
|
+
@extend %unselectable;
|
|
3
|
+
|
|
4
|
+
-moz-appearance: none;
|
|
5
|
+
-webkit-appearance: none;
|
|
6
|
+
background-color: rgba(black, 0.2);
|
|
7
|
+
border: none;
|
|
8
|
+
border-radius: 9999px;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
display: inline-block;
|
|
11
|
+
flex-grow: 0;
|
|
12
|
+
flex-shrink: 0;
|
|
13
|
+
font-size: 0;
|
|
14
|
+
height: 20px;
|
|
15
|
+
max-height: 20px;
|
|
16
|
+
max-width: 20px;
|
|
17
|
+
min-height: 20px;
|
|
18
|
+
min-width: 20px;
|
|
19
|
+
outline: none;
|
|
20
|
+
position: relative;
|
|
21
|
+
vertical-align: top;
|
|
22
|
+
width: 20px;
|
|
23
|
+
|
|
24
|
+
&::before,
|
|
25
|
+
&::after {
|
|
26
|
+
background-color: #fff;
|
|
27
|
+
content: '';
|
|
28
|
+
display: block;
|
|
29
|
+
left: 50%;
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 50%;
|
|
32
|
+
transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
|
33
|
+
transform-origin: center center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&::before {
|
|
37
|
+
height: 2px;
|
|
38
|
+
width: 50%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&::after {
|
|
42
|
+
height: 50%;
|
|
43
|
+
width: 2px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:hover,
|
|
47
|
+
&:focus {
|
|
48
|
+
background-color: rgba(black, 0.3);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:active {
|
|
52
|
+
background-color: rgba(black, 0.4);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Sizes
|
|
56
|
+
&.is-small {
|
|
57
|
+
height: 16px;
|
|
58
|
+
max-height: 16px;
|
|
59
|
+
max-width: 16px;
|
|
60
|
+
min-height: 16px;
|
|
61
|
+
min-width: 16px;
|
|
62
|
+
width: 16px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.is-medium {
|
|
66
|
+
height: 24px;
|
|
67
|
+
max-height: 24px;
|
|
68
|
+
max-width: 24px;
|
|
69
|
+
min-height: 24px;
|
|
70
|
+
min-width: 24px;
|
|
71
|
+
width: 24px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.is-large {
|
|
75
|
+
height: 32px;
|
|
76
|
+
max-height: 32px;
|
|
77
|
+
max-width: 32px;
|
|
78
|
+
min-height: 32px;
|
|
79
|
+
min-width: 32px;
|
|
80
|
+
width: 32px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@mixin delete {
|
|
85
|
+
@extend %delete;
|
|
86
|
+
}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
@import "../initial-variables";
|
|
3
|
+
|
|
4
|
+
@mixin center($width, $height: 0) {
|
|
5
|
+
position: absolute;
|
|
6
|
+
|
|
7
|
+
@if $height != 0 {
|
|
8
|
+
left: calc(50% - (#{$width} / 2));
|
|
9
|
+
top: calc(50% - (#{$height} / 2));
|
|
10
|
+
} @else {
|
|
11
|
+
left: calc(50% - (#{$width} / 2));
|
|
12
|
+
top: calc(50% - (#{$width} / 2));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin label-states {
|
|
17
|
+
&:focus,
|
|
18
|
+
&:active,
|
|
19
|
+
&:hover {
|
|
20
|
+
@include hover();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// import sass bulma
|
|
25
|
+
@mixin input {
|
|
26
|
+
@include control;
|
|
27
|
+
height: 56px;
|
|
28
|
+
background-color: getColor('background');
|
|
29
|
+
border: var(--border);
|
|
30
|
+
color: getColor('font');
|
|
31
|
+
|
|
32
|
+
@include placeholder {
|
|
33
|
+
color: getColor('font-placeholder') !important;
|
|
34
|
+
opacity: 1 !important;
|
|
35
|
+
transition: all 0.2s ease-out;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include hover();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin checkbox-and-radio($type) {
|
|
42
|
+
//TILES WRAPPER
|
|
43
|
+
.#{$type}-tiles {
|
|
44
|
+
display: flex;
|
|
45
|
+
gap: 16px;
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
//BOTH
|
|
50
|
+
.#{$type},
|
|
51
|
+
.#{$type}-tile {
|
|
52
|
+
position: relative;
|
|
53
|
+
|
|
54
|
+
label.#{$type}-label {
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
|
|
58
|
+
&:before,
|
|
59
|
+
&:after {
|
|
60
|
+
content: '';
|
|
61
|
+
position: absolute;
|
|
62
|
+
width: 18px;
|
|
63
|
+
height: 18px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:before {
|
|
67
|
+
border: var(--border);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
input {
|
|
72
|
+
opacity: 0;
|
|
73
|
+
position: absolute;
|
|
74
|
+
outline: none;
|
|
75
|
+
|
|
76
|
+
&:checked ~ label.#{$type}-label {
|
|
77
|
+
border-color: getColor('main');
|
|
78
|
+
|
|
79
|
+
&:before {
|
|
80
|
+
border-color: getColor('main');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:after {
|
|
84
|
+
background-color: getColor('main');
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
&:focus-visible ~ label.#{$type}-label:before {
|
|
88
|
+
outline: 1px solid;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:disabled,
|
|
92
|
+
&:disabled:checked {
|
|
93
|
+
& ~ label.checkbox-label {
|
|
94
|
+
&:after {
|
|
95
|
+
background-color: getColor('disabled-fade');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
& ~ label.radio-label {
|
|
99
|
+
&:after {
|
|
100
|
+
background-color: getColor('disabled');
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:disabled {
|
|
106
|
+
& ~ label.#{$type}-label {
|
|
107
|
+
&:after {
|
|
108
|
+
background-color: transparent;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.divider {
|
|
114
|
+
&:not(.is-marginless) {
|
|
115
|
+
margin: $spacing-3 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// SIMPLE WITH LABEL ONLY
|
|
121
|
+
.#{$type} {
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
width: fit-content;
|
|
125
|
+
|
|
126
|
+
input:disabled,
|
|
127
|
+
input:disabled:checked {
|
|
128
|
+
& ~ label.#{$type}-label {
|
|
129
|
+
@include disabledRulesWithoutBG;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
label.#{$type}-label {
|
|
134
|
+
padding-left: calc(18px + $spacing-3);
|
|
135
|
+
|
|
136
|
+
&:before,
|
|
137
|
+
&:after {
|
|
138
|
+
top: 50%;
|
|
139
|
+
transform: translateY(-50%);
|
|
140
|
+
left: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:hover &:not(disabled) {
|
|
145
|
+
label.#{$type}-label {
|
|
146
|
+
&:before {
|
|
147
|
+
@include hoverRules();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&:focus {
|
|
153
|
+
border: 2px;
|
|
154
|
+
border-color: getColor('main');
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
//TILE ONLY
|
|
159
|
+
.#{$type}-tile {
|
|
160
|
+
position: relative;
|
|
161
|
+
max-width: 160px;
|
|
162
|
+
display: inline-block;
|
|
163
|
+
text-align: center;
|
|
164
|
+
|
|
165
|
+
input:disabled,
|
|
166
|
+
input:disabled:checked {
|
|
167
|
+
& ~ label.#{$type}-label {
|
|
168
|
+
@include disabledRules;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
&:has(input:focus-visible) label.#{$type}-label{
|
|
172
|
+
outline: 1px solid;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&:first-child {
|
|
176
|
+
margin-left: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&:last-child {
|
|
180
|
+
margin-right: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
label.#{$type}-label {
|
|
184
|
+
display: block;
|
|
185
|
+
position: relative;
|
|
186
|
+
padding: 40px 16px 16px;
|
|
187
|
+
border: var(--border);
|
|
188
|
+
border-radius: var(--radius);
|
|
189
|
+
box-sizing: border-box;
|
|
190
|
+
background-color: getColor('background');
|
|
191
|
+
|
|
192
|
+
&:before {
|
|
193
|
+
top: 16px;
|
|
194
|
+
left: 16px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
span.#{$type}-title {
|
|
198
|
+
font-weight: bold;
|
|
199
|
+
width: 100%;
|
|
200
|
+
display: block;
|
|
201
|
+
font-size: 16px;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
input {
|
|
206
|
+
&:not(:disabled):not(:checked) ~ label.radio-label {
|
|
207
|
+
@include label-states;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&:not(:disabled) ~ label.checkbox-label {
|
|
211
|
+
@include label-states;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&:checked:not(:disabled) ~ label.#{$type}-label {
|
|
215
|
+
border-color: getColor('main');
|
|
216
|
+
border-width: 2px;
|
|
217
|
+
padding: 15px;
|
|
218
|
+
padding-top: 39px;
|
|
219
|
+
|
|
220
|
+
&:before {
|
|
221
|
+
top: 15px;
|
|
222
|
+
left: 15px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
span.#{$type}-title {
|
|
226
|
+
color: getColor('main');
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&:disabled {
|
|
231
|
+
& ~ label.#{$type}-label {
|
|
232
|
+
&:before {
|
|
233
|
+
border-color: getColor('disabled') !important;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&:disabled:checked ~ label.#{$type}-label {
|
|
239
|
+
.checkbox-title {
|
|
240
|
+
color: getColor('disabled');
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.#{$type}-sticker {
|
|
246
|
+
position: absolute;
|
|
247
|
+
top: 0px;
|
|
248
|
+
right: 16px;
|
|
249
|
+
transform: translateY(-50%);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
&.is-horizontal {
|
|
253
|
+
display: flex;
|
|
254
|
+
justify-content: space-between;
|
|
255
|
+
align-items: center;
|
|
256
|
+
max-width: unset;
|
|
257
|
+
width: 100%;
|
|
258
|
+
position: relative;
|
|
259
|
+
|
|
260
|
+
&.is-narrow {
|
|
261
|
+
width: fit-content;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
input {
|
|
265
|
+
&:checked:not(:disabled) ~ label.#{$type}-label {
|
|
266
|
+
padding: ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-8 - 1px);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
label.#{$type}-label {
|
|
272
|
+
width: 100%;
|
|
273
|
+
display: flex;
|
|
274
|
+
align-items: center;
|
|
275
|
+
justify-content: flex-start;
|
|
276
|
+
text-align: left;
|
|
277
|
+
padding: $spacing-4 $spacing-4 $spacing-4 $spacing-8;
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
&:before,
|
|
281
|
+
&:after {
|
|
282
|
+
top: 50% !important;
|
|
283
|
+
transform: translateY(-50%);
|
|
284
|
+
}
|
|
285
|
+
> .icon {
|
|
286
|
+
margin-right: $spacing-4;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@mixin pattern-light($size, $x-pos: top, $y-pos: center) {
|
|
2
|
+
background-size: $size;
|
|
3
|
+
background-position: $x-pos $y-pos;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin pattern-dark($size, $x-pos: top, $y-pos: center) {
|
|
7
|
+
background: linear-gradient(#1b3650, getColor('accent'));
|
|
8
|
+
background-size: auto, $size, auto;
|
|
9
|
+
background-position: top left, $x-pos $y-pos, top left;
|
|
10
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Responsiveness
|
|
2
|
+
@mixin from($device) {
|
|
3
|
+
@media screen and (min-width: $device) {
|
|
4
|
+
@content;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@mixin until($device) {
|
|
9
|
+
@media screen and (max-width: $device - 1px) {
|
|
10
|
+
@content;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin mobile {
|
|
15
|
+
@media screen and (max-width: $tablet - 1px) {
|
|
16
|
+
@content;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin tablet {
|
|
21
|
+
@media screen and (min-width: $tablet), print {
|
|
22
|
+
@content;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin tablet-only {
|
|
27
|
+
@media screen and (min-width: $tablet) and (max-width: $desktop - 1px) {
|
|
28
|
+
@content;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin touch {
|
|
33
|
+
@media screen and (max-width: $desktop - 1px) {
|
|
34
|
+
@content;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin desktop {
|
|
39
|
+
@media screen and (min-width: $desktop) {
|
|
40
|
+
@content;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin desktop-only {
|
|
45
|
+
@media screen and (min-width: $desktop) and (max-width: $widescreen - 1px) {
|
|
46
|
+
@content;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@mixin until-widescreen {
|
|
51
|
+
@media screen and (max-width: $widescreen - 1px) {
|
|
52
|
+
@content;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@mixin widescreen {
|
|
57
|
+
@media screen and (min-width: $widescreen) {
|
|
58
|
+
@content;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@mixin widescreen-only {
|
|
63
|
+
@media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px) {
|
|
64
|
+
@content;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@mixin until-fullhd {
|
|
69
|
+
@media screen and (max-width: $fullhd - 1px) {
|
|
70
|
+
@content;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@mixin fullhd {
|
|
75
|
+
@media screen and (min-width: $fullhd) {
|
|
76
|
+
@content;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin all-desktop-only {
|
|
81
|
+
@media screen and (min-width: $desktop) and (max-width: $fullhd - 1px) {
|
|
82
|
+
@content;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@mixin spinner($color: 'neutral') {
|
|
2
|
+
animation: spinAround 500ms infinite linear;
|
|
3
|
+
border: 2px solid getColor("#{$color}");
|
|
4
|
+
border-radius: 290486px;
|
|
5
|
+
border-right-color: transparent;
|
|
6
|
+
border-top-color: transparent;
|
|
7
|
+
content: '';
|
|
8
|
+
display: block;
|
|
9
|
+
height: 1em;
|
|
10
|
+
position: relative;
|
|
11
|
+
width: 1em;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@mixin hoverRules {
|
|
2
|
+
background-color: getColor('main-fade');
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@mixin hover {
|
|
6
|
+
&:hover:not(.is-disabled):not(:focus) {
|
|
7
|
+
@include hoverRules();
|
|
8
|
+
}
|
|
9
|
+
&:focus:not(.is-disabled), &:focus-visible:not(.is-disabled) {
|
|
10
|
+
border: 2px solid currentColor;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin disabledRulesWithoutBG {
|
|
15
|
+
border-color: getColor('disabled') !important;
|
|
16
|
+
box-shadow: none !important;
|
|
17
|
+
color: getColor('disabled') !important;
|
|
18
|
+
cursor: not-allowed !important;
|
|
19
|
+
filter: grayscale(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin disabledRules {
|
|
23
|
+
background-color: getColor('disabled-fade') !important;
|
|
24
|
+
@include disabledRulesWithoutBG;
|
|
25
|
+
}
|