@trilogy-ds/styles 4.15.1 → 4.15.2
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.
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
.stepper-wrapper {
|
|
4
|
+
display: flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
min-height: 44px;
|
|
8
|
+
gap: $spacing-4;
|
|
9
|
+
|
|
10
|
+
@include touch {
|
|
11
|
+
gap: $spacing-2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.stepper-item {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
width: 100%;
|
|
18
|
+
|
|
19
|
+
&:before {
|
|
20
|
+
content: "";
|
|
21
|
+
display: block;
|
|
22
|
+
height: 4px;
|
|
23
|
+
border-radius: var(--radius-small);
|
|
24
|
+
background-size: 200% !important;
|
|
25
|
+
background-color: getColor('neutral');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.is-error {
|
|
29
|
+
|
|
30
|
+
&:before {
|
|
31
|
+
background-color: getColor('error') !important;
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.is-current {
|
|
36
|
+
&:before {
|
|
37
|
+
animation: progress 1s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.step-bars {
|
|
43
|
+
background: getColor('error') !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
color: getColor('font');
|
|
47
|
+
|
|
48
|
+
.step-label {
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
content: "";
|
|
52
|
+
mask-image: url('./assets/icons/all/times.svg') !important;
|
|
53
|
+
background-color: getColor('error') !important;
|
|
54
|
+
border-width: 0;
|
|
55
|
+
mask-size: 20px;
|
|
56
|
+
width: 20px;
|
|
57
|
+
height: 20px;
|
|
58
|
+
align-self: baseline;
|
|
59
|
+
margin-top: 2px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.icon {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.is-done {
|
|
69
|
+
|
|
70
|
+
&:before {
|
|
71
|
+
background-color: getColor('font');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.step-bars {
|
|
75
|
+
background: getColor('font');
|
|
76
|
+
transition: background-color 1s ease-in-out;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.step-label {
|
|
80
|
+
&::before {
|
|
81
|
+
content: "";
|
|
82
|
+
mask-image: url('./assets/icons/all/check-circle.svg');
|
|
83
|
+
background-color: getColor('success');
|
|
84
|
+
border-width: 0;
|
|
85
|
+
min-width: 20px;
|
|
86
|
+
mask-size: 20px;
|
|
87
|
+
height: 20px;
|
|
88
|
+
align-self: baseline;
|
|
89
|
+
margin-top: 2px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.is-current,
|
|
95
|
+
&.is-active {
|
|
96
|
+
|
|
97
|
+
&:before {
|
|
98
|
+
background-color: getColor('main');
|
|
99
|
+
animation: progress 1s;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.step-bars {
|
|
103
|
+
background: getColor('main');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.step-label {
|
|
107
|
+
font-style: normal;
|
|
108
|
+
font-weight: 600;
|
|
109
|
+
font-size: 20px;
|
|
110
|
+
line-height: 22px;
|
|
111
|
+
width: max-content;
|
|
112
|
+
|
|
113
|
+
.icon [class^=tri-], .icon [class*=" tri-"] {
|
|
114
|
+
height: 22px;
|
|
115
|
+
width: 22px;
|
|
116
|
+
margin: 0 4px 0 -4px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@include tablet-only {
|
|
120
|
+
width: 90% !important;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@include mobile {
|
|
124
|
+
font-size: 18px;
|
|
125
|
+
width: 90%;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.step-bars {
|
|
132
|
+
height: 4px;
|
|
133
|
+
background: getColor('disabled');
|
|
134
|
+
border-radius: var(--radius-small);
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.step-label {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
color: getColor('font');
|
|
142
|
+
font-style: normal;
|
|
143
|
+
font-weight: 400;
|
|
144
|
+
font-size: 16px;
|
|
145
|
+
line-height: 24px;
|
|
146
|
+
padding-top: $spacing-2;
|
|
147
|
+
gap: $spacing-1;
|
|
148
|
+
|
|
149
|
+
.icon {
|
|
150
|
+
font-size: 20px;
|
|
151
|
+
height: auto;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@include touch {
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: 10px;
|
|
157
|
+
left: 0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@include desktop {
|
|
162
|
+
.step-count {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@include mobile {
|
|
168
|
+
.step-count {
|
|
169
|
+
position: absolute;
|
|
170
|
+
top: 23px;
|
|
171
|
+
right: 8px;
|
|
172
|
+
font-size: 14px;
|
|
173
|
+
line-height: 18px;
|
|
174
|
+
font-weight: 600;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.stepper-item:not(.is-current) {
|
|
178
|
+
display: flex;
|
|
179
|
+
|
|
180
|
+
.step-label {
|
|
181
|
+
display: none;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@include tablet-only {
|
|
187
|
+
.step-count {
|
|
188
|
+
position: absolute;
|
|
189
|
+
top: 24px;
|
|
190
|
+
right: 8px;
|
|
191
|
+
font-size: 14px;
|
|
192
|
+
line-height: 18px;
|
|
193
|
+
font-weight: 600;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.stepper-item:not(.is-current) {
|
|
197
|
+
display: flex;
|
|
198
|
+
|
|
199
|
+
.step-label {
|
|
200
|
+
display: none;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
@keyframes progress {
|
|
207
|
+
0%, 100% {
|
|
208
|
+
background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
|
|
209
|
+
}
|
|
210
|
+
0% {
|
|
211
|
+
background-position: 100% 0;
|
|
212
|
+
}
|
|
213
|
+
100% {
|
|
214
|
+
background-position: 0 0;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -1,97 +1,99 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
|
+
@import './stepper-legacy';
|
|
2
3
|
|
|
3
|
-
.stepper-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
.stepper-item {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
width: 100%;
|
|
16
|
-
&:before {
|
|
17
|
-
content: "";
|
|
18
|
-
display: block;
|
|
19
|
-
height: 4px;
|
|
20
|
-
border-radius: var(--radius-small);
|
|
21
|
-
background-size: 200% !important;
|
|
22
|
-
background-color: getColor('neutral');
|
|
4
|
+
.stepper-container {
|
|
5
|
+
.stepper-items {
|
|
6
|
+
display: flex;
|
|
7
|
+
position: relative;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
min-height: 44px;
|
|
10
|
+
gap: $spacing-2;
|
|
11
|
+
margin-top: $spacing-3;
|
|
23
12
|
}
|
|
24
13
|
|
|
25
|
-
|
|
14
|
+
.stepper-item {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
width: 100%;
|
|
18
|
+
|
|
26
19
|
&:before {
|
|
27
|
-
|
|
20
|
+
content: "";
|
|
21
|
+
display: block;
|
|
22
|
+
height: 4px;
|
|
23
|
+
border-radius: var(--radius-small);
|
|
24
|
+
background-size: 200% !important;
|
|
25
|
+
background-color: getColor('neutral');
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
&.is-
|
|
31
|
-
&:before{
|
|
32
|
-
|
|
28
|
+
&.is-error {
|
|
29
|
+
&:before {
|
|
30
|
+
background-color: getColor('error') !important;
|
|
33
31
|
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
32
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
&.is-current {
|
|
34
|
+
&:before {
|
|
35
|
+
animation: progress 1s;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
40
38
|
}
|
|
41
|
-
}
|
|
42
39
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
animation: progress 1s;
|
|
40
|
+
&.is-done {
|
|
41
|
+
&:before {
|
|
42
|
+
background-color: getColor('font');
|
|
43
|
+
}
|
|
48
44
|
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.step-count {
|
|
53
|
-
margin-bottom: $spacing-2 !important;
|
|
54
|
-
}
|
|
55
45
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
opacity: 0;
|
|
64
|
-
}
|
|
65
|
-
100% {
|
|
66
|
-
opacity: 1;
|
|
46
|
+
&.is-current,
|
|
47
|
+
&.is-active {
|
|
48
|
+
&:before {
|
|
49
|
+
background-color: getColor('main');
|
|
50
|
+
animation: progress 1s;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
67
53
|
}
|
|
68
|
-
}
|
|
69
54
|
|
|
70
|
-
@include mobile{
|
|
71
55
|
.step-count {
|
|
72
|
-
|
|
73
|
-
line-height: 18px !important;
|
|
56
|
+
margin-bottom: $spacing-2 !important;
|
|
74
57
|
}
|
|
58
|
+
|
|
75
59
|
.step-label {
|
|
76
|
-
|
|
77
|
-
|
|
60
|
+
transition: opacity 0.3s ease-in-out;
|
|
61
|
+
animation: fadeInLabel 0.4s ease-out;
|
|
78
62
|
}
|
|
79
63
|
|
|
80
|
-
|
|
81
|
-
|
|
64
|
+
@keyframes fadeInLabel {
|
|
65
|
+
0% {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
}
|
|
68
|
+
100% {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
82
71
|
}
|
|
83
|
-
}
|
|
84
72
|
|
|
85
|
-
@
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
73
|
+
@include mobile {
|
|
74
|
+
.step-count {
|
|
75
|
+
font-size: 12px !important;
|
|
76
|
+
line-height: 18px !important;
|
|
77
|
+
}
|
|
78
|
+
.step-label {
|
|
79
|
+
font-size: 14px !important;
|
|
80
|
+
line-height: 18px !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.stepper-wrapper .icon {
|
|
84
|
+
font-size: 16px !important;
|
|
85
|
+
}
|
|
91
86
|
}
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
|
|
88
|
+
@keyframes progress {
|
|
89
|
+
0%, 100% {
|
|
90
|
+
background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
|
|
91
|
+
}
|
|
92
|
+
0% {
|
|
93
|
+
background-position: 100% 0;
|
|
94
|
+
}
|
|
95
|
+
100% {
|
|
96
|
+
background-position: 0 0;
|
|
97
|
+
}
|
|
94
98
|
}
|
|
95
99
|
}
|
|
96
|
-
|
|
97
|
-
|