@carbon/styles 1.68.0 → 1.69.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 +76 -13
- package/css/styles.min.css +1 -1
- package/package.json +2 -2
- package/scss/components/data-table/action/_data-table-action.scss +0 -4
- package/scss/components/dropdown/_dropdown.scss +1 -1
- package/scss/components/fluid-list-box/_fluid-list-box.scss +4 -10
- package/scss/components/modal/_modal.scss +3 -0
- package/scss/components/number-input/_number-input.scss +25 -1
- package/scss/components/toggle/_toggle.scss +10 -3
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.69.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"scss/**/*.css",
|
|
68
68
|
"css/**/*.css"
|
|
69
69
|
],
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "aa67ac9b298f921c558984fa6abbb90c33e9ef93"
|
|
71
71
|
}
|
|
@@ -45,10 +45,6 @@
|
|
|
45
45
|
clip-path $duration-fast-02 motion(standard, productive);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.#{$prefix}--batch-actions ~ .#{$prefix}--toolbar-content {
|
|
49
|
-
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
48
|
.#{$prefix}--toolbar-content .#{$prefix}--search .#{$prefix}--search-input {
|
|
53
49
|
padding: 0 3rem;
|
|
54
50
|
// For toolbar animation with (esp.) persistent search box
|
|
@@ -261,6 +261,8 @@
|
|
|
261
261
|
.#{$prefix}--list-box__wrapper--fluid
|
|
262
262
|
.#{$prefix}--skeleton
|
|
263
263
|
.#{$prefix}--list-box__field {
|
|
264
|
+
@include skeleton;
|
|
265
|
+
|
|
264
266
|
position: absolute;
|
|
265
267
|
padding: 0;
|
|
266
268
|
block-size: convert.to-rem(8px);
|
|
@@ -272,6 +274,8 @@
|
|
|
272
274
|
.#{$prefix}--list-box__wrapper--fluid
|
|
273
275
|
.#{$prefix}--skeleton
|
|
274
276
|
.#{$prefix}--list-box__label {
|
|
277
|
+
@include skeleton;
|
|
278
|
+
|
|
275
279
|
position: absolute;
|
|
276
280
|
block-size: convert.to-rem(8px);
|
|
277
281
|
inline-size: 25%;
|
|
@@ -279,16 +283,6 @@
|
|
|
279
283
|
inset-inline-start: $spacing-05;
|
|
280
284
|
}
|
|
281
285
|
|
|
282
|
-
.#{$prefix}--list-box__wrapper--fluid
|
|
283
|
-
.#{$prefix}--skeleton
|
|
284
|
-
.#{$prefix}--list-box__field,
|
|
285
|
-
.#{$prefix}--list-box__wrapper--fluid
|
|
286
|
-
.#{$prefix}--skeleton
|
|
287
|
-
.#{$prefix}--list-box__label {
|
|
288
|
-
animation: 3000ms ease-in-out skeleton infinite;
|
|
289
|
-
background: $skeleton-element;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
286
|
// Slug styles
|
|
293
287
|
.#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
|
|
294
288
|
.#{$prefix}--slug {
|
|
@@ -445,10 +445,12 @@
|
|
|
445
445
|
content: '';
|
|
446
446
|
inline-size: convert.to-rem(1px);
|
|
447
447
|
}
|
|
448
|
+
|
|
448
449
|
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--slug::before {
|
|
449
450
|
display: none;
|
|
450
451
|
inset-inline-start: convert.to-rem(-16px);
|
|
451
452
|
}
|
|
453
|
+
|
|
452
454
|
.#{$prefix}--number__control-btn::after {
|
|
453
455
|
display: block;
|
|
454
456
|
inset-inline-end: 0;
|
|
@@ -459,19 +461,23 @@
|
|
|
459
461
|
display: block;
|
|
460
462
|
inset-inline-end: $spacing-08;
|
|
461
463
|
}
|
|
464
|
+
|
|
462
465
|
.#{$prefix}--number__input-wrapper--slug
|
|
463
466
|
.#{$prefix}--number__control-btn:focus::before {
|
|
464
467
|
display: none;
|
|
465
468
|
}
|
|
469
|
+
|
|
466
470
|
.#{$prefix}--number__control-btn:hover::after,
|
|
467
471
|
.#{$prefix}--number__control-btn:hover::before {
|
|
468
472
|
display: none;
|
|
469
473
|
inset-inline-end: 0;
|
|
470
474
|
}
|
|
475
|
+
|
|
471
476
|
.#{$prefix}--number__input-wrapper:has(.#{$prefix}--number__control-btn:hover)
|
|
472
477
|
~ .#{$prefix}--number__input-wrapper--slug::after {
|
|
473
478
|
display: none;
|
|
474
479
|
}
|
|
480
|
+
|
|
475
481
|
.#{$prefix}--number__control-btn:has(.up-icon)::after,
|
|
476
482
|
.#{$prefix}--number__control-btn:has(.up-icon)::before {
|
|
477
483
|
display: none;
|
|
@@ -480,10 +486,12 @@
|
|
|
480
486
|
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--number__invalid {
|
|
481
487
|
inset-inline-end: $spacing-13 - $spacing-05;
|
|
482
488
|
}
|
|
489
|
+
|
|
483
490
|
.#{$prefix}--number__input-wrapper--slug:has(.#{$prefix}--number__invalid)
|
|
484
491
|
.#{$prefix}--slug::before {
|
|
485
492
|
display: block;
|
|
486
493
|
}
|
|
494
|
+
|
|
487
495
|
.#{$prefix}--number
|
|
488
496
|
.#{$prefix}--number__input-wrapper--slug
|
|
489
497
|
input[data-invalid],
|
|
@@ -500,17 +508,31 @@
|
|
|
500
508
|
|
|
501
509
|
padding-inline-end: convert.to-rem(145px);
|
|
502
510
|
}
|
|
511
|
+
|
|
503
512
|
// Skeleton State
|
|
513
|
+
|
|
504
514
|
.#{$prefix}--number.#{$prefix}--skeleton {
|
|
505
515
|
@include skeleton;
|
|
506
516
|
|
|
507
|
-
block-size: 2.5rem;
|
|
508
517
|
inline-size: 100%;
|
|
509
518
|
|
|
510
519
|
input[type='number'] {
|
|
511
520
|
display: none;
|
|
512
521
|
}
|
|
513
522
|
}
|
|
523
|
+
|
|
524
|
+
.#{$prefix}--number.#{$prefix}--skeleton.#{$prefix}--number--sm {
|
|
525
|
+
block-size: $spacing-07;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.#{$prefix}--number.#{$prefix}--skeleton.#{$prefix}--number--md {
|
|
529
|
+
block-size: $spacing-08;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.#{$prefix}--number.#{$prefix}--skeleton.#{$prefix}--number--lg {
|
|
533
|
+
block-size: $spacing-09;
|
|
534
|
+
}
|
|
535
|
+
|
|
514
536
|
// Windows HCM fix
|
|
515
537
|
|
|
516
538
|
.#{$prefix}--number__control-btn:hover,
|
|
@@ -526,6 +548,7 @@
|
|
|
526
548
|
@include high-contrast-mode('icon-fill');
|
|
527
549
|
}
|
|
528
550
|
}
|
|
551
|
+
|
|
529
552
|
.#{$prefix}--number__controls:hover .#{$prefix}--number__control-btn::after {
|
|
530
553
|
display: none;
|
|
531
554
|
}
|
|
@@ -538,6 +561,7 @@
|
|
|
538
561
|
.#{$prefix}--number__control-btn:hover {
|
|
539
562
|
box-shadow: 0 -1px 0 $ai-border-strong inset;
|
|
540
563
|
}
|
|
564
|
+
|
|
541
565
|
//hide dividers on button focus
|
|
542
566
|
.#{$prefix}--number__controls:focus-within
|
|
543
567
|
.#{$prefix}--number__control-btn::after {
|
|
@@ -79,9 +79,16 @@
|
|
|
79
79
|
.#{$prefix}--toggle__switch,
|
|
80
80
|
.#{$prefix}--toggle:not(.#{$prefix}--toggle--disabled):active
|
|
81
81
|
.#{$prefix}--toggle__switch {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
&::after {
|
|
83
|
+
display: block;
|
|
84
|
+
border: 2px solid $focus;
|
|
85
|
+
border-radius: convert.to-rem(16px);
|
|
86
|
+
block-size: calc(100% + convert.to-rem(6px));
|
|
87
|
+
content: '';
|
|
88
|
+
inline-size: calc(100% + convert.to-rem(6px));
|
|
89
|
+
margin-block-start: convert.to-rem(-3px);
|
|
90
|
+
margin-inline-start: convert.to-rem(-3px);
|
|
91
|
+
}
|
|
85
92
|
}
|
|
86
93
|
|
|
87
94
|
.#{$prefix}--toggle__switch--checked {
|