@carbon/styles 1.70.0-rc.0 → 1.71.0-rc.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 +142 -18
- package/css/styles.min.css +1 -1
- package/package.json +2 -2
- package/scss/components/button/_button.scss +1 -0
- package/scss/components/checkbox/_checkbox.scss +30 -2
- package/scss/components/fluid-select/_fluid-select.scss +5 -1
- package/scss/components/fluid-time-picker/_fluid-time-picker.scss +6 -0
- package/scss/components/list-box/_list-box.scss +4 -0
- package/scss/components/modal/_modal.scss +37 -5
- package/scss/components/multiselect/_multiselect.scss +1 -1
- package/scss/components/radio-button/_radio-button.scss +14 -0
- package/scss/components/select/_select.scss +68 -11
- package/scss/components/tag/_tag.scss +16 -0
- package/scss/components/tile/_tile.scss +75 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.71.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"scss/**/*.css",
|
|
76
76
|
"css/**/*.css"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "bd4f60433ff12a7e880a43aeffd71caea62c1e6b"
|
|
79
79
|
}
|
|
@@ -229,6 +229,7 @@
|
|
|
229
229
|
.#{$prefix}--checkbox__validation-msg {
|
|
230
230
|
display: none;
|
|
231
231
|
align-items: flex-start;
|
|
232
|
+
inline-size: 100%;
|
|
232
233
|
margin-block-start: $spacing-02;
|
|
233
234
|
}
|
|
234
235
|
|
|
@@ -366,12 +367,30 @@
|
|
|
366
367
|
transform: scale(1.2) rotate3d(0.5, 1, 0, 158deg);
|
|
367
368
|
}
|
|
368
369
|
|
|
369
|
-
|
|
370
|
+
//-----------------------------------------------
|
|
371
|
+
// Decorator
|
|
372
|
+
//-----------------------------------------------
|
|
373
|
+
.#{$prefix}--checkbox-group--decorator legend.#{$prefix}--label,
|
|
374
|
+
.#{$prefix}--checkbox-wrapper--decorator .#{$prefix}--checkbox-label-text {
|
|
375
|
+
display: flex;
|
|
376
|
+
}
|
|
377
|
+
// Remove v12
|
|
370
378
|
.#{$prefix}--checkbox-group--slug legend.#{$prefix}--label,
|
|
371
379
|
.#{$prefix}--checkbox-wrapper--slug .#{$prefix}--checkbox-label-text {
|
|
372
380
|
display: flex;
|
|
373
381
|
}
|
|
374
382
|
|
|
383
|
+
.#{$prefix}--checkbox-group--decorator
|
|
384
|
+
legend.#{$prefix}--label
|
|
385
|
+
.#{$prefix}--checkbox-group-inner--decorator
|
|
386
|
+
> *,
|
|
387
|
+
.#{$prefix}--checkbox-wrapper--decorator
|
|
388
|
+
.#{$prefix}--checkbox-label-text
|
|
389
|
+
.#{$prefix}--checkbox-wrapper-inner--decorator
|
|
390
|
+
> * {
|
|
391
|
+
margin-inline-start: $spacing-03;
|
|
392
|
+
}
|
|
393
|
+
// Remove v12
|
|
375
394
|
.#{$prefix}--checkbox-group--slug
|
|
376
395
|
legend.#{$prefix}--label
|
|
377
396
|
.#{$prefix}--ai-label,
|
|
@@ -385,6 +404,13 @@
|
|
|
385
404
|
margin-inline-start: $spacing-03;
|
|
386
405
|
}
|
|
387
406
|
|
|
407
|
+
.#{$prefix}--checkbox-wrapper--decorator
|
|
408
|
+
.#{$prefix}--checkbox-label-text
|
|
409
|
+
.#{$prefix}--ai-label__button--inline {
|
|
410
|
+
line-height: inherit;
|
|
411
|
+
margin-block-start: convert.to-rem(-1px);
|
|
412
|
+
}
|
|
413
|
+
// Remove v12
|
|
388
414
|
.#{$prefix}--checkbox-wrapper--slug
|
|
389
415
|
.#{$prefix}--checkbox-label-text
|
|
390
416
|
.#{$prefix}--ai-label__button--inline,
|
|
@@ -395,7 +421,9 @@
|
|
|
395
421
|
margin-block-start: convert.to-rem(-1px);
|
|
396
422
|
}
|
|
397
423
|
|
|
398
|
-
|
|
424
|
+
//-----------------------------------------------
|
|
425
|
+
// Horizontal group
|
|
426
|
+
//-----------------------------------------------
|
|
399
427
|
.#{$prefix}--checkbox-group--horizontal {
|
|
400
428
|
position: relative;
|
|
401
429
|
display: flex;
|
|
@@ -201,10 +201,14 @@
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
// AILabel styles
|
|
204
|
+
.#{$prefix}--select--fluid
|
|
205
|
+
.#{$prefix}--select--decorator
|
|
206
|
+
.#{$prefix}--select__inner-wrapper--decorator
|
|
207
|
+
> *,
|
|
204
208
|
.#{$prefix}--select--fluid .#{$prefix}--select--slug .#{$prefix}--ai-label,
|
|
205
209
|
.#{$prefix}--select--fluid .#{$prefix}--select--slug .#{$prefix}--slug {
|
|
206
210
|
inset-block-start: convert.to-rem(42px);
|
|
207
|
-
inset-inline-end: $spacing-
|
|
211
|
+
inset-inline-end: $spacing-09;
|
|
208
212
|
}
|
|
209
213
|
|
|
210
214
|
.#{$prefix}--select--fluid
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
transition: opacity $duration-fast-01 motion(standard, productive);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
.#{$prefix}--select--readonly .#{$prefix}--select-input__wrapper::before {
|
|
58
|
+
background-color: $border-subtle !important; /* stylelint-disable-line declaration-no-important */
|
|
59
|
+
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
60
|
+
transition: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
57
63
|
.#{$prefix}--time-picker--fluid__wrapper
|
|
58
64
|
.#{$prefix}--select-input__wrapper::after {
|
|
59
65
|
inset-inline-end: 0;
|
|
@@ -99,6 +99,10 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
.#{$prefix}--multi-select.#{$prefix}--multi-select--readonly.#{$prefix}--list-box {
|
|
103
|
+
cursor: default;
|
|
104
|
+
}
|
|
105
|
+
|
|
102
106
|
.#{$prefix}--list-box--lg {
|
|
103
107
|
block-size: convert.to-rem(48px);
|
|
104
108
|
max-block-size: convert.to-rem(48px);
|
|
@@ -365,12 +365,15 @@
|
|
|
365
365
|
margin: 0;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
//
|
|
369
|
-
.#{$prefix}--modal--slug.#{$prefix}--modal
|
|
368
|
+
// AIlabel styles
|
|
369
|
+
.#{$prefix}--modal--slug.#{$prefix}--modal,
|
|
370
|
+
.#{$prefix}--modal--decorator:has(.#{$prefix}--ai-label).#{$prefix}--modal {
|
|
370
371
|
background-color: $ai-overlay;
|
|
371
372
|
}
|
|
372
373
|
|
|
373
|
-
.#{$prefix}--modal--slug .#{$prefix}--modal-container
|
|
374
|
+
.#{$prefix}--modal--slug .#{$prefix}--modal-container,
|
|
375
|
+
.#{$prefix}--modal--decorator:has(.#{$prefix}--ai-label)
|
|
376
|
+
.#{$prefix}--modal-container {
|
|
374
377
|
@include ai-popover-gradient('default', 0, 'layer');
|
|
375
378
|
|
|
376
379
|
border: 1px solid transparent;
|
|
@@ -381,6 +384,8 @@
|
|
|
381
384
|
}
|
|
382
385
|
|
|
383
386
|
.#{$prefix}--modal--slug
|
|
387
|
+
.#{$prefix}--modal-container:has(.#{$prefix}--modal-footer),
|
|
388
|
+
.#{$prefix}--modal--decorator:has(.#{$prefix}--ai-label)
|
|
384
389
|
.#{$prefix}--modal-container:has(.#{$prefix}--modal-footer) {
|
|
385
390
|
@include ai-popover-gradient('default', 64px, 'layer');
|
|
386
391
|
|
|
@@ -391,6 +396,8 @@
|
|
|
391
396
|
}
|
|
392
397
|
|
|
393
398
|
.#{$prefix}--modal--slug
|
|
399
|
+
.#{$prefix}--modal-content.#{$prefix}--modal-scroll-content,
|
|
400
|
+
.#{$prefix}--modal--decorator
|
|
394
401
|
.#{$prefix}--modal-content.#{$prefix}--modal-scroll-content {
|
|
395
402
|
mask-image: linear-gradient(
|
|
396
403
|
to bottom,
|
|
@@ -403,6 +410,19 @@
|
|
|
403
410
|
linear-gradient(to top, $layer 0, 2px, transparent 2px);
|
|
404
411
|
}
|
|
405
412
|
|
|
413
|
+
.#{$prefix}--modal-header
|
|
414
|
+
> .#{$prefix}--modal--inner__decorator:has(
|
|
415
|
+
+ .#{$prefix}--modal-close-button
|
|
416
|
+
)
|
|
417
|
+
> *,
|
|
418
|
+
.#{$prefix}--modal-header
|
|
419
|
+
> .#{$prefix}--modal-close-button
|
|
420
|
+
~ .#{$prefix}--modal--inner__decorator
|
|
421
|
+
> *,
|
|
422
|
+
.#{$prefix}--modal--decorator
|
|
423
|
+
.#{$prefix}--modal-container-body
|
|
424
|
+
> .#{$prefix}--modal--inner__decorator
|
|
425
|
+
> *,
|
|
406
426
|
.#{$prefix}--modal-header
|
|
407
427
|
> .#{$prefix}--ai-label:has(+ .#{$prefix}--modal-close-button),
|
|
408
428
|
.#{$prefix}--modal-header
|
|
@@ -424,9 +444,21 @@
|
|
|
424
444
|
inset-inline-end: convert.to-rem(48px);
|
|
425
445
|
}
|
|
426
446
|
|
|
427
|
-
.#{$prefix}--modal
|
|
447
|
+
.#{$prefix}--modal-header
|
|
448
|
+
> .#{$prefix}--modal--inner__decorator:not(:has(.#{$prefix}--ai-label))
|
|
449
|
+
> * {
|
|
450
|
+
inset-block-start: 1rem;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.#{$prefix}--modal-header
|
|
454
|
+
> .#{$prefix}--modal--inner__decorator:has(.#{$prefix}--ai-label--revert)
|
|
455
|
+
> * {
|
|
456
|
+
inset-block-start: 1.475rem;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.#{$prefix}--modal--decorator
|
|
428
460
|
.#{$prefix}--modal-content--overflow-indicator::before,
|
|
429
|
-
.#{$prefix}--modal--
|
|
461
|
+
.#{$prefix}--modal--decorator .#{$prefix}--modal-content--overflow-indicator {
|
|
430
462
|
display: none;
|
|
431
463
|
}
|
|
432
464
|
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
|
|
202
202
|
.#{$prefix}--multi-select.#{$prefix}--multi-select--readonly
|
|
203
203
|
.#{$prefix}--tag--filter {
|
|
204
|
-
box-shadow: 0 0 0 1px $
|
|
204
|
+
box-shadow: 0 0 0 1px $border-subtle;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.#{$prefix}--multi-select.#{$prefix}--multi-select--readonly
|
|
@@ -289,12 +289,23 @@ $radio-border-width: 1px !default;
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
// AILabel styles
|
|
292
|
+
.#{$prefix}--radio-button-group--decorator legend.#{$prefix}--label,
|
|
293
|
+
.#{$prefix}--radio-button-wrapper--decorator
|
|
294
|
+
.#{$prefix}--radio-button__label-text,
|
|
292
295
|
.#{$prefix}--radio-button-group--slug legend.#{$prefix}--label,
|
|
293
296
|
.#{$prefix}--radio-button-wrapper--slug
|
|
294
297
|
.#{$prefix}--radio-button__label-text {
|
|
295
298
|
display: flex;
|
|
296
299
|
}
|
|
297
300
|
|
|
301
|
+
.#{$prefix}--radio-button-group--decorator
|
|
302
|
+
legend.#{$prefix}--label
|
|
303
|
+
.#{$prefix}--radio-button-group-inner--decorator
|
|
304
|
+
> *,
|
|
305
|
+
.#{$prefix}--radio-button-wrapper--decorator
|
|
306
|
+
.#{$prefix}--radio-button__label-text
|
|
307
|
+
.#{$prefix}--radio-button-wrapper-inner--decorator
|
|
308
|
+
> *,
|
|
298
309
|
.#{$prefix}--radio-button-group--slug
|
|
299
310
|
legend.#{$prefix}--label
|
|
300
311
|
.#{$prefix}--ai-label,
|
|
@@ -310,6 +321,9 @@ $radio-border-width: 1px !default;
|
|
|
310
321
|
margin-inline-start: $spacing-03;
|
|
311
322
|
}
|
|
312
323
|
|
|
324
|
+
.#{$prefix}--radio-button-wrapper--decorator
|
|
325
|
+
.#{$prefix}--radio-button__label-text
|
|
326
|
+
.#{$prefix}--ai-label__button--inline,
|
|
313
327
|
.#{$prefix}--radio-button-wrapper--slug
|
|
314
328
|
.#{$prefix}--radio-button__label-text
|
|
315
329
|
.#{$prefix}--ai-label__button--inline,
|
|
@@ -283,6 +283,9 @@
|
|
|
283
283
|
|
|
284
284
|
$divider-width: 1px;
|
|
285
285
|
|
|
286
|
+
.#{$prefix}--select--decorator
|
|
287
|
+
.#{$prefix}--select__inner-wrapper--decorator
|
|
288
|
+
> *,
|
|
286
289
|
.#{$prefix}--select--slug .#{$prefix}--ai-label,
|
|
287
290
|
.#{$prefix}--select--slug .#{$prefix}--slug {
|
|
288
291
|
position: absolute;
|
|
@@ -292,6 +295,12 @@
|
|
|
292
295
|
transform: translateY(-50%);
|
|
293
296
|
}
|
|
294
297
|
|
|
298
|
+
.#{$prefix}--select--decorator
|
|
299
|
+
.#{$prefix}--select__inner-wrapper--decorator
|
|
300
|
+
> *::after,
|
|
301
|
+
.#{$prefix}--select--decorator
|
|
302
|
+
.#{$prefix}--select__inner-wrapper--decorator
|
|
303
|
+
> *::before,
|
|
295
304
|
.#{$prefix}--select--slug .#{$prefix}--ai-label::after,
|
|
296
305
|
.#{$prefix}--select--slug .#{$prefix}--ai-label::before,
|
|
297
306
|
.#{$prefix}--select--slug .#{$prefix}--slug::after,
|
|
@@ -303,48 +312,92 @@
|
|
|
303
312
|
inline-size: convert.to-rem(1px);
|
|
304
313
|
}
|
|
305
314
|
|
|
315
|
+
.#{$prefix}--select--decorator
|
|
316
|
+
.#{$prefix}--select__inner-wrapper--decorator
|
|
317
|
+
> *::before,
|
|
306
318
|
.#{$prefix}--select--slug .#{$prefix}--ai-label::before,
|
|
307
319
|
.#{$prefix}--select--slug .#{$prefix}--slug::before {
|
|
308
320
|
display: none;
|
|
309
321
|
inset-inline-start: calc(-#{$spacing-03} - #{$divider-width});
|
|
310
322
|
}
|
|
311
323
|
|
|
324
|
+
.#{$prefix}--select--decorator
|
|
325
|
+
.#{$prefix}--select__inner-wrapper--decorator
|
|
326
|
+
> *::after,
|
|
312
327
|
.#{$prefix}--select--slug .#{$prefix}--ai-label::after,
|
|
313
328
|
.#{$prefix}--select--slug .#{$prefix}--slug::after {
|
|
314
329
|
display: block;
|
|
330
|
+
inset-block-start: 0;
|
|
315
331
|
inset-inline-end: calc(-#{$spacing-03} - #{$divider-width});
|
|
316
332
|
}
|
|
317
333
|
|
|
334
|
+
.#{$prefix}--select--decorator
|
|
335
|
+
.#{$prefix}--select__inner-wrapper--decorator
|
|
336
|
+
> .#{$prefix}--ai-label--revert::before,
|
|
337
|
+
.#{$prefix}--select--slug .#{$prefix}--ai-label--revert::before,
|
|
338
|
+
.#{$prefix}--select--slug .#{$prefix}--slug--revert::before {
|
|
339
|
+
inset-block-start: 0.5rem;
|
|
340
|
+
inset-inline-start: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.#{$prefix}--select--decorator
|
|
344
|
+
.#{$prefix}--select__inner-wrapper--decorator
|
|
345
|
+
> .#{$prefix}--ai-label--revert,
|
|
346
|
+
.#{$prefix}--select--slug .#{$prefix}--ai-label--revert {
|
|
347
|
+
inset-inline-end: convert.to-rem(41px);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.#{$prefix}--select--decorator .#{$prefix}--ai-label--revert::after,
|
|
318
351
|
.#{$prefix}--select--slug .#{$prefix}--ai-label--revert::after,
|
|
319
352
|
.#{$prefix}--select--slug .#{$prefix}--slug--revert::after {
|
|
320
353
|
inset-block-start: convert.to-rem(8px);
|
|
321
|
-
inset-inline-end:
|
|
354
|
+
inset-inline-end: -($divider-width);
|
|
322
355
|
}
|
|
323
356
|
|
|
324
|
-
.#{$prefix}--select--
|
|
325
|
-
.#{$prefix}--select-input:has(
|
|
326
|
-
|
|
357
|
+
.#{$prefix}--select--decorator
|
|
358
|
+
.#{$prefix}--select-input:has(
|
|
359
|
+
~ .#{$prefix}--select__inner-wrapper--decorator
|
|
327
360
|
),
|
|
328
361
|
.#{$prefix}--select--slug
|
|
329
|
-
.#{$prefix}--select-input:has(~ .#{$prefix}--
|
|
330
|
-
|
|
331
|
-
) {
|
|
332
|
-
@include ai-gradient;
|
|
333
|
-
|
|
362
|
+
.#{$prefix}--select-input:has(~ .#{$prefix}--ai-label),
|
|
363
|
+
.#{$prefix}--select--slug .#{$prefix}--select-input:has(~ .#{$prefix}--slug) {
|
|
334
364
|
padding-inline-end: $spacing-10;
|
|
335
365
|
}
|
|
336
366
|
|
|
367
|
+
.#{$prefix}--select--decorator:has(.#{$prefix}--select__invalid-icon)
|
|
368
|
+
.#{$prefix}--select-input:has(
|
|
369
|
+
~ .#{$prefix}--select__inner-wrapper--decorator
|
|
370
|
+
),
|
|
337
371
|
.#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
|
|
372
|
+
.#{$prefix}--select-input:has(~ .#{$prefix}--ai-label),
|
|
373
|
+
.#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
|
|
374
|
+
.#{$prefix}--select-input:has(~ .#{$prefix}--slug) {
|
|
375
|
+
padding-inline-end: $spacing-12;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.#{$prefix}--select--decorator
|
|
379
|
+
.#{$prefix}--select-input:has(
|
|
380
|
+
~ .#{$prefix}--select__inner-wrapper--decorator .#{$prefix}--ai-label
|
|
381
|
+
):not(
|
|
382
|
+
:has(
|
|
383
|
+
~ .#{$prefix}--select__inner-wrapper--decorator
|
|
384
|
+
.#{$prefix}--ai-label--revert
|
|
385
|
+
)
|
|
386
|
+
),
|
|
387
|
+
.#{$prefix}--select--slug
|
|
338
388
|
.#{$prefix}--select-input:has(~ .#{$prefix}--ai-label):not(
|
|
339
389
|
:has(~ .#{$prefix}--ai-label--revert)
|
|
340
390
|
),
|
|
341
|
-
.#{$prefix}--select--slug
|
|
391
|
+
.#{$prefix}--select--slug
|
|
342
392
|
.#{$prefix}--select-input:has(~ .#{$prefix}--slug):not(
|
|
343
393
|
:has(~ .#{$prefix}--slug--revert)
|
|
344
394
|
) {
|
|
345
|
-
|
|
395
|
+
@include ai-gradient;
|
|
346
396
|
}
|
|
347
397
|
|
|
398
|
+
.#{$prefix}--select--decorator:has(.#{$prefix}--select__invalid-icon)
|
|
399
|
+
.#{$prefix}--select__inner-wrapper--decorator
|
|
400
|
+
> *::before,
|
|
348
401
|
.#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
|
|
349
402
|
.#{$prefix}--ai-label::before,
|
|
350
403
|
.#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
|
|
@@ -352,6 +405,10 @@
|
|
|
352
405
|
display: block;
|
|
353
406
|
}
|
|
354
407
|
|
|
408
|
+
.#{$prefix}--select--decorator
|
|
409
|
+
.#{$prefix}--select-input__wrapper
|
|
410
|
+
.#{$prefix}--select-input
|
|
411
|
+
~ .#{$prefix}--select__invalid-icon,
|
|
355
412
|
.#{$prefix}--select--slug
|
|
356
413
|
.#{$prefix}--select-input__wrapper[data-invalid]
|
|
357
414
|
.#{$prefix}--select-input
|
|
@@ -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
|
) {
|
|
@@ -405,11 +413,19 @@
|
|
|
405
413
|
border-color: currentColor;
|
|
406
414
|
}
|
|
407
415
|
|
|
416
|
+
.#{$prefix}--tag--filter .#{$prefix}--tag__decorator > *,
|
|
408
417
|
.#{$prefix}--tag--filter .#{$prefix}--ai-label,
|
|
409
418
|
.#{$prefix}--tag--filter .#{$prefix}--slug {
|
|
410
419
|
min-inline-size: convert.to-rem(32.14px);
|
|
411
420
|
}
|
|
412
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
|
+
|
|
413
429
|
// Windows HCM fix
|
|
414
430
|
|
|
415
431
|
.#{$prefix}--tag {
|
|
@@ -388,21 +388,29 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
// AILabel styles
|
|
391
|
+
.#{$prefix}--tile > .#{$prefix}--tile--inner-decorator > *,
|
|
392
|
+
.#{$prefix}--tile--expandable > div > .#{$prefix}--tile--inner-decorator > *,
|
|
391
393
|
.#{$prefix}--tile > .#{$prefix}--ai-label,
|
|
392
394
|
.#{$prefix}--tile--expandable > div > .#{$prefix}--ai-label,
|
|
393
395
|
.#{$prefix}--tile > .#{$prefix}--slug,
|
|
394
396
|
.#{$prefix}--tile--expandable > div > .#{$prefix}--slug,
|
|
395
|
-
.#{$prefix}--tile--clickable .#{$prefix}--tile--
|
|
397
|
+
.#{$prefix}--tile--clickable .#{$prefix}--tile--ai-label-icon {
|
|
396
398
|
position: absolute;
|
|
397
399
|
inset-block-start: $spacing-05;
|
|
398
400
|
inset-inline-end: $spacing-05;
|
|
399
401
|
}
|
|
400
402
|
|
|
403
|
+
.#{$prefix}--tile.#{$prefix}--tile--selectable
|
|
404
|
+
> .#{$prefix}--tile--inner-decorator
|
|
405
|
+
> *,
|
|
401
406
|
.#{$prefix}--tile.#{$prefix}--tile--selectable > .#{$prefix}--ai-label,
|
|
402
407
|
.#{$prefix}--tile.#{$prefix}--tile--selectable > .#{$prefix}--slug {
|
|
403
408
|
inset-inline-end: $spacing-08;
|
|
404
409
|
}
|
|
405
410
|
|
|
411
|
+
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio
|
|
412
|
+
> .#{$prefix}--tile--inner-decorator
|
|
413
|
+
> *,
|
|
406
414
|
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio
|
|
407
415
|
> .#{$prefix}--ai-label,
|
|
408
416
|
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio
|
|
@@ -418,6 +426,9 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
418
426
|
}
|
|
419
427
|
}
|
|
420
428
|
|
|
429
|
+
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio.#{$prefix}--tile--is-selected
|
|
430
|
+
> .#{$prefix}--tile--inner-decorator
|
|
431
|
+
> *,
|
|
421
432
|
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio.#{$prefix}--tile--is-selected
|
|
422
433
|
> .#{$prefix}--ai-label,
|
|
423
434
|
.#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio.#{$prefix}--tile--is-selected
|
|
@@ -425,11 +436,18 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
425
436
|
inset-inline-end: $spacing-08;
|
|
426
437
|
}
|
|
427
438
|
|
|
439
|
+
.#{$prefix}--tile.#{$prefix}--tile--clickable
|
|
440
|
+
> .#{$prefix}--tile--inner-decorator
|
|
441
|
+
> *,
|
|
428
442
|
.#{$prefix}--tile.#{$prefix}--tile--clickable > .#{$prefix}--ai-label,
|
|
429
443
|
.#{$prefix}--tile.#{$prefix}--tile--clickable > .#{$prefix}--slug {
|
|
430
444
|
pointer-events: none;
|
|
431
445
|
}
|
|
432
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,
|
|
433
451
|
.#{$prefix}--tile--slug.#{$prefix}--tile {
|
|
434
452
|
@include ai-popover-gradient('default', 0, 'layer');
|
|
435
453
|
|
|
@@ -439,10 +457,16 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
439
457
|
0 4px 8px 0 $ai-drop-shadow;
|
|
440
458
|
}
|
|
441
459
|
|
|
460
|
+
.#{$prefix}--tile--decorator:has(
|
|
461
|
+
.#{$prefix}--ai-label
|
|
462
|
+
).#{$prefix}--tile--expandable:hover,
|
|
442
463
|
.#{$prefix}--tile--slug.#{$prefix}--tile--expandable:hover {
|
|
443
464
|
@include ai-popover-gradient('default', 0, 'layer');
|
|
444
465
|
}
|
|
445
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,
|
|
446
470
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::before,
|
|
447
471
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::after,
|
|
448
472
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable::before {
|
|
@@ -457,6 +481,12 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
457
481
|
transition: opacity $duration-fast-02 motion(standard, productive);
|
|
458
482
|
}
|
|
459
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,
|
|
460
490
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::before,
|
|
461
491
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable::before {
|
|
462
492
|
@include ai-popover-gradient('hover', 0, 'layer');
|
|
@@ -466,17 +496,25 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
466
496
|
0 4px 10px 2px $ai-drop-shadow;
|
|
467
497
|
}
|
|
468
498
|
|
|
499
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable:hover::before,
|
|
500
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--clickable:hover::before,
|
|
469
501
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable:hover::before,
|
|
470
502
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable:hover::before {
|
|
471
503
|
opacity: 1;
|
|
472
504
|
}
|
|
473
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,
|
|
474
509
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable:focus,
|
|
475
510
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable:focus,
|
|
476
511
|
.#{$prefix}--tile-input:focus + .#{$prefix}--tile--slug.#{$prefix}--tile {
|
|
477
512
|
outline-offset: -1px;
|
|
478
513
|
}
|
|
479
514
|
|
|
515
|
+
.#{$prefix}--tile--decorator:has(
|
|
516
|
+
.#{$prefix}--tile--inner-decorator .#{$prefix}--ai-label
|
|
517
|
+
).#{$prefix}--tile--selectable::after,
|
|
480
518
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::after {
|
|
481
519
|
@include ai-popover-gradient('selected', 0, 'layer');
|
|
482
520
|
|
|
@@ -485,18 +523,27 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
485
523
|
0 4px 8px 0 $ai-drop-shadow;
|
|
486
524
|
}
|
|
487
525
|
|
|
526
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable:hover::after,
|
|
488
527
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable:hover::after {
|
|
489
528
|
opacity: 0;
|
|
490
529
|
}
|
|
491
530
|
|
|
531
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--is-selected::after,
|
|
492
532
|
.#{$prefix}--tile--slug.#{$prefix}--tile--is-selected::after {
|
|
493
533
|
opacity: 1;
|
|
494
534
|
}
|
|
495
535
|
|
|
536
|
+
.#{$prefix}--tile--decorator:has(
|
|
537
|
+
.#{$prefix}--tile--inner-decorator
|
|
538
|
+
).#{$prefix}--tile--is-selected,
|
|
496
539
|
.#{$prefix}--tile--slug.#{$prefix}--tile--is-selected {
|
|
497
540
|
border-color: $border-inverse;
|
|
498
541
|
}
|
|
499
542
|
|
|
543
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable
|
|
544
|
+
.#{$prefix}--tile-content,
|
|
545
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--clickable
|
|
546
|
+
.#{$prefix}--tile-content,
|
|
500
547
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
501
548
|
.#{$prefix}--tile-content,
|
|
502
549
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable
|
|
@@ -505,6 +552,15 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
505
552
|
cursor: pointer;
|
|
506
553
|
}
|
|
507
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
|
+
> *,
|
|
508
564
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
509
565
|
.#{$prefix}--tile-content,
|
|
510
566
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable .#{$prefix}--tile-content,
|
|
@@ -515,6 +571,9 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
515
571
|
z-index: 1;
|
|
516
572
|
}
|
|
517
573
|
|
|
574
|
+
.#{$prefix}--tile--decorator.#{$prefix}--tile--selectable
|
|
575
|
+
.#{$prefix}--tile--inner-decorator
|
|
576
|
+
> *:has(> .#{$prefix}--popover--open),
|
|
518
577
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
519
578
|
.#{$prefix}--ai-label:has(> .#{$prefix}--popover--open),
|
|
520
579
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
@@ -522,6 +581,11 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
522
581
|
z-index: 2;
|
|
523
582
|
}
|
|
524
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,
|
|
525
589
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable > .#{$prefix}--ai-label,
|
|
526
590
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable > .#{$prefix}--slug,
|
|
527
591
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable
|
|
@@ -529,6 +593,9 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
529
593
|
z-index: 1;
|
|
530
594
|
}
|
|
531
595
|
|
|
596
|
+
.#{$prefix}--tile--expandable:has(
|
|
597
|
+
.#{$prefix}--tile--inner-decorator > * > .#{$prefix}--popover--open
|
|
598
|
+
),
|
|
532
599
|
.#{$prefix}--tile--expandable:has(
|
|
533
600
|
.#{$prefix}--ai-label > .#{$prefix}--popover--open
|
|
534
601
|
),
|
|
@@ -538,16 +605,19 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
538
605
|
overflow: visible;
|
|
539
606
|
}
|
|
540
607
|
|
|
541
|
-
|
|
542
|
-
.#{$prefix}--tile--clickable .#{$prefix}--tile--slug-icon rect {
|
|
608
|
+
.#{$prefix}--tile--clickable .#{$prefix}--tile--ai-label-icon rect {
|
|
543
609
|
stroke: $icon-primary;
|
|
544
610
|
}
|
|
545
611
|
|
|
546
|
-
.#{$prefix}--tile--clickable .#{$prefix}--tile--
|
|
612
|
+
.#{$prefix}--tile--clickable .#{$prefix}--tile--ai-label-icon path {
|
|
547
613
|
fill: $icon-primary;
|
|
548
614
|
}
|
|
549
615
|
|
|
550
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,
|
|
551
621
|
.#{$prefix}--tile--slug-rounded,
|
|
552
622
|
.#{$prefix}--tile--slug-rounded.#{$prefix}--tile--selectable::before,
|
|
553
623
|
.#{$prefix}--tile--slug-rounded.#{$prefix}--tile--selectable::after,
|
|
@@ -555,6 +625,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
555
625
|
border-radius: $spacing-03;
|
|
556
626
|
}
|
|
557
627
|
|
|
628
|
+
.#{$prefix}--tile--decorator-rounded .#{$prefix}--tile__chevron,
|
|
558
629
|
.#{$prefix}--tile--slug-rounded .#{$prefix}--tile__chevron {
|
|
559
630
|
border-end-end-radius: $spacing-03;
|
|
560
631
|
}
|