@carbon/styles 1.69.0 → 1.70.0
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/css/styles.css +693 -111
- package/css/styles.min.css +1 -1
- package/package.json +10 -2
- package/scss/__tests__/__snapshots__/config-test.js.snap +1 -0
- package/scss/_config.scss +6 -0
- package/scss/_reset.scss +1 -0
- package/scss/components/checkbox/_checkbox.scss +39 -2
- package/scss/components/data-table/_data-table.scss +8 -1
- package/scss/components/data-table/sort/_data-table-sort.scss +2 -2
- package/scss/components/date-picker/_date-picker.scss +30 -2
- package/scss/components/dropdown/_dropdown.scss +4 -0
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +19 -3
- package/scss/components/fluid-list-box/_fluid-list-box.scss +93 -2
- package/scss/components/fluid-number-input/_fluid-number-input.scss +40 -2
- package/scss/components/fluid-select/_fluid-select.scss +6 -2
- package/scss/components/fluid-text-area/_fluid-text-area.scss +37 -3
- package/scss/components/fluid-text-input/_fluid-text-input.scss +31 -1
- package/scss/components/fluid-time-picker/_fluid-time-picker.scss +6 -0
- package/scss/components/list-box/_list-box.scss +136 -2
- package/scss/components/modal/_modal.scss +45 -5
- package/scss/components/multiselect/_multiselect.scss +1 -1
- package/scss/components/number-input/_number-input.scss +67 -3
- package/scss/components/radio-button/_radio-button.scss +24 -1
- package/scss/components/select/_select.scss +23 -3
- package/scss/components/slug/_slug.scss +374 -1
- package/scss/components/tag/_tag.scss +26 -1
- package/scss/components/text-area/_text-area.scss +54 -2
- package/scss/components/text-input/_text-input.scss +56 -2
- package/scss/components/tile/_tile.scss +91 -5
- package/scss/fonts/__tests__/__snapshots__/fonts-test.js.snap +180 -180
- package/scss/fonts/_mono.scss +66 -9
- package/scss/fonts/_sans-arabic.scss +17 -8
- package/scss/fonts/_sans-devanagari.scss +17 -8
- package/scss/fonts/_sans-hebrew.scss +17 -8
- package/scss/fonts/_sans-thai-looped.scss +17 -8
- package/scss/fonts/_sans-thai.scss +17 -8
- package/scss/fonts/_sans.scss +66 -9
- package/scss/fonts/_serif.scss +66 -9
- package/scss/fonts/_src.scss +39 -12
|
@@ -246,6 +246,14 @@
|
|
|
246
246
|
);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
.#{$prefix}--multi-select--readonly
|
|
250
|
+
.#{$prefix}--tag--high-contrast:not(.#{$prefix}--tag--operational)
|
|
251
|
+
.#{$prefix}--tag__close-icon {
|
|
252
|
+
&:hover {
|
|
253
|
+
background-color: transparent;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
249
257
|
.#{$prefix}--tag--outline:not(.#{$prefix}--tag--operational):not(span):not(
|
|
250
258
|
[disabled]
|
|
251
259
|
) {
|
|
@@ -380,12 +388,17 @@
|
|
|
380
388
|
}
|
|
381
389
|
}
|
|
382
390
|
|
|
383
|
-
//
|
|
391
|
+
// AILabel styles
|
|
392
|
+
.#{$prefix}--tag .#{$prefix}--ai-label .#{$prefix}--ai-label__button--inline,
|
|
384
393
|
.#{$prefix}--tag .#{$prefix}--slug .#{$prefix}--slug__button--inline {
|
|
385
394
|
color: currentColor;
|
|
386
395
|
margin-inline-start: convert.to-rem(1px);
|
|
387
396
|
}
|
|
388
397
|
|
|
398
|
+
.#{$prefix}--tag
|
|
399
|
+
.#{$prefix}--ai-label
|
|
400
|
+
.#{$prefix}--ai-label__button--inline
|
|
401
|
+
.#{$prefix}--ai-label__text::before,
|
|
389
402
|
.#{$prefix}--tag
|
|
390
403
|
.#{$prefix}--slug
|
|
391
404
|
.#{$prefix}--slug__button--inline
|
|
@@ -393,14 +406,26 @@
|
|
|
393
406
|
background-color: currentColor;
|
|
394
407
|
}
|
|
395
408
|
|
|
409
|
+
.#{$prefix}--tag
|
|
410
|
+
.#{$prefix}--ai-label
|
|
411
|
+
.#{$prefix}--ai-label__button--inline:hover,
|
|
396
412
|
.#{$prefix}--tag .#{$prefix}--slug .#{$prefix}--slug__button--inline:hover {
|
|
397
413
|
border-color: currentColor;
|
|
398
414
|
}
|
|
399
415
|
|
|
416
|
+
.#{$prefix}--tag--filter .#{$prefix}--tag__decorator > *,
|
|
417
|
+
.#{$prefix}--tag--filter .#{$prefix}--ai-label,
|
|
400
418
|
.#{$prefix}--tag--filter .#{$prefix}--slug {
|
|
401
419
|
min-inline-size: convert.to-rem(32.14px);
|
|
402
420
|
}
|
|
403
421
|
|
|
422
|
+
// Decorator styles
|
|
423
|
+
.#{$prefix}--tag
|
|
424
|
+
.#{$prefix}--tag__decorator:not(:has(.#{$prefix}--ai-label)) {
|
|
425
|
+
block-size: 1rem;
|
|
426
|
+
text-align: center;
|
|
427
|
+
}
|
|
428
|
+
|
|
404
429
|
// Windows HCM fix
|
|
405
430
|
|
|
406
431
|
.#{$prefix}--tag {
|
|
@@ -128,13 +128,21 @@
|
|
|
128
128
|
border-block-end-color: $border-subtle;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
// Styles for `
|
|
131
|
+
// Styles for `AILabel` rendered inside `TextArea`
|
|
132
|
+
.#{$prefix}--text-area__wrapper--decorator
|
|
133
|
+
.#{$prefix}--text-area__inner-wrapper--decorator
|
|
134
|
+
> *,
|
|
135
|
+
.#{$prefix}--text-area__wrapper--slug .#{$prefix}--ai-label,
|
|
132
136
|
.#{$prefix}--text-area__wrapper--slug .#{$prefix}--slug {
|
|
133
137
|
position: absolute;
|
|
134
138
|
inset-block-start: $spacing-04;
|
|
135
139
|
inset-inline-end: $spacing-05;
|
|
136
140
|
}
|
|
137
141
|
|
|
142
|
+
.#{$prefix}--text-area__wrapper--decorator
|
|
143
|
+
.#{$prefix}--ai-label.#{$prefix}--ai-label--revert,
|
|
144
|
+
.#{$prefix}--text-area__wrapper--slug
|
|
145
|
+
.#{$prefix}--ai-label.#{$prefix}--ai-label--revert,
|
|
138
146
|
.#{$prefix}--text-area__wrapper--slug
|
|
139
147
|
.#{$prefix}--slug.#{$prefix}--slug--revert {
|
|
140
148
|
inset-block-start: $spacing-02;
|
|
@@ -142,23 +150,67 @@
|
|
|
142
150
|
transform: translate(0);
|
|
143
151
|
}
|
|
144
152
|
|
|
153
|
+
.#{$prefix}--text-area__wrapper--decorator
|
|
154
|
+
.#{$prefix}--text-area:has(
|
|
155
|
+
~ .#{$prefix}--text-area__inner-wrapper--decorator .#{$prefix}--ai-label
|
|
156
|
+
):not(
|
|
157
|
+
:has(
|
|
158
|
+
~ .#{$prefix}--text-area__inner-wrapper--decorator
|
|
159
|
+
.#{$prefix}--ai-label--revert
|
|
160
|
+
)
|
|
161
|
+
),
|
|
162
|
+
.#{$prefix}--text-area__wrapper--slug
|
|
163
|
+
.#{$prefix}--text-area:has(~ .#{$prefix}--ai-label):not(
|
|
164
|
+
:has(~ .#{$prefix}--ai-label--revert)
|
|
165
|
+
),
|
|
145
166
|
.#{$prefix}--text-area__wrapper--slug
|
|
146
|
-
.#{$prefix}--text-area:
|
|
167
|
+
.#{$prefix}--text-area:has(~ .#{$prefix}--slug):not(
|
|
168
|
+
:has(~ .#{$prefix}--slug--revert)
|
|
169
|
+
) {
|
|
147
170
|
@include ai-gradient;
|
|
171
|
+
}
|
|
148
172
|
|
|
173
|
+
.#{$prefix}--text-area__wrapper--decorator
|
|
174
|
+
.#{$prefix}--text-area:has(
|
|
175
|
+
~ .#{$prefix}--text-area__inner-wrapper--decorator > *
|
|
176
|
+
),
|
|
177
|
+
.#{$prefix}--text-area__wrapper--slug
|
|
178
|
+
.#{$prefix}--text-area:has(~ .#{$prefix}--ai-label),
|
|
179
|
+
.#{$prefix}--text-area__wrapper--slug
|
|
180
|
+
.#{$prefix}--text-area:has(~ .#{$prefix}--slug) {
|
|
149
181
|
padding-inline-end: $spacing-08;
|
|
150
182
|
}
|
|
151
183
|
|
|
184
|
+
.#{$prefix}--text-area--invalid:has(
|
|
185
|
+
~ .#{$prefix}--text-area__inner-wrapper--decorator > *
|
|
186
|
+
),
|
|
187
|
+
.#{$prefix}--text-area--warn:has(
|
|
188
|
+
~ .#{$prefix}--text-area__inner-wrapper--decorator > *
|
|
189
|
+
),
|
|
190
|
+
.#{$prefix}--text-area--invalid:has(~ .#{$prefix}--ai-label),
|
|
191
|
+
.#{$prefix}--text-area--warn:has(~ .#{$prefix}--ai-label),
|
|
152
192
|
.#{$prefix}--text-area--invalid:has(~ .#{$prefix}--slug),
|
|
153
193
|
.#{$prefix}--text-area--warn:has(~ .#{$prefix}--slug) {
|
|
154
194
|
padding-inline-end: $spacing-10;
|
|
155
195
|
}
|
|
156
196
|
|
|
197
|
+
.#{$prefix}--text-area--invalid
|
|
198
|
+
~ .#{$prefix}--text-area__inner-wrapper--decorator
|
|
199
|
+
> *,
|
|
200
|
+
.#{$prefix}--text-area--warn
|
|
201
|
+
~ .#{$prefix}--text-area__inner-wrapper--decorator
|
|
202
|
+
> *,
|
|
203
|
+
.#{$prefix}--text-area--invalid ~ .#{$prefix}--ai-label,
|
|
204
|
+
.#{$prefix}--text-area--warn ~ .#{$prefix}--ai-label,
|
|
157
205
|
.#{$prefix}--text-area--invalid ~ .#{$prefix}--slug,
|
|
158
206
|
.#{$prefix}--text-area--warn ~ .#{$prefix}--slug {
|
|
159
207
|
inset-inline-end: $spacing-08;
|
|
160
208
|
}
|
|
161
209
|
|
|
210
|
+
.#{$prefix}--text-area--invalid
|
|
211
|
+
~ .#{$prefix}--ai-label.#{$prefix}--ai-label--revert,
|
|
212
|
+
.#{$prefix}--text-area--warn
|
|
213
|
+
~ .#{$prefix}--ai-label.#{$prefix}--ai-label--revert,
|
|
162
214
|
.#{$prefix}--text-area--invalid ~ .#{$prefix}--slug.#{$prefix}--slug--revert,
|
|
163
215
|
.#{$prefix}--text-area--warn ~ .#{$prefix}--slug.#{$prefix}--slug--revert {
|
|
164
216
|
inset-inline-end: $spacing-07;
|
|
@@ -443,7 +443,11 @@
|
|
|
443
443
|
border-block-end-color: $border-subtle;
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
// Styles for
|
|
446
|
+
// Styles for AILabel rendered inside TextInput
|
|
447
|
+
.#{$prefix}--text-input__field-wrapper--decorator
|
|
448
|
+
.#{$prefix}--text-input__field-inner-wrapper--decorator
|
|
449
|
+
> *,
|
|
450
|
+
.#{$prefix}--text-input__field-wrapper .#{$prefix}--ai-label,
|
|
447
451
|
.#{$prefix}--text-input__field-wrapper .#{$prefix}--slug {
|
|
448
452
|
position: absolute;
|
|
449
453
|
inset-block-start: 50%;
|
|
@@ -451,23 +455,73 @@
|
|
|
451
455
|
transform: translateY(-50%);
|
|
452
456
|
}
|
|
453
457
|
|
|
458
|
+
.#{$prefix}--text-input__field-wrapper--decorator
|
|
459
|
+
.#{$prefix}--text-input:has(
|
|
460
|
+
~ .#{$prefix}--text-input__field-inner-wrapper--decorator
|
|
461
|
+
.#{$prefix}--ai-label
|
|
462
|
+
):not(
|
|
463
|
+
:has(
|
|
464
|
+
~ .#{$prefix}--text-input__field-inner-wrapper--decorator
|
|
465
|
+
.#{$prefix}--ai-label--revert
|
|
466
|
+
)
|
|
467
|
+
),
|
|
454
468
|
.#{$prefix}--text-input__field-wrapper--slug
|
|
455
|
-
.#{$prefix}--text-input:
|
|
469
|
+
.#{$prefix}--text-input:has(~ .#{$prefix}--ai-label):not(
|
|
470
|
+
:has(~ .#{$prefix}--ai-label--revert)
|
|
471
|
+
),
|
|
472
|
+
.#{$prefix}--text-input__field-wrapper--slug
|
|
473
|
+
.#{$prefix}--text-input:has(~ .#{$prefix}--slug):not(
|
|
474
|
+
:has(~ .#{$prefix}--slug--revert)
|
|
475
|
+
) {
|
|
456
476
|
@include ai-gradient;
|
|
477
|
+
}
|
|
457
478
|
|
|
479
|
+
.#{$prefix}--text-input__field-wrapper--decorator
|
|
480
|
+
.#{$prefix}--text-input:has(
|
|
481
|
+
~ .#{$prefix}--text-input__field-inner-wrapper--decorator > *
|
|
482
|
+
),
|
|
483
|
+
.#{$prefix}--text-input__field-wrapper--slug
|
|
484
|
+
.#{$prefix}--text-input:has(~ .#{$prefix}--ai-label),
|
|
485
|
+
.#{$prefix}--text-input__field-wrapper--slug
|
|
486
|
+
.#{$prefix}--text-input:has(~ .#{$prefix}--slug) {
|
|
458
487
|
padding-inline-end: $spacing-08;
|
|
459
488
|
}
|
|
460
489
|
|
|
490
|
+
.#{$prefix}--text-input--invalid:has(
|
|
491
|
+
~ .#{$prefix}--text-input__field-inner-wrapper--decorator > *
|
|
492
|
+
),
|
|
493
|
+
.#{$prefix}--text-input--warning:has(
|
|
494
|
+
~ .#{$prefix}--text-input__field-inner-wrapper--decorator > *
|
|
495
|
+
),
|
|
496
|
+
.#{$prefix}--text-input--invalid:has(~ .#{$prefix}--ai-label),
|
|
497
|
+
.#{$prefix}--text-input--warning:has(~ .#{$prefix}--ai-label),
|
|
461
498
|
.#{$prefix}--text-input--invalid:has(~ .#{$prefix}--slug),
|
|
462
499
|
.#{$prefix}--text-input--warning:has(~ .#{$prefix}--slug) {
|
|
463
500
|
padding-inline-end: $spacing-10;
|
|
464
501
|
}
|
|
465
502
|
|
|
503
|
+
.#{$prefix}--text-input--invalid
|
|
504
|
+
~ .#{$prefix}--text-input__field-inner-wrapper--decorator
|
|
505
|
+
> *,
|
|
506
|
+
.#{$prefix}--text-input--warning
|
|
507
|
+
~ .#{$prefix}--text-input__field-inner-wrapper--decorator
|
|
508
|
+
> *,
|
|
509
|
+
.#{$prefix}--text-input--invalid ~ .#{$prefix}--ai-label,
|
|
510
|
+
.#{$prefix}--text-input--warning ~ .#{$prefix}--ai-label,
|
|
466
511
|
.#{$prefix}--text-input--invalid ~ .#{$prefix}--slug,
|
|
467
512
|
.#{$prefix}--text-input--warning ~ .#{$prefix}--slug {
|
|
468
513
|
inset-inline-end: $spacing-08;
|
|
469
514
|
}
|
|
470
515
|
|
|
516
|
+
// Decorator
|
|
517
|
+
.#{$prefix}--text-input__field-wrapper--decorator
|
|
518
|
+
.#{$prefix}--text-input__field-inner-wrapper--decorator:not(
|
|
519
|
+
:has(.#{$prefix}--ai-label)
|
|
520
|
+
)
|
|
521
|
+
> * {
|
|
522
|
+
block-size: 1rem;
|
|
523
|
+
}
|
|
524
|
+
|
|
471
525
|
// Windows HCM fix
|
|
472
526
|
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger
|
|
473
527
|
svg,
|
|
@@ -387,19 +387,32 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
387
387
|
fill: $icon-disabled;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
//
|
|
390
|
+
// AILabel styles
|
|
391
|
+
.#{$prefix}--tile > .#{$prefix}--tile--inner-decorator > *,
|
|
392
|
+
.#{$prefix}--tile--expandable > div > .#{$prefix}--tile--inner-decorator > *,
|
|
393
|
+
.#{$prefix}--tile > .#{$prefix}--ai-label,
|
|
394
|
+
.#{$prefix}--tile--expandable > div > .#{$prefix}--ai-label,
|
|
391
395
|
.#{$prefix}--tile > .#{$prefix}--slug,
|
|
392
396
|
.#{$prefix}--tile--expandable > div > .#{$prefix}--slug,
|
|
393
|
-
.#{$prefix}--tile--clickable .#{$prefix}--tile--
|
|
397
|
+
.#{$prefix}--tile--clickable .#{$prefix}--tile--ai-label-icon {
|
|
394
398
|
position: absolute;
|
|
395
399
|
inset-block-start: $spacing-05;
|
|
396
400
|
inset-inline-end: $spacing-05;
|
|
397
401
|
}
|
|
398
402
|
|
|
403
|
+
.#{$prefix}--tile.#{$prefix}--tile--selectable
|
|
404
|
+
> .#{$prefix}--tile--inner-decorator
|
|
405
|
+
> *,
|
|
406
|
+
.#{$prefix}--tile.#{$prefix}--tile--selectable > .#{$prefix}--ai-label,
|
|
399
407
|
.#{$prefix}--tile.#{$prefix}--tile--selectable > .#{$prefix}--slug {
|
|
400
408
|
inset-inline-end: $spacing-08;
|
|
401
409
|
}
|
|
402
410
|
|
|
411
|
+
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio
|
|
412
|
+
> .#{$prefix}--tile--inner-decorator
|
|
413
|
+
> *,
|
|
414
|
+
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio
|
|
415
|
+
> .#{$prefix}--ai-label,
|
|
403
416
|
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio
|
|
404
417
|
> .#{$prefix}--slug {
|
|
405
418
|
inset-inline-end: $spacing-05;
|
|
@@ -413,15 +426,28 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
413
426
|
}
|
|
414
427
|
}
|
|
415
428
|
|
|
429
|
+
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio.#{$prefix}--tile--is-selected
|
|
430
|
+
> .#{$prefix}--tile--inner-decorator
|
|
431
|
+
> *,
|
|
432
|
+
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio.#{$prefix}--tile--is-selected
|
|
433
|
+
> .#{$prefix}--ai-label,
|
|
416
434
|
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio.#{$prefix}--tile--is-selected
|
|
417
435
|
> .#{$prefix}--slug {
|
|
418
436
|
inset-inline-end: $spacing-08;
|
|
419
437
|
}
|
|
420
438
|
|
|
439
|
+
.#{$prefix}--tile.#{$prefix}--tile--clickable
|
|
440
|
+
> .#{$prefix}--tile--inner-decorator
|
|
441
|
+
> *,
|
|
442
|
+
.#{$prefix}--tile.#{$prefix}--tile--clickable > .#{$prefix}--ai-label,
|
|
421
443
|
.#{$prefix}--tile.#{$prefix}--tile--clickable > .#{$prefix}--slug {
|
|
422
444
|
pointer-events: none;
|
|
423
445
|
}
|
|
424
446
|
|
|
447
|
+
.#{$prefix}--tile--decorator:has(
|
|
448
|
+
.#{$prefix}--tile--ai-label-icon
|
|
449
|
+
).#{$prefix}--tile,
|
|
450
|
+
.#{$prefix}--tile--decorator:has(.#{$prefix}--ai-label).#{$prefix}--tile,
|
|
425
451
|
.#{$prefix}--tile--slug.#{$prefix}--tile {
|
|
426
452
|
@include ai-popover-gradient('default', 0, 'layer');
|
|
427
453
|
|
|
@@ -431,10 +457,16 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
431
457
|
0 4px 8px 0 $ai-drop-shadow;
|
|
432
458
|
}
|
|
433
459
|
|
|
460
|
+
.#{$prefix}--tile--decorator:has(
|
|
461
|
+
.#{$prefix}--ai-label
|
|
462
|
+
).#{$prefix}--tile--expandable:hover,
|
|
434
463
|
.#{$prefix}--tile--slug.#{$prefix}--tile--expandable:hover {
|
|
435
464
|
@include ai-popover-gradient('default', 0, 'layer');
|
|
436
465
|
}
|
|
437
466
|
|
|
467
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable::before,
|
|
468
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable::after,
|
|
469
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--clickable::before,
|
|
438
470
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::before,
|
|
439
471
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::after,
|
|
440
472
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable::before {
|
|
@@ -449,6 +481,12 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
449
481
|
transition: opacity $duration-fast-02 motion(standard, productive);
|
|
450
482
|
}
|
|
451
483
|
|
|
484
|
+
.#{$prefix}--tile--decorator:has(
|
|
485
|
+
.#{$prefix}--ai-label
|
|
486
|
+
).#{$prefix}--tile--selectable::before,
|
|
487
|
+
.#{$prefix}--tile--decorator:has(
|
|
488
|
+
.#{$prefix}--ai-label
|
|
489
|
+
).#{$prefix}--tile--clickable::before,
|
|
452
490
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::before,
|
|
453
491
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable::before {
|
|
454
492
|
@include ai-popover-gradient('hover', 0, 'layer');
|
|
@@ -458,17 +496,25 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
458
496
|
0 4px 10px 2px $ai-drop-shadow;
|
|
459
497
|
}
|
|
460
498
|
|
|
499
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable:hover::before,
|
|
500
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--clickable:hover::before,
|
|
461
501
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable:hover::before,
|
|
462
502
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable:hover::before {
|
|
463
503
|
opacity: 1;
|
|
464
504
|
}
|
|
465
505
|
|
|
506
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable:focus,
|
|
507
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--clickable:focus,
|
|
508
|
+
.#{$prefix}--tile-input:focus + .#{$prefix}--tile--decorator.#{$prefix}--tile,
|
|
466
509
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable:focus,
|
|
467
510
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable:focus,
|
|
468
511
|
.#{$prefix}--tile-input:focus + .#{$prefix}--tile--slug.#{$prefix}--tile {
|
|
469
512
|
outline-offset: -1px;
|
|
470
513
|
}
|
|
471
514
|
|
|
515
|
+
.#{$prefix}--tile--decorator:has(
|
|
516
|
+
.#{$prefix}--tile--inner-decorator .#{$prefix}--ai-label
|
|
517
|
+
).#{$prefix}--tile--selectable::after,
|
|
472
518
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::after {
|
|
473
519
|
@include ai-popover-gradient('selected', 0, 'layer');
|
|
474
520
|
|
|
@@ -477,18 +523,27 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
477
523
|
0 4px 8px 0 $ai-drop-shadow;
|
|
478
524
|
}
|
|
479
525
|
|
|
526
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable:hover::after,
|
|
480
527
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable:hover::after {
|
|
481
528
|
opacity: 0;
|
|
482
529
|
}
|
|
483
530
|
|
|
531
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--is-selected::after,
|
|
484
532
|
.#{$prefix}--tile--slug.#{$prefix}--tile--is-selected::after {
|
|
485
533
|
opacity: 1;
|
|
486
534
|
}
|
|
487
535
|
|
|
536
|
+
.#{$prefix}--tile--decorator:has(
|
|
537
|
+
.#{$prefix}--tile--inner-decorator
|
|
538
|
+
).#{$prefix}--tile--is-selected,
|
|
488
539
|
.#{$prefix}--tile--slug.#{$prefix}--tile--is-selected {
|
|
489
540
|
border-color: $border-inverse;
|
|
490
541
|
}
|
|
491
542
|
|
|
543
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable
|
|
544
|
+
.#{$prefix}--tile-content,
|
|
545
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--clickable
|
|
546
|
+
.#{$prefix}--tile-content,
|
|
492
547
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
493
548
|
.#{$prefix}--tile-content,
|
|
494
549
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable
|
|
@@ -497,42 +552,72 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
497
552
|
cursor: pointer;
|
|
498
553
|
}
|
|
499
554
|
|
|
555
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable
|
|
556
|
+
.#{$prefix}--tile-content,
|
|
557
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--clickable
|
|
558
|
+
.#{$prefix}--tile-content,
|
|
559
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable
|
|
560
|
+
> .#{$prefix}--tile__checkmark,
|
|
561
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--is-selected
|
|
562
|
+
.#{$prefix}--tile--inner-decorator
|
|
563
|
+
> *,
|
|
500
564
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
501
565
|
.#{$prefix}--tile-content,
|
|
502
566
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable .#{$prefix}--tile-content,
|
|
503
567
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
504
568
|
> .#{$prefix}--tile__checkmark,
|
|
569
|
+
.#{$prefix}--tile--slug.#{$prefix}--tile--is-selected .#{$prefix}--ai-label,
|
|
505
570
|
.#{$prefix}--tile--slug.#{$prefix}--tile--is-selected .#{$prefix}--slug {
|
|
506
571
|
z-index: 1;
|
|
507
572
|
}
|
|
508
573
|
|
|
574
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable
|
|
575
|
+
.#{$prefix}--tile--inner-decorator
|
|
576
|
+
> *:has(> .#{$prefix}--popover--open),
|
|
577
|
+
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
578
|
+
.#{$prefix}--ai-label:has(> .#{$prefix}--popover--open),
|
|
509
579
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
510
580
|
.#{$prefix}--slug:has(> .#{$prefix}--popover--open) {
|
|
511
581
|
z-index: 2;
|
|
512
582
|
}
|
|
513
583
|
|
|
584
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable
|
|
585
|
+
> .#{$prefix}--tile--inner-decorator
|
|
586
|
+
> *,
|
|
587
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable
|
|
588
|
+
> .#{$prefix}--tile__checkmark,
|
|
589
|
+
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable > .#{$prefix}--ai-label,
|
|
514
590
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable > .#{$prefix}--slug,
|
|
515
591
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
516
592
|
> .#{$prefix}--tile__checkmark {
|
|
517
593
|
z-index: 1;
|
|
518
594
|
}
|
|
519
595
|
|
|
596
|
+
.#{$prefix}--tile--expandable:has(
|
|
597
|
+
.#{$prefix}--tile--inner-decorator > * > .#{$prefix}--popover--open
|
|
598
|
+
),
|
|
599
|
+
.#{$prefix}--tile--expandable:has(
|
|
600
|
+
.#{$prefix}--ai-label > .#{$prefix}--popover--open
|
|
601
|
+
),
|
|
520
602
|
.#{$prefix}--tile--expandable:has(
|
|
521
603
|
.#{$prefix}--slug > .#{$prefix}--popover--open
|
|
522
604
|
) {
|
|
523
605
|
overflow: visible;
|
|
524
606
|
}
|
|
525
607
|
|
|
526
|
-
|
|
527
|
-
.#{$prefix}--tile--clickable .#{$prefix}--tile--slug-icon rect {
|
|
608
|
+
.#{$prefix}--tile--clickable .#{$prefix}--tile--ai-label-icon rect {
|
|
528
609
|
stroke: $icon-primary;
|
|
529
610
|
}
|
|
530
611
|
|
|
531
|
-
.#{$prefix}--tile--clickable .#{$prefix}--tile--
|
|
612
|
+
.#{$prefix}--tile--clickable .#{$prefix}--tile--ai-label-icon path {
|
|
532
613
|
fill: $icon-primary;
|
|
533
614
|
}
|
|
534
615
|
|
|
535
616
|
// Tile with slug and rounded corners
|
|
617
|
+
.#{$prefix}--tile--decorator-rounded,
|
|
618
|
+
.#{$prefix}--tile--decorator-rounded.#{$prefix}--tile--selectable::before,
|
|
619
|
+
.#{$prefix}--tile--decorator-rounded.#{$prefix}--tile--selectable::after,
|
|
620
|
+
.#{$prefix}--tile--decorator-rounded.#{$prefix}--tile--clickable::before,
|
|
536
621
|
.#{$prefix}--tile--slug-rounded,
|
|
537
622
|
.#{$prefix}--tile--slug-rounded.#{$prefix}--tile--selectable::before,
|
|
538
623
|
.#{$prefix}--tile--slug-rounded.#{$prefix}--tile--selectable::after,
|
|
@@ -540,6 +625,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
540
625
|
border-radius: $spacing-03;
|
|
541
626
|
}
|
|
542
627
|
|
|
628
|
+
.#{$prefix}--tile--decorator-rounded .#{$prefix}--tile__chevron,
|
|
543
629
|
.#{$prefix}--tile--slug-rounded .#{$prefix}--tile__chevron {
|
|
544
630
|
border-end-end-radius: $spacing-03;
|
|
545
631
|
}
|