@trilogy-ds/styles 4.1.2-beta-4 → 4.1.3-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.
- 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/base/_color.scss +7 -6
- package/framework/src/base/_helpers.scss +12 -3
- package/framework/src/components/_modal.scss +3 -1
- package/framework/src/components/_pagination.scss +2 -2
- package/framework/src/components/_price.scss +8 -6
- package/framework/src/components/_tabs.scss +3 -6
- package/framework/src/elements/_button.scss +10 -8
- package/framework/src/elements/_entry.scss +3 -3
- package/framework/src/elements/_icon.scss +26 -23
- package/framework/src/elements/_list.scss +3 -0
- package/framework/src/elements/_paragraph.scss +6 -4
- package/framework/src/elements/_progress.scss +4 -3
- package/framework/src/elements/_select.scss +3 -2
- package/framework/src/elements/_title.scss +18 -7
- package/framework/src/elements/_toaster.scss +3 -6
- package/framework/src/grid/_columns.scss +3 -2
- package/framework/src/grid/_rows.scss +4 -2
- package/framework/src/theming/buttons_partial.scss +2 -0
- package/framework/src/utilities/_background.scss +2 -0
- package/framework/src/utilities/_functions.scss +12 -8
- package/framework/src/utilities/_mixins.scss +3 -2
- package/package.json +1 -1
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
|
+
@use 'sass:list';
|
|
2
3
|
|
|
3
4
|
@function getColor( $name ) {
|
|
4
|
-
@return var(--color-#{nth(map
|
|
5
|
+
@return var(--color-#{list.nth(map.get($colors,$name),2)});
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
@function getColorValue( $name ) {
|
|
8
|
-
@return #{nth(map
|
|
9
|
+
@return #{list.nth(map.get($colors,$name),1)}
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
@function getColorBrandName( $name ) {
|
|
12
|
-
@return #{nth(map
|
|
13
|
+
@return #{list.nth(map.get($colors,$name),2)}
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
:root {
|
|
16
17
|
@each $name, $color in $colors {
|
|
17
|
-
--color-#{nth($color,2)}: #{nth($color,1)};
|
|
18
|
+
--color-#{list.nth($color,2)}: #{list.nth($color,1)};
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
@function invertColor ($colorName) {
|
|
22
|
-
@return var(--color-#{nth(map
|
|
23
|
+
@return var(--color-#{list.nth(map.get($colors,$colorName),3)})
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
@function fadeColor ($colorName) {
|
|
26
|
-
$name: map
|
|
27
|
+
$name: map.get($fade-colors,$colorName);
|
|
27
28
|
@return getColor($name);
|
|
28
29
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
|
|
1
3
|
.is-sticky-top {
|
|
2
4
|
position: sticky !important;
|
|
3
5
|
top: 0;
|
|
@@ -110,7 +112,14 @@ $alignments: (
|
|
|
110
112
|
// Typography
|
|
111
113
|
@mixin typography-size($target: '') {
|
|
112
114
|
@each $size in $sizes {
|
|
113
|
-
|
|
115
|
+
|
|
116
|
+
$i: list.index($sizes, $size);
|
|
117
|
+
|
|
118
|
+
.is-size-#{$i}#{if($target == '', '', '-' + $target)} {
|
|
119
|
+
font-size: $size !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
$i: list.index($sizes, $size);
|
|
114
123
|
|
|
115
124
|
.is-size-#{$i}#{if($target == '', '', '-' + $target)} {
|
|
116
125
|
font-size: $size !important;
|
|
@@ -197,8 +206,8 @@ $alignments: (
|
|
|
197
206
|
|
|
198
207
|
@mixin typography-colors() {
|
|
199
208
|
@each $name, $color in $colors {
|
|
200
|
-
$brandName: nth($color, 2);
|
|
201
|
-
$color: nth($color, 1);
|
|
209
|
+
$brandName: list.nth($color, 2);
|
|
210
|
+
$color: list.nth($color, 1);
|
|
202
211
|
$color-invert: invertColor($name);
|
|
203
212
|
|
|
204
213
|
.has-text-#{$brandName} {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
$modal-content-width: 640px !default;
|
|
2
4
|
$modal-content-margin-mobile: 20px !default;
|
|
3
5
|
$modal-close-dimensions: 40px !default;
|
|
@@ -54,7 +56,7 @@ body:has(.modal.is-active) {
|
|
|
54
56
|
@each $dimension in $dimensions-extended {
|
|
55
57
|
&.is-#{$dimension} {
|
|
56
58
|
.modal-content {
|
|
57
|
-
width: map
|
|
59
|
+
width: map.get($modal-dimensions, $dimension);
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
}
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
.pagination-next,
|
|
11
11
|
.pagination-link,
|
|
12
12
|
.pagination-ellipsis {
|
|
13
|
-
@include control;
|
|
14
|
-
@include unselectable;
|
|
15
13
|
font-size: 1em;
|
|
16
14
|
padding-left: 0.5em;
|
|
17
15
|
padding-right: 0.5em;
|
|
18
16
|
justify-content: center;
|
|
19
17
|
margin: 2.5px;
|
|
20
18
|
text-align: center;
|
|
19
|
+
@include control;
|
|
20
|
+
@include unselectable;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.pagination-previous,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
|
|
1
3
|
$price-levels: (
|
|
2
4
|
[$text-64, $text-44, $text-28, $text-16],
|
|
3
5
|
[$text-56, $text-32, $text-22, $text-16],
|
|
@@ -16,9 +18,9 @@ $price-levels: (
|
|
|
16
18
|
--font-size: #{$text-64};
|
|
17
19
|
|
|
18
20
|
@each $price-level in $price-levels {
|
|
19
|
-
$i: index($price-levels, $price-level);
|
|
20
|
-
$font-size: nth($price-level, 1);
|
|
21
|
-
$strike-font-size: nth($price-level, 2);
|
|
21
|
+
$i: list.index($price-levels, $price-level);
|
|
22
|
+
$font-size: list.nth($price-level, 1);
|
|
23
|
+
$strike-font-size: list.nth($price-level, 2);
|
|
22
24
|
|
|
23
25
|
&.is-level-#{$i} {
|
|
24
26
|
--font-size: #{$font-size};
|
|
@@ -63,9 +65,9 @@ $price-levels: (
|
|
|
63
65
|
|
|
64
66
|
|
|
65
67
|
@each $price-level in $price-levels {
|
|
66
|
-
$i: index($price-levels, $price-level);
|
|
67
|
-
$font-size: nth($price-level, 1);
|
|
68
|
-
$strike-font-size: nth($price-level, 2);
|
|
68
|
+
$i: list.index($price-levels, $price-level);
|
|
69
|
+
$font-size: list.nth($price-level, 1);
|
|
70
|
+
$strike-font-size: list.nth($price-level, 2);
|
|
69
71
|
|
|
70
72
|
&.is-level-#{$i} {
|
|
71
73
|
--font-size: #{$font-size};
|
|
@@ -12,10 +12,6 @@
|
|
|
12
12
|
-ms-overflow-style: none !important;
|
|
13
13
|
scrollbar-width: none;
|
|
14
14
|
|
|
15
|
-
@include mobile {
|
|
16
|
-
text-align: left;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
15
|
&::-webkit-scrollbar {
|
|
20
16
|
width: 0 !important;
|
|
21
17
|
height: 0 !important;
|
|
@@ -90,11 +86,12 @@
|
|
|
90
86
|
outline: none;
|
|
91
87
|
padding: 6px 14px;
|
|
92
88
|
font-size: $text-14;
|
|
89
|
+
border: 0 solid transparent;
|
|
90
|
+
border-bottom: 2px solid transparent;
|
|
91
|
+
|
|
93
92
|
@include desktop {
|
|
94
93
|
font-size: $text-16;
|
|
95
94
|
}
|
|
96
|
-
border: 0px solid transparent;
|
|
97
|
-
border-bottom: 2px solid transparent;
|
|
98
95
|
|
|
99
96
|
.tab-icon {
|
|
100
97
|
margin-top: 2px;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
|
|
1
3
|
$button-border-width: 2px !default;
|
|
4
|
+
$button-colors: () !default;
|
|
2
5
|
|
|
3
6
|
.buttons {
|
|
4
7
|
width: 100%;
|
|
@@ -22,20 +25,19 @@ $button-border-width: 2px !default;
|
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
.button {
|
|
25
|
-
@include control;
|
|
26
|
-
@include unselectable;
|
|
27
|
-
@extend %buttons-states;
|
|
28
|
-
|
|
29
28
|
background-color: white;
|
|
30
29
|
border-width: $button-border-width;
|
|
31
30
|
border-radius: var(--radius-small);
|
|
32
31
|
cursor: pointer;
|
|
33
|
-
justify-content: center;
|
|
32
|
+
justify-content: center !important;
|
|
34
33
|
text-align: center;
|
|
35
34
|
white-space: nowrap;
|
|
36
35
|
padding: 0 $spacing-4;
|
|
37
36
|
text-decoration: inherit;
|
|
38
37
|
font-weight: $weight-semibold;
|
|
38
|
+
@include control;
|
|
39
|
+
@include unselectable;
|
|
40
|
+
@extend %buttons-states;
|
|
39
41
|
|
|
40
42
|
@include mobile {
|
|
41
43
|
width: 100%;
|
|
@@ -43,9 +45,9 @@ $button-border-width: 2px !default;
|
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
@each $name, $pair in $button-colors {
|
|
46
|
-
$variantName: nth($pair, 1);
|
|
47
|
-
$colorBG: getColor(#{nth($pair, 2)});
|
|
48
|
-
$colorText: getColor(nth($pair, 3));
|
|
48
|
+
$variantName: list.nth($pair, 1);
|
|
49
|
+
$colorBG: getColor(#{list.nth($pair, 2)});
|
|
50
|
+
$colorText: getColor(list.nth($pair, 3));
|
|
49
51
|
|
|
50
52
|
&.is-#{$variantName} {
|
|
51
53
|
background-color: $colorBG;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.input,
|
|
2
2
|
.textarea {
|
|
3
|
-
@include input;
|
|
4
|
-
|
|
5
3
|
padding-left: $spacing-4;
|
|
6
4
|
padding-right: $spacing-4;
|
|
7
5
|
font-size: $size-medium;
|
|
8
6
|
max-width: 100%;
|
|
9
7
|
width: 100%;
|
|
10
8
|
|
|
9
|
+
@include input;
|
|
10
|
+
|
|
11
11
|
// Colors
|
|
12
12
|
@each $name in $colors-brand-functionnal {
|
|
13
13
|
$color: getColor($name);
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
-webkit-appearance: none;
|
|
88
88
|
background-repeat: no-repeat;
|
|
89
89
|
background-color: getColor('background') ;
|
|
90
|
-
background-position: center;
|
|
90
|
+
background-position: center;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
&[type="search"] {
|
|
@@ -34,12 +34,6 @@ $size: (
|
|
|
34
34
|
|
|
35
35
|
[class^="tri-"],
|
|
36
36
|
[class*=" tri-"] {
|
|
37
|
-
&::before {
|
|
38
|
-
width: 1em;
|
|
39
|
-
height: 1em;
|
|
40
|
-
content: "\00a0";
|
|
41
|
-
margin: 0;
|
|
42
|
-
}
|
|
43
37
|
display: flex;
|
|
44
38
|
-webkit-mask-repeat: no-repeat;
|
|
45
39
|
mask-repeat: no-repeat;
|
|
@@ -48,6 +42,13 @@ $size: (
|
|
|
48
42
|
-webkit-mask-size: cover;
|
|
49
43
|
mask-size: cover;
|
|
50
44
|
background-color: currentColor;
|
|
45
|
+
|
|
46
|
+
&::before {
|
|
47
|
+
width: 1em;
|
|
48
|
+
height: 1em;
|
|
49
|
+
content: "\00a0";
|
|
50
|
+
margin: 0;
|
|
51
|
+
}
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
@each $name, $sizeConfig in $size {
|
|
@@ -123,6 +124,16 @@ $size: (
|
|
|
123
124
|
|
|
124
125
|
&.is-animated {
|
|
125
126
|
.tri-notification_top {
|
|
127
|
+
animation-name: bellring;
|
|
128
|
+
animation-duration: 6s;
|
|
129
|
+
animation-iteration-count: infinite;
|
|
130
|
+
animation-timing-function: ease-in-out;
|
|
131
|
+
animation-delay: -2s;
|
|
132
|
+
animation-direction: initial;
|
|
133
|
+
transform-origin: center top;
|
|
134
|
+
-moz-animation: none;
|
|
135
|
+
-moz-transform-origin: center top;
|
|
136
|
+
|
|
126
137
|
@keyframes bellring {
|
|
127
138
|
0% {
|
|
128
139
|
transform: rotate(-5deg);
|
|
@@ -161,18 +172,18 @@ $size: (
|
|
|
161
172
|
}
|
|
162
173
|
}
|
|
163
174
|
|
|
164
|
-
animation-name: bellring;
|
|
165
|
-
animation-duration: 6s;
|
|
166
|
-
animation-iteration-count: infinite;
|
|
167
|
-
animation-timing-function: ease-in-out;
|
|
168
|
-
animation-delay: -2s;
|
|
169
|
-
animation-direction: initial;
|
|
170
|
-
transform-origin: center top;
|
|
171
|
-
-moz-animation: none;
|
|
172
|
-
-moz-transform-origin: center top;
|
|
173
175
|
}
|
|
174
176
|
|
|
175
177
|
.tri-notification_bottom {
|
|
178
|
+
animation-name: bellbounce !important;
|
|
179
|
+
animation-duration: 6s;
|
|
180
|
+
animation-iteration-count: infinite;
|
|
181
|
+
animation-timing-function: initial;
|
|
182
|
+
animation-delay: -2s;
|
|
183
|
+
animation-direction: normal;
|
|
184
|
+
transform-origin: center top;
|
|
185
|
+
-moz-animation: none;
|
|
186
|
+
|
|
176
187
|
@keyframes bellbounce {
|
|
177
188
|
0% {
|
|
178
189
|
transform: translateX(-1px) rotate(-5deg);
|
|
@@ -219,14 +230,6 @@ $size: (
|
|
|
219
230
|
}
|
|
220
231
|
}
|
|
221
232
|
|
|
222
|
-
animation-name: bellbounce !important;
|
|
223
|
-
animation-duration: 6s;
|
|
224
|
-
animation-iteration-count: infinite;
|
|
225
|
-
animation-timing-function: initial;
|
|
226
|
-
animation-delay: -2s;
|
|
227
|
-
animation-direction: normal;
|
|
228
|
-
transform-origin: center top;
|
|
229
|
-
-moz-animation: none;
|
|
230
233
|
}
|
|
231
234
|
}
|
|
232
235
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
|
|
1
3
|
$text-levels: (
|
|
2
4
|
($text-16, $text-20, $text-16),
|
|
3
5
|
($text-14, $text-18, $text-16),
|
|
@@ -14,9 +16,9 @@ $text-levels-mobile: (
|
|
|
14
16
|
|
|
15
17
|
.text {
|
|
16
18
|
@each $text-level in $text-levels {
|
|
17
|
-
$i: index($text-levels, $text-level);
|
|
18
|
-
$font-size: nth($text-level, 1);
|
|
19
|
-
$line-height: nth($text-level, 2);
|
|
19
|
+
$i: list.index($text-levels, $text-level);
|
|
20
|
+
$font-size: list.nth($text-level, 1);
|
|
21
|
+
$line-height: list.nth($text-level, 2);
|
|
20
22
|
|
|
21
23
|
&.is-level-#{$i} {
|
|
22
24
|
font-size: $font-size;
|
|
@@ -31,7 +33,7 @@ $text-levels-mobile: (
|
|
|
31
33
|
|
|
32
34
|
@include mobile {
|
|
33
35
|
@each $text-level-mobile in $text-levels-mobile {
|
|
34
|
-
$i: index($text-levels-mobile, $text-level-mobile);
|
|
36
|
+
$i: list.index($text-levels-mobile, $text-level-mobile);
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
|
+
@use 'sass:list';
|
|
2
3
|
|
|
3
4
|
@import "../base/color";
|
|
4
5
|
|
|
@@ -165,9 +166,9 @@ $progress-circle-slices: (
|
|
|
165
166
|
$slides-concat: '';
|
|
166
167
|
|
|
167
168
|
@each $slice in $progress-circle-slices {
|
|
168
|
-
$name: nth($slice, 1);
|
|
169
|
-
$color: nth($slice, 2);
|
|
170
|
-
$i: index($progress-circle-slices, $slice);
|
|
169
|
+
$name: list.nth($slice, 1);
|
|
170
|
+
$color: list.nth($slice, 2);
|
|
171
|
+
$i: list.index($progress-circle-slices, $slice);
|
|
171
172
|
|
|
172
173
|
@if $i > 1 {
|
|
173
174
|
.progress-circle-background-#{$name} {
|
|
@@ -8,10 +8,11 @@ $status-select: (
|
|
|
8
8
|
|
|
9
9
|
select {
|
|
10
10
|
width: 100%;
|
|
11
|
-
@include input;
|
|
12
11
|
padding-right: 40px;
|
|
13
12
|
text-overflow: ellipsis;
|
|
14
13
|
|
|
14
|
+
@include input;
|
|
15
|
+
|
|
15
16
|
&:focus {
|
|
16
17
|
padding-left: 15px !important;
|
|
17
18
|
}
|
|
@@ -20,7 +21,7 @@ $status-select: (
|
|
|
20
21
|
$color: getColor($name);
|
|
21
22
|
$color-invert: invertColor($name);
|
|
22
23
|
$brandName: getColorBrandName($name);
|
|
23
|
-
|
|
24
|
+
|
|
24
25
|
&.is-#{$brandName} {
|
|
25
26
|
border: 1px solid $color;
|
|
26
27
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
+
@use 'sass:list';
|
|
2
3
|
|
|
3
4
|
$title-weight: $weight-semibold;
|
|
5
|
+
$title-high-weight: 550;
|
|
4
6
|
$title-line-height: 1.1;
|
|
5
7
|
$title-strong-color: inherit;
|
|
6
8
|
$title-strong-weight: inherit;
|
|
@@ -57,10 +59,19 @@ $title-levels-mobile: (
|
|
|
57
59
|
|
|
58
60
|
// new typography
|
|
59
61
|
@each $title-level in $title-levels {
|
|
60
|
-
$i: index($title-levels, $title-level);
|
|
61
|
-
$font-size: nth($title-level, 1);
|
|
62
|
-
$line-height: nth($title-level, 2);
|
|
63
|
-
$font-family: nth($title-level, 3);
|
|
62
|
+
$i: list.index($title-levels, $title-level);
|
|
63
|
+
$font-size: list.nth($title-level, 1);
|
|
64
|
+
$line-height: list.nth($title-level, 2);
|
|
65
|
+
$font-family: list.nth($title-level, 3);
|
|
66
|
+
|
|
67
|
+
// Avoid Safari font weight issues
|
|
68
|
+
&.is-level-1 {
|
|
69
|
+
font-weight: $title-high-weight;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.is-level-2 {
|
|
73
|
+
font-weight: $title-high-weight;
|
|
74
|
+
}
|
|
64
75
|
|
|
65
76
|
&.is-level-#{$i} {
|
|
66
77
|
font-size: $font-size;
|
|
@@ -107,9 +118,9 @@ $title-levels-mobile: (
|
|
|
107
118
|
|
|
108
119
|
@include mobile {
|
|
109
120
|
@each $title-level-mobile in $title-levels-mobile {
|
|
110
|
-
$i: index($title-levels-mobile, $title-level-mobile);
|
|
111
|
-
$font-size-mobile: nth($title-level-mobile, 1);
|
|
112
|
-
$line-height-mobile: nth($title-level-mobile, 2);
|
|
121
|
+
$i: list.index($title-levels-mobile, $title-level-mobile);
|
|
122
|
+
$font-size-mobile: list.nth($title-level-mobile, 1);
|
|
123
|
+
$line-height-mobile: list.nth($title-level-mobile, 2);
|
|
113
124
|
&.is-level-#{$i} {
|
|
114
125
|
font-size: $font-size-mobile;
|
|
115
126
|
line-height: $line-height-mobile;
|
|
@@ -11,14 +11,15 @@ a.toaster {
|
|
|
11
11
|
|
|
12
12
|
.toaster {
|
|
13
13
|
@include apply-shadow-box();
|
|
14
|
-
|
|
15
|
-
|
|
16
14
|
background-color: getColor('info-fade');
|
|
17
15
|
border-radius: var(--radius);
|
|
18
16
|
margin-bottom: 16px;
|
|
19
17
|
position: relative;
|
|
20
18
|
margin-left: 24px;
|
|
21
19
|
margin-right: 24px;
|
|
20
|
+
box-shadow: none;
|
|
21
|
+
padding: $spacing-4;
|
|
22
|
+
display: flex;
|
|
22
23
|
|
|
23
24
|
.toaster-close {
|
|
24
25
|
padding-right: 0 !important ;
|
|
@@ -93,7 +94,6 @@ a.toaster {
|
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
|
|
96
|
-
display: flex;
|
|
97
97
|
|
|
98
98
|
> .icon {
|
|
99
99
|
flex: none;
|
|
@@ -114,9 +114,6 @@ a.toaster {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
box-shadow: none;
|
|
118
|
-
padding: $spacing-4;
|
|
119
|
-
|
|
120
117
|
.title,
|
|
121
118
|
.text,
|
|
122
119
|
.paragraph {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
+
@use 'sass:list';
|
|
2
3
|
|
|
3
4
|
$columnWidth: calc((100% / (var(--ColumnFraction))) - ((((var(--ColumnFraction)) - 1) / (var(--ColumnFraction))) * var(--ColumnGap)));
|
|
4
5
|
$offsetWidth: calc((100% / (var(--offset))) - ((((var(--offset)) - 1) / (var(--offset))) * var(--ColumnGap)) + var(--ColumnGap));
|
|
@@ -56,8 +57,8 @@ $gap: 4px,
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
@for $i from 1 through length($gap) {
|
|
60
|
-
$item: nth($gap, $i);
|
|
60
|
+
@for $i from 1 through list.length($gap) {
|
|
61
|
+
$item: list.nth($gap, $i);
|
|
61
62
|
&.is-mobile.has-gap-#{$i} {
|
|
62
63
|
gap: $item;
|
|
63
64
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
|
|
1
3
|
$gap: 4px,
|
|
2
4
|
8px,
|
|
3
5
|
12px,
|
|
@@ -22,8 +24,8 @@ $gap: 4px,
|
|
|
22
24
|
gap: 16px;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
@for $i from 1 through length($gap) {
|
|
26
|
-
$item: nth($gap, $i);
|
|
27
|
+
@for $i from 1 through list.length($gap) {
|
|
28
|
+
$item: list.nth($gap, $i);
|
|
27
29
|
&.has-gap-#{$i} {
|
|
28
30
|
gap: $item;
|
|
29
31
|
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use 'sass:string';
|
|
4
|
+
@use 'sass:meta';
|
|
5
|
+
|
|
2
6
|
@import "./derived-variables";
|
|
3
7
|
|
|
4
8
|
@function encodecolor($string) {
|
|
5
|
-
@if type-of($string) == 'string' and
|
|
6
|
-
@return '%23' +
|
|
9
|
+
@if meta.type-of($string) == 'string' and string.index($string, '#') == 1 {
|
|
10
|
+
@return '%23' + string.slice( $string, 2);
|
|
7
11
|
}
|
|
8
12
|
|
|
9
|
-
@if type-of($string) == 'color' and
|
|
10
|
-
$hex:
|
|
13
|
+
@if meta.type-of($string) == 'color' and string.index(#{$string}, '#') == 1 {
|
|
14
|
+
$hex: string.slice(ie-hex-str($string), 4);
|
|
11
15
|
$string: unquote('#{$hex}');
|
|
12
16
|
@return '%23' + $string;
|
|
13
17
|
}
|
|
@@ -52,14 +56,14 @@
|
|
|
52
56
|
$color-rgb: map-merge($color-rgb, ($name: $value));
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
@return map
|
|
59
|
+
@return map.get($color-rgb, "red") * 0.2126 + map.get($color-rgb, "green") * 0.7152 + map.get($color-rgb, "blue") * 0.0722;
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
/// Remove the unit of a length
|
|
59
63
|
/// @param {Number} $number - Number to remove unit from
|
|
60
64
|
/// @return {Number} - Unitless number
|
|
61
65
|
@function strip-unit($number) {
|
|
62
|
-
@if type-of($number) == 'number' and not unitless($number) {
|
|
66
|
+
@if meta.type-of($number) == 'number' and not unitless($number) {
|
|
63
67
|
@return math.div($number, $number * 0 + 1);
|
|
64
68
|
}
|
|
65
69
|
|
|
@@ -67,7 +71,7 @@
|
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
@function num($input) {
|
|
70
|
-
@if type-of($input) != number {
|
|
74
|
+
@if meta.type-of($input) != number {
|
|
71
75
|
@return null;
|
|
72
76
|
}
|
|
73
77
|
|
|
@@ -90,5 +94,5 @@
|
|
|
90
94
|
}
|
|
91
95
|
|
|
92
96
|
@function zindex($key) {
|
|
93
|
-
@return map
|
|
97
|
+
@return map.get($zindex, $key);
|
|
94
98
|
}
|
|
@@ -362,12 +362,13 @@
|
|
|
362
362
|
|
|
363
363
|
// import sass bulma
|
|
364
364
|
@mixin input {
|
|
365
|
-
@include control;
|
|
366
365
|
height: 56px;
|
|
367
366
|
background-color: getColor('background');
|
|
368
|
-
border-color: getColor('neutral');
|
|
367
|
+
border-color: getColor('neutral') !important;
|
|
369
368
|
color: getColor('font');
|
|
370
369
|
|
|
370
|
+
@include control;
|
|
371
|
+
|
|
371
372
|
@include placeholder {
|
|
372
373
|
color: getColor('font') !important;
|
|
373
374
|
filter: grayscale(100%);
|