@trilogy-ds/styles 4.15.1 → 4.15.3
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/components/_checkbox.scss +2 -3
- package/framework/src/components/_radio.scss +7 -3
- package/framework/src/components/_stepper-legacy.scss +217 -0
- package/framework/src/components/_stepper.scss +142 -23
- package/framework/src/utilities/mixins/_mixins.scss +82 -121
- package/package.json +1 -1
|
@@ -44,61 +44,6 @@
|
|
|
44
44
|
display: flex;
|
|
45
45
|
gap: 16px;
|
|
46
46
|
flex-wrap: wrap;
|
|
47
|
-
|
|
48
|
-
&.is-grid {
|
|
49
|
-
display: grid;
|
|
50
|
-
|
|
51
|
-
& > .radio-tile {
|
|
52
|
-
width: 100%;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
@for $i from 1 through 12 {
|
|
56
|
-
&.is-grid-cols-#{$i} {
|
|
57
|
-
grid-template-columns: repeat(#{$i}, 1fr);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
@include mobile {
|
|
61
|
-
@for $i from 1 through 12 {
|
|
62
|
-
&.is-grid-cols-mobile-#{$i} {
|
|
63
|
-
grid-template-columns: repeat(#{$i}, 1fr);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
@include tablet {
|
|
68
|
-
@for $i from 1 through 12 {
|
|
69
|
-
&.is-grid-cols-tablet-#{$i} {
|
|
70
|
-
grid-template-columns: repeat(#{$i}, 1fr);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
@include touch {
|
|
75
|
-
@for $i from 1 through 12 {
|
|
76
|
-
&.is-grid-cols-touch-#{$i} {
|
|
77
|
-
grid-template-columns: repeat(#{$i}, 1fr);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
@include desktop {
|
|
82
|
-
@for $i from 1 through 12 {
|
|
83
|
-
&.is-grid-cols-desktop-#{$i} {
|
|
84
|
-
grid-template-columns: repeat(#{$i}, 1fr);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
@include widescreen {
|
|
89
|
-
@for $i from 1 through 12 {
|
|
90
|
-
&.is-grid-cols-widescreen-#{$i} {
|
|
91
|
-
grid-template-columns: repeat(#{$i}, 1fr);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
@include fullhd {
|
|
96
|
-
@for $i from 1 through 12 {
|
|
97
|
-
&.is-grid-cols-fullhd-#{$i} {
|
|
98
|
-
grid-template-columns: repeat(#{$i}, 1fr);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
47
|
}
|
|
103
48
|
|
|
104
49
|
//BOTH
|
|
@@ -210,59 +155,20 @@
|
|
|
210
155
|
}
|
|
211
156
|
}
|
|
212
157
|
|
|
213
|
-
.#{$type}-tiles:not(.is-grid) {
|
|
214
|
-
.#{$type}-tile:not(.is-horizontal) {
|
|
215
|
-
max-width: 160px;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
158
|
//TILE ONLY
|
|
220
159
|
.#{$type}-tile {
|
|
221
160
|
position: relative;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
position: relative;
|
|
225
|
-
padding: 40px 16px 16px;
|
|
226
|
-
border: var(--border);
|
|
227
|
-
border-radius: var(--radius);
|
|
228
|
-
box-sizing: border-box;
|
|
229
|
-
background-color: getColor('background');
|
|
161
|
+
max-width: 160px;
|
|
162
|
+
display: inline-block;
|
|
230
163
|
text-align: center;
|
|
231
|
-
align-items: center;
|
|
232
|
-
font-size: 14px;
|
|
233
|
-
|
|
234
|
-
&[aria-disabled="true"] {
|
|
235
|
-
@include disabledRules;
|
|
236
|
-
filter: none;
|
|
237
|
-
label.#{$type}-label {
|
|
238
|
-
cursor: not-allowed !important;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
164
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
padding-top: 39px;
|
|
247
|
-
label.radio-label:before {
|
|
248
|
-
top: 15px;
|
|
249
|
-
left: 15px;
|
|
250
|
-
}
|
|
251
|
-
.#{$type}-sticker {
|
|
252
|
-
top: -1px;
|
|
253
|
-
right: 15px;
|
|
165
|
+
input:disabled,
|
|
166
|
+
input:disabled:checked {
|
|
167
|
+
& ~ label.#{$type}-label {
|
|
168
|
+
@include disabledRules;
|
|
254
169
|
}
|
|
255
170
|
}
|
|
256
|
-
|
|
257
|
-
&:not([aria-disabled="true"]) {
|
|
258
|
-
cursor: pointer;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
&:not([aria-disabled="true"]):not([aria-checked="true"]) {
|
|
262
|
-
@include label-states;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
&:has(input:focus-visible) {
|
|
171
|
+
&:has(input:focus-visible) label.#{$type}-label{
|
|
266
172
|
outline: 1px solid;
|
|
267
173
|
}
|
|
268
174
|
|
|
@@ -274,22 +180,67 @@
|
|
|
274
180
|
margin-right: 0;
|
|
275
181
|
}
|
|
276
182
|
|
|
277
|
-
.#{$type}-content {
|
|
278
|
-
display: flex;
|
|
279
|
-
flex-direction: column;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
183
|
label.#{$type}-label {
|
|
283
184
|
display: block;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
185
|
+
position: relative;
|
|
186
|
+
padding: 40px 16px 16px;
|
|
187
|
+
border: var(--border);
|
|
188
|
+
border-radius: var(--radius);
|
|
189
|
+
box-sizing: border-box;
|
|
190
|
+
background-color: getColor('background');
|
|
191
|
+
height: 100%;
|
|
192
|
+
|
|
289
193
|
&:before {
|
|
290
194
|
top: 16px;
|
|
291
195
|
left: 16px;
|
|
292
196
|
}
|
|
197
|
+
|
|
198
|
+
span.#{$type}-title {
|
|
199
|
+
font-weight: bold;
|
|
200
|
+
width: 100%;
|
|
201
|
+
display: block;
|
|
202
|
+
font-size: 16px;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
input {
|
|
207
|
+
&:not(:disabled):not(:checked) ~ label.radio-label {
|
|
208
|
+
@include label-states;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&:not(:disabled) ~ label.checkbox-label {
|
|
212
|
+
@include label-states;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:checked:not(:disabled) ~ label.#{$type}-label {
|
|
216
|
+
border-color: getColor('main');
|
|
217
|
+
border-width: 2px;
|
|
218
|
+
padding: 15px;
|
|
219
|
+
padding-top: 39px;
|
|
220
|
+
|
|
221
|
+
&:before {
|
|
222
|
+
top: 15px;
|
|
223
|
+
left: 15px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
span.#{$type}-title {
|
|
227
|
+
color: getColor('main');
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&:disabled {
|
|
232
|
+
& ~ label.#{$type}-label {
|
|
233
|
+
&:before {
|
|
234
|
+
border-color: getColor('disabled') !important;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&:disabled:checked ~ label.#{$type}-label {
|
|
240
|
+
.checkbox-title {
|
|
241
|
+
color: getColor('disabled');
|
|
242
|
+
}
|
|
243
|
+
}
|
|
293
244
|
}
|
|
294
245
|
|
|
295
246
|
.#{$type}-sticker {
|
|
@@ -300,34 +251,44 @@
|
|
|
300
251
|
}
|
|
301
252
|
|
|
302
253
|
&.is-horizontal {
|
|
303
|
-
|
|
254
|
+
display: flex;
|
|
255
|
+
justify-content: space-between;
|
|
304
256
|
align-items: center;
|
|
305
257
|
max-width: unset;
|
|
306
258
|
width: 100%;
|
|
307
259
|
position: relative;
|
|
308
|
-
text-align: left;
|
|
309
|
-
padding: $spacing-4 $spacing-4 $spacing-4 $spacing-8;
|
|
310
|
-
align-items: center;
|
|
311
260
|
|
|
312
261
|
&.is-narrow {
|
|
313
262
|
width: fit-content;
|
|
314
263
|
}
|
|
315
264
|
|
|
265
|
+
input {
|
|
266
|
+
&:checked:not(:disabled) ~ label.#{$type}-label {
|
|
267
|
+
padding: ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-8 - 1px);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
}
|
|
271
|
+
|
|
316
272
|
label.#{$type}-label {
|
|
273
|
+
width: 100%;
|
|
274
|
+
display: flex;
|
|
275
|
+
align-items: center;
|
|
276
|
+
justify-content: flex-start;
|
|
277
|
+
text-align: left;
|
|
278
|
+
padding: $spacing-4 $spacing-4 $spacing-4 $spacing-8;
|
|
279
|
+
|
|
280
|
+
|
|
317
281
|
&:before,
|
|
318
282
|
&:after {
|
|
319
283
|
top: 50% !important;
|
|
320
284
|
transform: translateY(-50%);
|
|
321
285
|
}
|
|
322
|
-
|
|
286
|
+
> .icon {
|
|
287
|
+
margin-right: $spacing-4;
|
|
288
|
+
}
|
|
323
289
|
|
|
324
|
-
& > .icon {
|
|
325
|
-
margin-right: $spacing-4;
|
|
326
290
|
}
|
|
327
291
|
|
|
328
|
-
&[aria-checked="true"] {
|
|
329
|
-
padding: ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-8 - 1px);
|
|
330
|
-
}
|
|
331
292
|
}
|
|
332
293
|
}
|
|
333
294
|
}
|