@trilogy-ds/styles 4.15.3 → 4.16.1-icons

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.
@@ -1,217 +0,0 @@
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
- }