@trilogy-ds/styles 4.1.3-beta-1 → 4.2.2-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 +6 -7
- package/framework/src/base/_helpers.scss +8 -13
- package/framework/src/base/_loading.scss +1 -1
- package/framework/src/components/_modal.scss +1 -3
- package/framework/src/components/_pagination.scss +2 -2
- package/framework/src/components/_price.scss +6 -8
- package/framework/src/components/_tabs.scss +2 -3
- package/framework/src/elements/_button.scss +8 -10
- package/framework/src/elements/_entry.scss +3 -3
- package/framework/src/elements/_icon.scss +23 -26
- package/framework/src/elements/_paragraph.scss +4 -6
- package/framework/src/elements/_progress.scss +3 -4
- package/framework/src/elements/_select.scss +2 -3
- package/framework/src/elements/_title.scss +7 -8
- package/framework/src/elements/_toaster.scss +4 -4
- package/framework/src/grid/_columns.scss +2 -3
- package/framework/src/grid/_rows.scss +2 -4
- package/framework/src/theming/buttons_partial.scss +0 -2
- package/framework/src/utilities/_background.scss +0 -2
- package/framework/src/utilities/_functions.scss +8 -12
- package/framework/src/utilities/mixins/_arrow.scss +19 -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 +276 -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/package.json +1 -1
- package/framework/src/utilities/_mixins.scss +0 -642
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
|
-
@use 'sass:list';
|
|
3
2
|
|
|
4
3
|
@function getColor( $name ) {
|
|
5
|
-
@return var(--color-#{
|
|
4
|
+
@return var(--color-#{nth(map-get($colors,$name),2)});
|
|
6
5
|
}
|
|
7
6
|
|
|
8
7
|
@function getColorValue( $name ) {
|
|
9
|
-
@return #{
|
|
8
|
+
@return #{nth(map-get($colors,$name),1)}
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
@function getColorBrandName( $name ) {
|
|
13
|
-
@return #{
|
|
12
|
+
@return #{nth(map-get($colors,$name),2)}
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
:root {
|
|
17
16
|
@each $name, $color in $colors {
|
|
18
|
-
--color-#{
|
|
17
|
+
--color-#{nth($color,2)}: #{nth($color,1)};
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
@function invertColor ($colorName) {
|
|
23
|
-
@return var(--color-#{
|
|
22
|
+
@return var(--color-#{nth(map-get($colors,$colorName),3)})
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
@function fadeColor ($colorName) {
|
|
27
|
-
$name: map
|
|
26
|
+
$name: map-get($fade-colors,$colorName);
|
|
28
27
|
@return getColor($name);
|
|
29
28
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use 'sass:list';
|
|
2
|
-
|
|
3
1
|
.is-sticky-top {
|
|
4
2
|
position: sticky !important;
|
|
5
3
|
top: 0;
|
|
@@ -14,7 +12,11 @@
|
|
|
14
12
|
|
|
15
13
|
// Float
|
|
16
14
|
.is-clearfix {
|
|
17
|
-
|
|
15
|
+
&::after {
|
|
16
|
+
clear: both;
|
|
17
|
+
content: ' ';
|
|
18
|
+
display: table;
|
|
19
|
+
}
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
.is-pulled-left {
|
|
@@ -112,14 +114,7 @@ $alignments: (
|
|
|
112
114
|
// Typography
|
|
113
115
|
@mixin typography-size($target: '') {
|
|
114
116
|
@each $size in $sizes {
|
|
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);
|
|
117
|
+
$i: index($sizes, $size);
|
|
123
118
|
|
|
124
119
|
.is-size-#{$i}#{if($target == '', '', '-' + $target)} {
|
|
125
120
|
font-size: $size !important;
|
|
@@ -206,8 +201,8 @@ $alignments: (
|
|
|
206
201
|
|
|
207
202
|
@mixin typography-colors() {
|
|
208
203
|
@each $name, $color in $colors {
|
|
209
|
-
$brandName:
|
|
210
|
-
$color:
|
|
204
|
+
$brandName: nth($color, 2);
|
|
205
|
+
$color: nth($color, 1);
|
|
211
206
|
$color-invert: invertColor($name);
|
|
212
207
|
|
|
213
208
|
.has-text-#{$brandName} {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
1
|
$modal-content-width: 640px !default;
|
|
4
2
|
$modal-content-margin-mobile: 20px !default;
|
|
5
3
|
$modal-close-dimensions: 40px !default;
|
|
@@ -56,7 +54,7 @@ body:has(.modal.is-active) {
|
|
|
56
54
|
@each $dimension in $dimensions-extended {
|
|
57
55
|
&.is-#{$dimension} {
|
|
58
56
|
.modal-content {
|
|
59
|
-
width: map
|
|
57
|
+
width: map-get($modal-dimensions, $dimension);
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
}
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
.pagination-next,
|
|
11
11
|
.pagination-link,
|
|
12
12
|
.pagination-ellipsis {
|
|
13
|
+
@include control;
|
|
14
|
+
@include unselectable;
|
|
13
15
|
font-size: 1em;
|
|
14
16
|
padding-left: 0.5em;
|
|
15
17
|
padding-right: 0.5em;
|
|
16
18
|
justify-content: center;
|
|
17
19
|
margin: 2.5px;
|
|
18
20
|
text-align: center;
|
|
19
|
-
@include control;
|
|
20
|
-
@include unselectable;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.pagination-previous,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use 'sass:list';
|
|
2
|
-
|
|
3
1
|
$price-levels: (
|
|
4
2
|
[$text-64, $text-44, $text-28, $text-16],
|
|
5
3
|
[$text-56, $text-32, $text-22, $text-16],
|
|
@@ -18,9 +16,9 @@ $price-levels: (
|
|
|
18
16
|
--font-size: #{$text-64};
|
|
19
17
|
|
|
20
18
|
@each $price-level in $price-levels {
|
|
21
|
-
$i:
|
|
22
|
-
$font-size:
|
|
23
|
-
$strike-font-size:
|
|
19
|
+
$i: index($price-levels, $price-level);
|
|
20
|
+
$font-size: nth($price-level, 1);
|
|
21
|
+
$strike-font-size: nth($price-level, 2);
|
|
24
22
|
|
|
25
23
|
&.is-level-#{$i} {
|
|
26
24
|
--font-size: #{$font-size};
|
|
@@ -65,9 +63,9 @@ $price-levels: (
|
|
|
65
63
|
|
|
66
64
|
|
|
67
65
|
@each $price-level in $price-levels {
|
|
68
|
-
$i:
|
|
69
|
-
$font-size:
|
|
70
|
-
$strike-font-size:
|
|
66
|
+
$i: index($price-levels, $price-level);
|
|
67
|
+
$font-size: nth($price-level, 1);
|
|
68
|
+
$strike-font-size: nth($price-level, 2);
|
|
71
69
|
|
|
72
70
|
&.is-level-#{$i} {
|
|
73
71
|
--font-size: #{$font-size};
|
|
@@ -86,12 +86,11 @@
|
|
|
86
86
|
outline: none;
|
|
87
87
|
padding: 6px 14px;
|
|
88
88
|
font-size: $text-14;
|
|
89
|
-
border: 0 solid transparent;
|
|
90
|
-
border-bottom: 2px solid transparent;
|
|
91
|
-
|
|
92
89
|
@include desktop {
|
|
93
90
|
font-size: $text-16;
|
|
94
91
|
}
|
|
92
|
+
border: 0px solid transparent;
|
|
93
|
+
border-bottom: 2px solid transparent;
|
|
95
94
|
|
|
96
95
|
.tab-icon {
|
|
97
96
|
margin-top: 2px;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
@use 'sass:list';
|
|
2
|
-
|
|
3
1
|
$button-border-width: 2px !default;
|
|
4
|
-
$button-colors: () !default;
|
|
5
2
|
|
|
6
3
|
.buttons {
|
|
7
4
|
width: 100%;
|
|
@@ -25,19 +22,20 @@ $button-colors: () !default;
|
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
.button {
|
|
25
|
+
@include control;
|
|
26
|
+
@include unselectable;
|
|
27
|
+
@extend %buttons-states;
|
|
28
|
+
|
|
28
29
|
background-color: white;
|
|
29
30
|
border-width: $button-border-width;
|
|
30
31
|
border-radius: var(--radius-small);
|
|
31
32
|
cursor: pointer;
|
|
32
|
-
justify-content: center
|
|
33
|
+
justify-content: center;
|
|
33
34
|
text-align: center;
|
|
34
35
|
white-space: nowrap;
|
|
35
36
|
padding: 0 $spacing-4;
|
|
36
37
|
text-decoration: inherit;
|
|
37
38
|
font-weight: $weight-semibold;
|
|
38
|
-
@include control;
|
|
39
|
-
@include unselectable;
|
|
40
|
-
@extend %buttons-states;
|
|
41
39
|
|
|
42
40
|
@include mobile {
|
|
43
41
|
width: 100%;
|
|
@@ -45,9 +43,9 @@ $button-colors: () !default;
|
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
@each $name, $pair in $button-colors {
|
|
48
|
-
$variantName:
|
|
49
|
-
$colorBG: getColor(#{
|
|
50
|
-
$colorText: getColor(
|
|
46
|
+
$variantName: nth($pair, 1);
|
|
47
|
+
$colorBG: getColor(#{nth($pair, 2)});
|
|
48
|
+
$colorText: getColor(nth($pair, 3));
|
|
51
49
|
|
|
52
50
|
&.is-#{$variantName} {
|
|
53
51
|
background-color: $colorBG;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.input,
|
|
2
2
|
.textarea {
|
|
3
|
+
@include input;
|
|
4
|
+
|
|
3
5
|
padding-left: $spacing-4;
|
|
4
6
|
padding-right: $spacing-4;
|
|
5
7
|
font-size: $size-medium;
|
|
6
8
|
max-width: 100%;
|
|
7
9
|
width: 100%;
|
|
8
10
|
|
|
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,6 +34,12 @@ $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
|
+
}
|
|
37
43
|
display: flex;
|
|
38
44
|
-webkit-mask-repeat: no-repeat;
|
|
39
45
|
mask-repeat: no-repeat;
|
|
@@ -42,13 +48,6 @@ $size: (
|
|
|
42
48
|
-webkit-mask-size: cover;
|
|
43
49
|
mask-size: cover;
|
|
44
50
|
background-color: currentColor;
|
|
45
|
-
|
|
46
|
-
&::before {
|
|
47
|
-
width: 1em;
|
|
48
|
-
height: 1em;
|
|
49
|
-
content: "\00a0";
|
|
50
|
-
margin: 0;
|
|
51
|
-
}
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
@each $name, $sizeConfig in $size {
|
|
@@ -124,16 +123,6 @@ $size: (
|
|
|
124
123
|
|
|
125
124
|
&.is-animated {
|
|
126
125
|
.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
|
-
|
|
137
126
|
@keyframes bellring {
|
|
138
127
|
0% {
|
|
139
128
|
transform: rotate(-5deg);
|
|
@@ -172,18 +161,18 @@ $size: (
|
|
|
172
161
|
}
|
|
173
162
|
}
|
|
174
163
|
|
|
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;
|
|
175
173
|
}
|
|
176
174
|
|
|
177
175
|
.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
|
-
|
|
187
176
|
@keyframes bellbounce {
|
|
188
177
|
0% {
|
|
189
178
|
transform: translateX(-1px) rotate(-5deg);
|
|
@@ -230,6 +219,14 @@ $size: (
|
|
|
230
219
|
}
|
|
231
220
|
}
|
|
232
221
|
|
|
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;
|
|
233
230
|
}
|
|
234
231
|
}
|
|
235
232
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use 'sass:list';
|
|
2
|
-
|
|
3
1
|
$text-levels: (
|
|
4
2
|
($text-16, $text-20, $text-16),
|
|
5
3
|
($text-14, $text-18, $text-16),
|
|
@@ -16,9 +14,9 @@ $text-levels-mobile: (
|
|
|
16
14
|
|
|
17
15
|
.text {
|
|
18
16
|
@each $text-level in $text-levels {
|
|
19
|
-
$i:
|
|
20
|
-
$font-size:
|
|
21
|
-
$line-height:
|
|
17
|
+
$i: index($text-levels, $text-level);
|
|
18
|
+
$font-size: nth($text-level, 1);
|
|
19
|
+
$line-height: nth($text-level, 2);
|
|
22
20
|
|
|
23
21
|
&.is-level-#{$i} {
|
|
24
22
|
font-size: $font-size;
|
|
@@ -33,7 +31,7 @@ $text-levels-mobile: (
|
|
|
33
31
|
|
|
34
32
|
@include mobile {
|
|
35
33
|
@each $text-level-mobile in $text-levels-mobile {
|
|
36
|
-
$i:
|
|
34
|
+
$i: index($text-levels-mobile, $text-level-mobile);
|
|
37
35
|
}
|
|
38
36
|
}
|
|
39
37
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
|
-
@use 'sass:list';
|
|
3
2
|
|
|
4
3
|
@import "../base/color";
|
|
5
4
|
|
|
@@ -166,9 +165,9 @@ $progress-circle-slices: (
|
|
|
166
165
|
$slides-concat: '';
|
|
167
166
|
|
|
168
167
|
@each $slice in $progress-circle-slices {
|
|
169
|
-
$name:
|
|
170
|
-
$color:
|
|
171
|
-
$i:
|
|
168
|
+
$name: nth($slice, 1);
|
|
169
|
+
$color: nth($slice, 2);
|
|
170
|
+
$i: index($progress-circle-slices, $slice);
|
|
172
171
|
|
|
173
172
|
@if $i > 1 {
|
|
174
173
|
.progress-circle-background-#{$name} {
|
|
@@ -8,11 +8,10 @@ $status-select: (
|
|
|
8
8
|
|
|
9
9
|
select {
|
|
10
10
|
width: 100%;
|
|
11
|
+
@include input;
|
|
11
12
|
padding-right: 40px;
|
|
12
13
|
text-overflow: ellipsis;
|
|
13
14
|
|
|
14
|
-
@include input;
|
|
15
|
-
|
|
16
15
|
&:focus {
|
|
17
16
|
padding-left: 15px !important;
|
|
18
17
|
}
|
|
@@ -21,7 +20,7 @@ $status-select: (
|
|
|
21
20
|
$color: getColor($name);
|
|
22
21
|
$color-invert: invertColor($name);
|
|
23
22
|
$brandName: getColorBrandName($name);
|
|
24
|
-
|
|
23
|
+
|
|
25
24
|
&.is-#{$brandName} {
|
|
26
25
|
border: 1px solid $color;
|
|
27
26
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
-
@use 'sass:list';
|
|
3
2
|
|
|
4
3
|
$title-weight: $weight-semibold;
|
|
5
4
|
$title-high-weight: 550;
|
|
@@ -59,10 +58,10 @@ $title-levels-mobile: (
|
|
|
59
58
|
|
|
60
59
|
// new typography
|
|
61
60
|
@each $title-level in $title-levels {
|
|
62
|
-
$i:
|
|
63
|
-
$font-size:
|
|
64
|
-
$line-height:
|
|
65
|
-
$font-family:
|
|
61
|
+
$i: index($title-levels, $title-level);
|
|
62
|
+
$font-size: nth($title-level, 1);
|
|
63
|
+
$line-height: nth($title-level, 2);
|
|
64
|
+
$font-family: nth($title-level, 3);
|
|
66
65
|
|
|
67
66
|
// Avoid Safari font weight issues
|
|
68
67
|
&.is-level-1 {
|
|
@@ -118,9 +117,9 @@ $title-levels-mobile: (
|
|
|
118
117
|
|
|
119
118
|
@include mobile {
|
|
120
119
|
@each $title-level-mobile in $title-levels-mobile {
|
|
121
|
-
$i:
|
|
122
|
-
$font-size-mobile:
|
|
123
|
-
$line-height-mobile:
|
|
120
|
+
$i: index($title-levels-mobile, $title-level-mobile);
|
|
121
|
+
$font-size-mobile: nth($title-level-mobile, 1);
|
|
122
|
+
$line-height-mobile: nth($title-level-mobile, 2);
|
|
124
123
|
&.is-level-#{$i} {
|
|
125
124
|
font-size: $font-size-mobile;
|
|
126
125
|
line-height: $line-height-mobile;
|
|
@@ -10,16 +10,12 @@ a.toaster {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.toaster {
|
|
13
|
-
@include apply-shadow-box();
|
|
14
13
|
background-color: getColor('info-fade');
|
|
15
14
|
border-radius: var(--radius);
|
|
16
15
|
margin-bottom: 16px;
|
|
17
16
|
position: relative;
|
|
18
17
|
margin-left: 24px;
|
|
19
18
|
margin-right: 24px;
|
|
20
|
-
box-shadow: none;
|
|
21
|
-
padding: $spacing-4;
|
|
22
|
-
display: flex;
|
|
23
19
|
|
|
24
20
|
.toaster-close {
|
|
25
21
|
padding-right: 0 !important ;
|
|
@@ -94,6 +90,7 @@ a.toaster {
|
|
|
94
90
|
}
|
|
95
91
|
}
|
|
96
92
|
|
|
93
|
+
display: flex;
|
|
97
94
|
|
|
98
95
|
> .icon {
|
|
99
96
|
flex: none;
|
|
@@ -114,6 +111,9 @@ a.toaster {
|
|
|
114
111
|
}
|
|
115
112
|
}
|
|
116
113
|
|
|
114
|
+
box-shadow: none;
|
|
115
|
+
padding: $spacing-4;
|
|
116
|
+
|
|
117
117
|
.title,
|
|
118
118
|
.text,
|
|
119
119
|
.paragraph {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
-
@use 'sass:list';
|
|
3
2
|
|
|
4
3
|
$columnWidth: calc((100% / (var(--ColumnFraction))) - ((((var(--ColumnFraction)) - 1) / (var(--ColumnFraction))) * var(--ColumnGap)));
|
|
5
4
|
$offsetWidth: calc((100% / (var(--offset))) - ((((var(--offset)) - 1) / (var(--offset))) * var(--ColumnGap)) + var(--ColumnGap));
|
|
@@ -57,8 +56,8 @@ $gap: 4px,
|
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
58
|
|
|
60
|
-
@for $i from 1 through
|
|
61
|
-
$item:
|
|
59
|
+
@for $i from 1 through length($gap) {
|
|
60
|
+
$item: nth($gap, $i);
|
|
62
61
|
&.is-mobile.has-gap-#{$i} {
|
|
63
62
|
gap: $item;
|
|
64
63
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use 'sass:list';
|
|
2
|
-
|
|
3
1
|
$gap: 4px,
|
|
4
2
|
8px,
|
|
5
3
|
12px,
|
|
@@ -24,8 +22,8 @@ $gap: 4px,
|
|
|
24
22
|
gap: 16px;
|
|
25
23
|
}
|
|
26
24
|
|
|
27
|
-
@for $i from 1 through
|
|
28
|
-
$item:
|
|
25
|
+
@for $i from 1 through length($gap) {
|
|
26
|
+
$item: nth($gap, $i);
|
|
29
27
|
&.has-gap-#{$i} {
|
|
30
28
|
gap: $item;
|
|
31
29
|
}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use 'sass:string';
|
|
4
|
-
@use 'sass:meta';
|
|
5
|
-
|
|
6
2
|
@import "./derived-variables";
|
|
7
3
|
|
|
8
4
|
@function encodecolor($string) {
|
|
9
|
-
@if
|
|
10
|
-
@return '%23' +
|
|
5
|
+
@if type-of($string) == 'string' and str-index($string, '#') == 1 {
|
|
6
|
+
@return '%23' + str-slice( $string, 2);
|
|
11
7
|
}
|
|
12
8
|
|
|
13
|
-
@if
|
|
14
|
-
$hex:
|
|
9
|
+
@if type-of($string) == 'color' and str-index(#{$string}, '#') == 1 {
|
|
10
|
+
$hex: str-slice(ie-hex-str($string), 4);
|
|
15
11
|
$string: unquote('#{$hex}');
|
|
16
12
|
@return '%23' + $string;
|
|
17
13
|
}
|
|
@@ -56,14 +52,14 @@
|
|
|
56
52
|
$color-rgb: map-merge($color-rgb, ($name: $value));
|
|
57
53
|
}
|
|
58
54
|
|
|
59
|
-
@return map
|
|
55
|
+
@return map-get($color-rgb, "red") * 0.2126 + map-get($color-rgb, "green") * 0.7152 + map-get($color-rgb, "blue") * 0.0722;
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
/// Remove the unit of a length
|
|
63
59
|
/// @param {Number} $number - Number to remove unit from
|
|
64
60
|
/// @return {Number} - Unitless number
|
|
65
61
|
@function strip-unit($number) {
|
|
66
|
-
@if
|
|
62
|
+
@if type-of($number) == 'number' and not unitless($number) {
|
|
67
63
|
@return math.div($number, $number * 0 + 1);
|
|
68
64
|
}
|
|
69
65
|
|
|
@@ -71,7 +67,7 @@
|
|
|
71
67
|
}
|
|
72
68
|
|
|
73
69
|
@function num($input) {
|
|
74
|
-
@if
|
|
70
|
+
@if type-of($input) != number {
|
|
75
71
|
@return null;
|
|
76
72
|
}
|
|
77
73
|
|
|
@@ -94,5 +90,5 @@
|
|
|
94
90
|
}
|
|
95
91
|
|
|
96
92
|
@function zindex($key) {
|
|
97
|
-
@return map
|
|
93
|
+
@return map-get($zindex, $key);
|
|
98
94
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@mixin arrow( $direction: 'down') {
|
|
2
|
+
background-color: currentColor;
|
|
3
|
+
content: "";
|
|
4
|
+
mask-image: url('./assets/icons/all/arrow-down.svg');
|
|
5
|
+
|
|
6
|
+
@if $direction == 'up' {
|
|
7
|
+
rotate: 180deg;
|
|
8
|
+
} @else if $direction == 'left' {
|
|
9
|
+
rotate: 90deg;
|
|
10
|
+
} @else if $direction == 'right' {
|
|
11
|
+
rotate: 270deg;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
min-width: 15px;
|
|
15
|
+
min-height: 15px;
|
|
16
|
+
mask-size: 15px;
|
|
17
|
+
position: absolute;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
}
|
|
@@ -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
|
+
}
|