@trilogy-ds/styles 0.0.9-beta-v4 → 0.0.9-esm-cjs
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 +119 -125
- package/framework/src/{elements → components}/_box.scss +9 -11
- package/framework/src/components/_breadcrumb.scss +17 -31
- package/framework/src/{elements → components}/_button.scss +12 -4
- 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 +240 -0
- package/framework/src/{elements/_all.scss → components/_index.scss} +27 -12
- 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 +4 -0
- package/framework/src/components/_price.scss +28 -2
- package/framework/src/{elements → components}/_radio.scss +2 -2
- package/framework/src/components/_segmented-control.scss +9 -5
- package/framework/src/{elements → components}/_select.scss +47 -21
- package/framework/src/components/_stepper.scss +1 -1
- package/framework/src/{elements → components}/_sticker.scss +13 -1
- package/framework/src/{elements → components}/_switch.scss +7 -7
- package/framework/src/{elements → components}/_table.scss +9 -10
- package/framework/src/components/_tabs.scss +66 -28
- 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 +10 -11
- package/framework/src/components/input/_index.scss +4 -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 +5 -9
- package/framework/src/layout/_hero.scss +4 -0
- package/framework/src/layout/_section.scss +5 -0
- 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} +43 -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/_autocomplete.scss +0 -32
- package/framework/src/elements/_list.scss +0 -62
- package/framework/src/elements/_textarea.scss +0 -133
- package/framework/src/utilities/_mixins.scss +0 -641
- /package/framework/src/{elements → components}/_badge.scss +0 -0
- /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}/_tag.scss +0 -0
- /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
- /package/framework/src/{elements → components/input}/_input-gauge.scss +0 -0
- /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
.segmented-control {
|
|
2
2
|
border-radius: 6px;
|
|
3
3
|
padding: $spacing-1;
|
|
4
|
-
background-color: getColor('
|
|
4
|
+
background-color: getColor('background');
|
|
5
5
|
display: flex;
|
|
6
6
|
margin-left: auto;
|
|
7
7
|
margin-right: auto;
|
|
8
8
|
width: fit-content;
|
|
9
|
+
border: 1px solid getColor('neutral');
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
&.justified-start {
|
|
11
13
|
margin-left: 0;
|
|
@@ -24,21 +26,19 @@
|
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
.segmented-control-item {
|
|
27
|
-
padding:
|
|
29
|
+
padding: $spacing-3 $spacing-4;
|
|
28
30
|
border-radius: var(--radius-small);
|
|
29
31
|
font-size: 16px;
|
|
30
32
|
text-align: center;
|
|
31
33
|
border: 2px solid transparent;
|
|
32
|
-
height: 42px;
|
|
33
34
|
color: getColor('font');
|
|
34
|
-
background-color: getColor('
|
|
35
|
+
background-color: getColor('background');
|
|
35
36
|
|
|
36
37
|
&:not(:last-child) {
|
|
37
38
|
margin-right: 4px;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
@include mobile {
|
|
41
|
-
padding: 0 $spacing-4;
|
|
42
42
|
flex: 1 1 0;
|
|
43
43
|
width: 0;
|
|
44
44
|
text-overflow: ellipsis;
|
|
@@ -54,5 +54,9 @@
|
|
|
54
54
|
background-color: getColor('main');
|
|
55
55
|
color: invertColor('main');
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
&:disabled{
|
|
59
|
+
border-color: transparent !important;
|
|
60
|
+
}
|
|
57
61
|
}
|
|
58
62
|
}
|
|
@@ -1,17 +1,35 @@
|
|
|
1
|
+
$status-select: (
|
|
2
|
+
'success', 'error'
|
|
3
|
+
);
|
|
4
|
+
|
|
1
5
|
.select {
|
|
2
6
|
position: relative;
|
|
3
|
-
|
|
4
|
-
input {
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
}
|
|
7
|
+
input { cursor: pointer }
|
|
7
8
|
|
|
8
9
|
select {
|
|
9
10
|
width: 100%;
|
|
10
11
|
@include input;
|
|
12
|
+
padding-right: 40px;
|
|
13
|
+
text-overflow: ellipsis;
|
|
11
14
|
|
|
12
15
|
&:focus {
|
|
13
16
|
padding-left: 15px !important;
|
|
14
17
|
}
|
|
18
|
+
|
|
19
|
+
// to prevent user agent style
|
|
20
|
+
&:disabled {
|
|
21
|
+
opacity: 1 !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@each $name in $status-select {
|
|
25
|
+
$color: getColor($name);
|
|
26
|
+
$color-invert: invertColor($name);
|
|
27
|
+
$brandName: getColorBrandName($name);
|
|
28
|
+
|
|
29
|
+
&.is-#{$brandName} {
|
|
30
|
+
border: 1px solid $color;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
15
33
|
}
|
|
16
34
|
|
|
17
35
|
.has-icons-left {
|
|
@@ -29,32 +47,35 @@
|
|
|
29
47
|
border-radius: 4px;
|
|
30
48
|
overflow: hidden;
|
|
31
49
|
position: absolute;
|
|
32
|
-
top: 64px;
|
|
33
50
|
z-index: 1001;
|
|
34
51
|
left: 0;
|
|
35
52
|
right: 0;
|
|
53
|
+
margin-top: 8px;
|
|
36
54
|
}
|
|
37
55
|
|
|
56
|
+
|
|
38
57
|
.field {
|
|
39
58
|
margin-bottom: 0 !important;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
59
|
+
.control {
|
|
60
|
+
position: relative;
|
|
61
|
+
&:after {
|
|
62
|
+
@include arrow();
|
|
63
|
+
right: 12px;
|
|
64
|
+
top: 50%;
|
|
65
|
+
transform: translate(-50%, -50%);
|
|
66
|
+
transition: transform 0.3s;
|
|
67
|
+
min-width: 20px;
|
|
68
|
+
min-height: 20px;
|
|
69
|
+
mask-size: 20px;
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
}
|
|
47
72
|
}
|
|
48
|
-
}
|
|
49
73
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
top: 50%;
|
|
55
|
-
transform: translate(-50%, -50%);
|
|
74
|
+
&.focus .control {
|
|
75
|
+
&:after {
|
|
76
|
+
transform: rotate(180deg) translate(50%, 50%);
|
|
77
|
+
}
|
|
56
78
|
}
|
|
57
|
-
}
|
|
58
79
|
}
|
|
59
80
|
|
|
60
81
|
|
|
@@ -75,7 +96,6 @@
|
|
|
75
96
|
cursor: pointer;
|
|
76
97
|
display: flex;
|
|
77
98
|
gap: $spacing-2;
|
|
78
|
-
|
|
79
99
|
@include hover;
|
|
80
100
|
|
|
81
101
|
&.is-disabled {
|
|
@@ -100,6 +120,12 @@
|
|
|
100
120
|
}
|
|
101
121
|
}
|
|
102
122
|
}
|
|
123
|
+
|
|
124
|
+
&-options-top {
|
|
125
|
+
top: auto;
|
|
126
|
+
bottom: 100%;
|
|
127
|
+
overflow-y: scroll;
|
|
128
|
+
}
|
|
103
129
|
}
|
|
104
130
|
|
|
105
131
|
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
|
|
205
205
|
@keyframes progress {
|
|
206
206
|
0%, 100% {
|
|
207
|
-
background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral
|
|
207
|
+
background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
|
|
208
208
|
}
|
|
209
209
|
0% {
|
|
210
210
|
background-position: 100% 0;
|
|
@@ -9,8 +9,20 @@ $sticker-height: 35px;
|
|
|
9
9
|
color: getColor('background') !important;
|
|
10
10
|
line-height: 20px;
|
|
11
11
|
flex-shrink: 0;
|
|
12
|
-
background-color: getColor('
|
|
12
|
+
background-color: getColor('main');
|
|
13
13
|
font-weight: 600;
|
|
14
|
+
max-height: 36px;
|
|
15
|
+
|
|
16
|
+
.icon {
|
|
17
|
+
width: 1em;
|
|
18
|
+
margin-right: 5px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.is-small {
|
|
22
|
+
.icon {
|
|
23
|
+
margin-right: 3px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
14
26
|
|
|
15
27
|
&:not(.is-hat) {
|
|
16
28
|
width: fit-content;
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
|
|
27
27
|
&:disabled ~ label {
|
|
28
28
|
&:after {
|
|
29
|
-
$colorSvg: encodecolor(
|
|
29
|
+
$colorSvg: encodecolor(getColor('disabled'));
|
|
30
30
|
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&:disabled:checked ~ label {
|
|
35
35
|
&:after {
|
|
36
|
-
$colorSvg: encodecolor(
|
|
36
|
+
$colorSvg: encodecolor(getColor('disabled'));
|
|
37
37
|
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&:after {
|
|
63
|
-
$colorSvg: encodecolor(
|
|
63
|
+
$colorSvg: encodecolor(getColor('neutral'));
|
|
64
64
|
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
65
65
|
position: absolute;
|
|
66
66
|
top: 50%;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
border-radius: 9999px;
|
|
70
70
|
width: 18px;
|
|
71
71
|
height: 18px;
|
|
72
|
-
background-color:
|
|
72
|
+
background-color: getColor('background');
|
|
73
73
|
transition: 0.3s;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
font-weight: bold;
|
|
80
80
|
|
|
81
81
|
&:before {
|
|
82
|
-
background-color:
|
|
82
|
+
background-color: getColor('main');
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
&:after {
|
|
86
86
|
right: 2px;
|
|
87
|
-
$colorSvg: encodecolor(
|
|
87
|
+
$colorSvg: encodecolor(getColor('main'));
|
|
88
88
|
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
89
|
-
background-color:
|
|
89
|
+
background-color: getColor('background');
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
td,
|
|
28
28
|
th {
|
|
29
|
-
border:
|
|
29
|
+
border: var(--border);
|
|
30
30
|
border-width: 0;
|
|
31
31
|
padding: 20px;
|
|
32
32
|
vertical-align: top;
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
td {
|
|
74
|
-
border-bottom:
|
|
74
|
+
border-bottom: var(--border);
|
|
75
75
|
|
|
76
76
|
> p {
|
|
77
77
|
margin: 0;
|
|
@@ -89,7 +89,6 @@
|
|
|
89
89
|
|
|
90
90
|
td,
|
|
91
91
|
th {
|
|
92
|
-
border-color: currentColor;
|
|
93
92
|
color: currentColor;
|
|
94
93
|
}
|
|
95
94
|
}
|
|
@@ -154,15 +153,15 @@
|
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
&.has-border-all {
|
|
157
|
-
border:
|
|
156
|
+
border: var(--border);
|
|
158
157
|
|
|
159
158
|
th {
|
|
160
|
-
border-right:
|
|
159
|
+
border-right: var(--border);
|
|
161
160
|
}
|
|
162
161
|
|
|
163
162
|
td {
|
|
164
163
|
&:not(:last-child) {
|
|
165
|
-
border-right:
|
|
164
|
+
border-right: var(--border);
|
|
166
165
|
}
|
|
167
166
|
}
|
|
168
167
|
}
|
|
@@ -170,13 +169,13 @@
|
|
|
170
169
|
&.has-border-inner {
|
|
171
170
|
th {
|
|
172
171
|
&:not(:last-child) {
|
|
173
|
-
border-right:
|
|
172
|
+
border-right: var(--border);
|
|
174
173
|
}
|
|
175
174
|
}
|
|
176
175
|
|
|
177
176
|
td {
|
|
178
177
|
&:not(:last-child) {
|
|
179
|
-
border-right:
|
|
178
|
+
border-right: var(--border);
|
|
180
179
|
}
|
|
181
180
|
}
|
|
182
181
|
}
|
|
@@ -205,7 +204,7 @@
|
|
|
205
204
|
.subtable {
|
|
206
205
|
background-color: getColor('neutral-fade');
|
|
207
206
|
border-radius: var(--radius);
|
|
208
|
-
padding:
|
|
207
|
+
padding: 25px;
|
|
209
208
|
|
|
210
209
|
@include mobile() {
|
|
211
210
|
padding: 15px;
|
|
@@ -216,7 +215,7 @@
|
|
|
216
215
|
|
|
217
216
|
tr:not(:first-child) {
|
|
218
217
|
td {
|
|
219
|
-
border-top:
|
|
218
|
+
border-top: var(--border);
|
|
220
219
|
}
|
|
221
220
|
}
|
|
222
221
|
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
$height-tab-default: 64px;
|
|
2
|
+
$height-arrow-default:48px;
|
|
3
|
+
$height-arrow-small:30px;
|
|
4
|
+
|
|
1
5
|
.tabs {
|
|
2
6
|
@include overflow-touch;
|
|
3
7
|
@include unselectable;
|
|
@@ -7,18 +11,33 @@
|
|
|
7
11
|
font-weight: $weight-normal;
|
|
8
12
|
width: 100%;
|
|
9
13
|
text-align: center;
|
|
10
|
-
overflow:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
position: relative;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
.arrow-prev, .arrow-next {
|
|
19
|
+
z-index: 1;
|
|
20
|
+
height: 44px;
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0px;
|
|
23
|
+
transition: opacity 0.3s ease;
|
|
24
|
+
opacity: 1;
|
|
25
|
+
background-color: getColor('background');
|
|
26
|
+
}
|
|
14
27
|
|
|
15
|
-
|
|
16
|
-
|
|
28
|
+
.arrow-prev {
|
|
29
|
+
left: 0px;
|
|
17
30
|
}
|
|
18
31
|
|
|
32
|
+
.arrow-next {
|
|
33
|
+
right: 0px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
19
37
|
&::-webkit-scrollbar {
|
|
20
38
|
width: 0 !important;
|
|
21
39
|
height: 0 !important;
|
|
40
|
+
scrollbar-width: none !important;
|
|
22
41
|
}
|
|
23
42
|
|
|
24
43
|
&.is-inverted {
|
|
@@ -41,6 +60,11 @@
|
|
|
41
60
|
}
|
|
42
61
|
|
|
43
62
|
}
|
|
63
|
+
|
|
64
|
+
.arrow-prev, .arrow-next {
|
|
65
|
+
background-color: getColor('font');
|
|
66
|
+
}
|
|
67
|
+
|
|
44
68
|
}
|
|
45
69
|
|
|
46
70
|
&:has(.tab-list.is-aligned-start) {
|
|
@@ -56,7 +80,14 @@
|
|
|
56
80
|
height: 48px;
|
|
57
81
|
overflow-x: auto;
|
|
58
82
|
white-space: nowrap;
|
|
59
|
-
|
|
83
|
+
overflow-y: hidden;
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
|
|
86
|
+
&::-webkit-scrollbar {
|
|
87
|
+
width: 0 !important;
|
|
88
|
+
height: 0 !important;
|
|
89
|
+
scrollbar-width: none !important;
|
|
90
|
+
}
|
|
60
91
|
|
|
61
92
|
&.is-fullwidth {
|
|
62
93
|
@include desktop {
|
|
@@ -73,54 +104,46 @@
|
|
|
73
104
|
|
|
74
105
|
@include mobile {
|
|
75
106
|
justify-content: flex-start;
|
|
76
|
-
> .tab:first-child {
|
|
77
|
-
margin-left: 24px;
|
|
78
|
-
}
|
|
79
107
|
}
|
|
80
108
|
|
|
81
109
|
&:has(.tab .icon) {
|
|
82
110
|
height: 64px;
|
|
111
|
+
.arrow-prev, .arrow-next {
|
|
112
|
+
height: 60px;
|
|
113
|
+
}
|
|
83
114
|
}
|
|
84
115
|
|
|
85
116
|
> .tab {
|
|
117
|
+
display: inline-block;
|
|
118
|
+
line-height: normal;
|
|
119
|
+
font-family: $family-primary;
|
|
86
120
|
height: calc(100% - 4px);
|
|
87
121
|
background-color: transparent;
|
|
88
122
|
color: getColor('font');
|
|
89
123
|
text-decoration: none;
|
|
90
124
|
outline: none;
|
|
91
|
-
padding:
|
|
92
|
-
font-size: $text-
|
|
93
|
-
@include desktop {
|
|
94
|
-
font-size: $text-16;
|
|
95
|
-
}
|
|
125
|
+
padding: 12px 24px;
|
|
126
|
+
font-size: $text-16;
|
|
96
127
|
border: 0px solid transparent;
|
|
97
|
-
border-bottom:
|
|
128
|
+
border-bottom: 1px solid getColor('neutral');
|
|
98
129
|
|
|
99
130
|
.tab-icon {
|
|
100
131
|
margin-top: 2px;
|
|
101
132
|
}
|
|
102
133
|
|
|
103
|
-
&:not(button) {
|
|
104
|
-
.tab-icon {
|
|
105
|
-
margin-top: 4px;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@include mobile {
|
|
110
|
-
font-size: $text-14;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
134
|
&.is-active {
|
|
114
135
|
color: getColor('main');
|
|
115
136
|
position: relative;
|
|
116
137
|
border-bottom-color: getColor('main');
|
|
117
|
-
font-weight: $weight-
|
|
138
|
+
font-weight: $weight-bold;
|
|
139
|
+
border-bottom-width: 2px;
|
|
118
140
|
}
|
|
119
141
|
|
|
120
|
-
&:hover:not(
|
|
142
|
+
&:hover:not([disabled]) {
|
|
121
143
|
color: getColor('main');
|
|
122
144
|
border-bottom-color: currentColor;
|
|
123
145
|
cursor: pointer;
|
|
146
|
+
border-bottom-width: 2px;
|
|
124
147
|
|
|
125
148
|
.icon.is-small [class^=tri-]::before, .icon.is-small [class*=" tri-"]::before {
|
|
126
149
|
font-size: 22px !important;
|
|
@@ -143,11 +166,26 @@
|
|
|
143
166
|
|
|
144
167
|
&[disabled], &[aria-disabled=true] {
|
|
145
168
|
background-color: transparent !important;
|
|
169
|
+
border-bottom-color: getColor('neutral') !important;
|
|
170
|
+
&.is-active{
|
|
171
|
+
border-bottom-color: currentColor !important;
|
|
172
|
+
}
|
|
146
173
|
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
147
177
|
|
|
178
|
+
&.is-small{
|
|
179
|
+
|
|
180
|
+
.tab-list {
|
|
181
|
+
& > .tab {
|
|
182
|
+
font-size: $text-14 ;
|
|
183
|
+
padding: 12px 16px;
|
|
184
|
+
}
|
|
148
185
|
}
|
|
149
186
|
}
|
|
150
187
|
|
|
188
|
+
|
|
151
189
|
.tab-panels {
|
|
152
190
|
padding-top: $spacing-3;
|
|
153
191
|
padding-bottom: $spacing-3;
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
($text-16, $text-20, $text-16),
|
|
3
|
-
($text-14, $text-18, $text-16),
|
|
4
|
-
($text-12, $text-15, $text-16),
|
|
5
|
-
($text-10, $text-12, $text-16)
|
|
6
|
-
);
|
|
7
|
-
$text-levels-mobile: (
|
|
8
|
-
($text-16, $text-20, $text-8),
|
|
9
|
-
($text-14, $text-18, $text-8),
|
|
10
|
-
($text-12, $text-15, $text-8),
|
|
11
|
-
($text-10, $text-12, $text-8)
|
|
12
|
-
);
|
|
13
|
-
|
|
1
|
+
@import "../utilities/variables/_font.scss";
|
|
14
2
|
|
|
15
3
|
.text {
|
|
16
4
|
@each $text-level in $text-levels {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.textarea-wrapper {
|
|
2
|
+
|
|
3
|
+
.textarea-label {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
margin-bottom: 6px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.textarea-sample {
|
|
9
|
+
margin-bottom: 10px !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
textarea.textarea {
|
|
13
|
+
&::placeholder, label {
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.icon {
|
|
19
|
+
align-items: flex-start !important;
|
|
20
|
+
padding-top: 18px !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Colors
|
|
24
|
+
@each $name, $pair in $colors-brand-functionnal {
|
|
25
|
+
$color: getColor($name);
|
|
26
|
+
$color-invert: invertColor($name);
|
|
27
|
+
$brandName: getColorBrandName($name);
|
|
28
|
+
&.is-#{$brandName} {
|
|
29
|
+
textarea.textarea {
|
|
30
|
+
border-color: $color;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.counter {
|
|
37
|
+
position: absolute;
|
|
38
|
+
bottom: $spacing-2;
|
|
39
|
+
right: $spacing-4;
|
|
40
|
+
font-size: 10px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.help ~ .counter {
|
|
44
|
+
bottom: $spacing-6;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -140,7 +140,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
140
140
|
.heading {
|
|
141
141
|
font-size: $text-12;
|
|
142
142
|
color: getColor('font');
|
|
143
|
-
font-family: $family-
|
|
143
|
+
font-family: $family-primary;
|
|
144
144
|
text-transform: none;
|
|
145
145
|
letter-spacing: 0;
|
|
146
146
|
line-height: 15px;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
|
|
3
3
|
$title-weight: $weight-semibold;
|
|
4
|
+
$title-high-weight: 550;
|
|
4
5
|
$title-line-height: 1.1;
|
|
5
6
|
$title-strong-color: inherit;
|
|
6
7
|
$title-strong-weight: inherit;
|
|
@@ -62,6 +63,15 @@ $title-levels-mobile: (
|
|
|
62
63
|
$line-height: nth($title-level, 2);
|
|
63
64
|
$font-family: nth($title-level, 3);
|
|
64
65
|
|
|
66
|
+
// Avoid Safari font weight issues
|
|
67
|
+
&.is-level-1 {
|
|
68
|
+
font-weight: $title-high-weight;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.is-level-2 {
|
|
72
|
+
font-weight: $title-high-weight;
|
|
73
|
+
}
|
|
74
|
+
|
|
65
75
|
&.is-level-#{$i} {
|
|
66
76
|
font-size: $font-size;
|
|
67
77
|
line-height: $line-height;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
.input, .textarea {
|
|
2
|
+
&:not(:disabled) {
|
|
3
|
+
&:active,
|
|
4
|
+
&:focus,
|
|
5
|
+
&:focus-visible:not(.icon) {
|
|
6
|
+
padding-left: 15px ;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
1
11
|
.input,
|
|
2
12
|
.textarea {
|
|
3
13
|
@include input;
|
|
@@ -19,12 +29,6 @@
|
|
|
19
29
|
}
|
|
20
30
|
}
|
|
21
31
|
|
|
22
|
-
&:active,
|
|
23
|
-
&:focus,
|
|
24
|
-
&:focus-visible:not(.icon) {
|
|
25
|
-
padding-left: 15px !important;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
32
|
// Sizes
|
|
29
33
|
&.is-small {
|
|
30
34
|
@include control-small;
|
|
@@ -43,10 +47,6 @@
|
|
|
43
47
|
display: inline;
|
|
44
48
|
}
|
|
45
49
|
|
|
46
|
-
.icon-status {
|
|
47
|
-
color: aqua !important;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
50
|
& label {
|
|
51
51
|
margin-top: 10px;
|
|
52
52
|
}
|
|
@@ -72,6 +72,39 @@
|
|
|
72
72
|
padding-left: 0;
|
|
73
73
|
padding-right: 0;
|
|
74
74
|
}
|
|
75
|
+
|
|
76
|
+
&::-webkit-search-cancel-button{
|
|
77
|
+
$colorSvg: encodecolor(getColorValue('main'));
|
|
78
|
+
position:absolute;
|
|
79
|
+
right: 0px;
|
|
80
|
+
bottom : 0px;
|
|
81
|
+
top:0px;
|
|
82
|
+
padding: 0 24px;
|
|
83
|
+
opacity: 1;
|
|
84
|
+
display: block;
|
|
85
|
+
background-image: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
86
|
+
background-size : 20px;
|
|
87
|
+
-webkit-appearance: none;
|
|
88
|
+
background-repeat: no-repeat;
|
|
89
|
+
background-color: getColor('background') ;
|
|
90
|
+
background-position: center;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&[type="search"] {
|
|
94
|
+
padding-right: 45px;
|
|
95
|
+
&:hover:not(:focus){
|
|
96
|
+
&::-webkit-search-cancel-button {
|
|
97
|
+
background-color: getColor('main-fade');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
&:focus{
|
|
101
|
+
&::-webkit-search-cancel-button {
|
|
102
|
+
padding: 0 23px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
75
108
|
}
|
|
76
109
|
|
|
77
110
|
.textarea {
|
|
@@ -94,4 +127,9 @@
|
|
|
94
127
|
&.has-fixed-size {
|
|
95
128
|
resize: none;
|
|
96
129
|
}
|
|
130
|
+
|
|
131
|
+
&:focus-visible{
|
|
132
|
+
padding-top: 14px;
|
|
133
|
+
padding-bottom: 4px;
|
|
134
|
+
}
|
|
97
135
|
}
|