@carbon/styles 1.31.2 → 1.32.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 CHANGED
@@ -2632,15 +2632,15 @@ em {
2632
2632
  --cds-layout-size-height: var(--cds-layout-size-height-context);
2633
2633
  }
2634
2634
 
2635
- .cds--layout-constraint--size\:default-xs {
2635
+ .cds--layout-constraint--size__default-xs {
2636
2636
  --cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-xs, 1.5rem));
2637
2637
  }
2638
2638
 
2639
- .cds--layout-constraint--size\:min-xs {
2639
+ .cds--layout-constraint--size__min-xs {
2640
2640
  --cds-layout-size-height-min: var(--cds-layout-size-height-xs, 1.5rem);
2641
2641
  }
2642
2642
 
2643
- .cds--layout-constraint--size\:max-xs {
2643
+ .cds--layout-constraint--size__max-xs {
2644
2644
  --cds-layout-size-height-max: var(--cds-layout-size-height-xs, 1.5rem);
2645
2645
  }
2646
2646
 
@@ -2649,15 +2649,15 @@ em {
2649
2649
  --cds-layout-size-height: var(--cds-layout-size-height-context);
2650
2650
  }
2651
2651
 
2652
- .cds--layout-constraint--size\:default-sm {
2652
+ .cds--layout-constraint--size__default-sm {
2653
2653
  --cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-sm, 2rem));
2654
2654
  }
2655
2655
 
2656
- .cds--layout-constraint--size\:min-sm {
2656
+ .cds--layout-constraint--size__min-sm {
2657
2657
  --cds-layout-size-height-min: var(--cds-layout-size-height-sm, 2rem);
2658
2658
  }
2659
2659
 
2660
- .cds--layout-constraint--size\:max-sm {
2660
+ .cds--layout-constraint--size__max-sm {
2661
2661
  --cds-layout-size-height-max: var(--cds-layout-size-height-sm, 2rem);
2662
2662
  }
2663
2663
 
@@ -2666,15 +2666,15 @@ em {
2666
2666
  --cds-layout-size-height: var(--cds-layout-size-height-context);
2667
2667
  }
2668
2668
 
2669
- .cds--layout-constraint--size\:default-md {
2669
+ .cds--layout-constraint--size__default-md {
2670
2670
  --cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-md, 2.5rem));
2671
2671
  }
2672
2672
 
2673
- .cds--layout-constraint--size\:min-md {
2673
+ .cds--layout-constraint--size__min-md {
2674
2674
  --cds-layout-size-height-min: var(--cds-layout-size-height-md, 2.5rem);
2675
2675
  }
2676
2676
 
2677
- .cds--layout-constraint--size\:max-md {
2677
+ .cds--layout-constraint--size__max-md {
2678
2678
  --cds-layout-size-height-max: var(--cds-layout-size-height-md, 2.5rem);
2679
2679
  }
2680
2680
 
@@ -2683,15 +2683,15 @@ em {
2683
2683
  --cds-layout-size-height: var(--cds-layout-size-height-context);
2684
2684
  }
2685
2685
 
2686
- .cds--layout-constraint--size\:default-lg {
2686
+ .cds--layout-constraint--size__default-lg {
2687
2687
  --cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-lg, 3rem));
2688
2688
  }
2689
2689
 
2690
- .cds--layout-constraint--size\:min-lg {
2690
+ .cds--layout-constraint--size__min-lg {
2691
2691
  --cds-layout-size-height-min: var(--cds-layout-size-height-lg, 3rem);
2692
2692
  }
2693
2693
 
2694
- .cds--layout-constraint--size\:max-lg {
2694
+ .cds--layout-constraint--size__max-lg {
2695
2695
  --cds-layout-size-height-max: var(--cds-layout-size-height-lg, 3rem);
2696
2696
  }
2697
2697
 
@@ -2700,15 +2700,15 @@ em {
2700
2700
  --cds-layout-size-height: var(--cds-layout-size-height-context);
2701
2701
  }
2702
2702
 
2703
- .cds--layout-constraint--size\:default-xl {
2703
+ .cds--layout-constraint--size__default-xl {
2704
2704
  --cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-xl, 4rem));
2705
2705
  }
2706
2706
 
2707
- .cds--layout-constraint--size\:min-xl {
2707
+ .cds--layout-constraint--size__min-xl {
2708
2708
  --cds-layout-size-height-min: var(--cds-layout-size-height-xl, 4rem);
2709
2709
  }
2710
2710
 
2711
- .cds--layout-constraint--size\:max-xl {
2711
+ .cds--layout-constraint--size__max-xl {
2712
2712
  --cds-layout-size-height-max: var(--cds-layout-size-height-xl, 4rem);
2713
2713
  }
2714
2714
 
@@ -2717,15 +2717,15 @@ em {
2717
2717
  --cds-layout-size-height: var(--cds-layout-size-height-context);
2718
2718
  }
2719
2719
 
2720
- .cds--layout-constraint--size\:default-2xl {
2720
+ .cds--layout-constraint--size__default-2xl {
2721
2721
  --cds-layout-size-height: var(--cds-layout-size-height-context, var(--cds-layout-size-height-2xl, 5rem));
2722
2722
  }
2723
2723
 
2724
- .cds--layout-constraint--size\:min-2xl {
2724
+ .cds--layout-constraint--size__min-2xl {
2725
2725
  --cds-layout-size-height-min: var(--cds-layout-size-height-2xl, 5rem);
2726
2726
  }
2727
2727
 
2728
- .cds--layout-constraint--size\:max-2xl {
2728
+ .cds--layout-constraint--size__max-2xl {
2729
2729
  --cds-layout-size-height-max: var(--cds-layout-size-height-2xl, 5rem);
2730
2730
  }
2731
2731
 
@@ -2734,15 +2734,15 @@ em {
2734
2734
  --cds-layout-density-padding-inline: var(--cds-layout-density-padding-inline-context);
2735
2735
  }
2736
2736
 
2737
- .cds--layout-constraint--density\:default-condensed {
2737
+ .cds--layout-constraint--density__default-condensed {
2738
2738
  --cds-layout-density-padding-inline: var(--cds-layout-density-padding-inline-context, var(--cds-layout-density-padding-inline-condensed, 0.5rem));
2739
2739
  }
2740
2740
 
2741
- .cds--layout-constraint--density\:min-condensed {
2741
+ .cds--layout-constraint--density__min-condensed {
2742
2742
  --cds-layout-density-padding-inline-min: var(--cds-layout-density-padding-inline-condensed, 0.5rem);
2743
2743
  }
2744
2744
 
2745
- .cds--layout-constraint--density\:max-condensed {
2745
+ .cds--layout-constraint--density__max-condensed {
2746
2746
  --cds-layout-density-padding-inline-max: var(--cds-layout-density-padding-inline-condensed, 0.5rem);
2747
2747
  }
2748
2748
 
@@ -2751,15 +2751,15 @@ em {
2751
2751
  --cds-layout-density-padding-inline: var(--cds-layout-density-padding-inline-context);
2752
2752
  }
2753
2753
 
2754
- .cds--layout-constraint--density\:default-normal {
2754
+ .cds--layout-constraint--density__default-normal {
2755
2755
  --cds-layout-density-padding-inline: var(--cds-layout-density-padding-inline-context, var(--cds-layout-density-padding-inline-normal, 1rem));
2756
2756
  }
2757
2757
 
2758
- .cds--layout-constraint--density\:min-normal {
2758
+ .cds--layout-constraint--density__min-normal {
2759
2759
  --cds-layout-density-padding-inline-min: var(--cds-layout-density-padding-inline-normal, 1rem);
2760
2760
  }
2761
2761
 
2762
- .cds--layout-constraint--density\:max-normal {
2762
+ .cds--layout-constraint--density__max-normal {
2763
2763
  --cds-layout-density-padding-inline-max: var(--cds-layout-density-padding-inline-normal, 1rem);
2764
2764
  }
2765
2765
 
@@ -4370,6 +4370,7 @@ li.cds--accordion__item--disabled:last-of-type {
4370
4370
  padding-block-start: min((var(--cds-layout-size-height-local) - 1rem) / 2 - 0.0625rem, var(--temp-padding-block-max));
4371
4371
  }
4372
4372
  .cds--btn--icon-only > :first-child {
4373
+ min-width: 1rem;
4373
4374
  -webkit-margin-before: 0.0625rem;
4374
4375
  margin-block-start: 0.0625rem;
4375
4376
  }
@@ -7918,11 +7919,8 @@ fieldset[disabled] .cds--form__helper-text {
7918
7919
  outline: 2px solid var(--cds-focus, #0f62fe);
7919
7920
  outline-offset: -2px;
7920
7921
  position: absolute;
7921
- top: 0;
7922
- right: 0;
7923
- bottom: 0;
7924
- left: 0;
7925
7922
  content: "";
7923
+ inset: 0;
7926
7924
  }
7927
7925
  @media screen and (prefers-contrast) {
7928
7926
  .cds--contained-list-item--clickable .cds--contained-list-item__content:focus::after {
@@ -9333,7 +9331,8 @@ tr.cds--data-table--selected:last-of-type td {
9333
9331
  }
9334
9332
 
9335
9333
  .cds--action-list .cds--btn {
9336
- padding: calc(0.875rem - 3px) 1rem;
9334
+ padding-right: 1rem;
9335
+ padding-left: 1rem;
9337
9336
  color: var(--cds-text-on-color, #ffffff);
9338
9337
  white-space: nowrap;
9339
9338
  }
@@ -13724,35 +13723,26 @@ button.cds--dropdown-text:focus {
13724
13723
  }
13725
13724
 
13726
13725
  .cds--search--fluid .cds--search-magnifier-icon {
13727
- top: auto;
13728
- right: 1rem;
13729
- bottom: 0.8125rem;
13730
- left: auto;
13726
+ inset: auto 1rem 0.8125rem auto;
13731
13727
  transform: none;
13732
13728
  }
13733
13729
 
13734
13730
  .cds--search--fluid .cds--search-close {
13735
- top: auto;
13736
- right: 3rem;
13737
- bottom: 0;
13738
- left: auto;
13739
13731
  width: 2.5rem;
13740
13732
  height: 2.5rem;
13741
13733
  border: none;
13734
+ inset: auto 3rem 0 auto;
13742
13735
  transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
13743
13736
  }
13744
13737
 
13745
13738
  .cds--search--fluid .cds--search-close::before {
13746
13739
  position: absolute;
13747
- top: auto;
13748
- right: -0.0625rem;
13749
- bottom: 0.875rem;
13750
- left: auto;
13751
13740
  display: block;
13752
13741
  width: 0.0625rem;
13753
13742
  height: 1rem;
13754
13743
  background: var(--cds-border-subtle);
13755
13744
  content: "";
13745
+ inset: auto -0.0625rem 0.875rem auto;
13756
13746
  }
13757
13747
 
13758
13748
  .cds--search--fluid .cds--search-input:focus ~ .cds--search-close:hover {
@@ -17694,11 +17684,8 @@ span.cds--pagination__text.cds--pagination__items-count {
17694
17684
  .cds--popover {
17695
17685
  position: absolute;
17696
17686
  z-index: 6000;
17697
- top: 0;
17698
- right: 0;
17699
- bottom: 0;
17700
- left: 0;
17701
17687
  filter: var(--cds-popover-drop-shadow, none);
17688
+ inset: 0;
17702
17689
  pointer-events: none;
17703
17690
  }
17704
17691
 
@@ -18026,10 +18013,6 @@ span.cds--pagination__text.cds--pagination__items-count {
18026
18013
 
18027
18014
  .cds--progress-bar--indeterminate .cds--progress-bar__track::after {
18028
18015
  position: absolute;
18029
- top: 0;
18030
- right: 0;
18031
- bottom: 0;
18032
- left: 0;
18033
18016
  animation-duration: 1400ms;
18034
18017
  animation-iteration-count: infinite;
18035
18018
  animation-name: progress-bar-indeterminate;
@@ -18038,6 +18021,7 @@ span.cds--pagination__text.cds--pagination__items-count {
18038
18021
  background-position-x: 0%;
18039
18022
  background-size: 200% 100%;
18040
18023
  content: "";
18024
+ inset: 0;
18041
18025
  }
18042
18026
 
18043
18027
  .cds--progress-bar__helper-text {
@@ -20156,11 +20140,12 @@ span.cds--pagination__text.cds--pagination__items-count {
20156
20140
  }
20157
20141
 
20158
20142
  .cds--tile {
20143
+ --cds-layout-density-padding-inline-local: clamp(var(--cds-layout-density-padding-inline-min), var(--cds-layout-density-padding-inline, var(--cds-layout-density-padding-inline-normal)), var(--cds-layout-density-padding-inline-max));
20159
20144
  position: relative;
20160
20145
  display: block;
20161
20146
  min-width: 8rem;
20162
20147
  min-height: 4rem;
20163
- padding: 1rem;
20148
+ padding: var(--cds-layout-density-padding-inline-local);
20164
20149
  background-color: var(--cds-layer);
20165
20150
  outline: 2px solid transparent;
20166
20151
  outline-offset: -2px;
@@ -20241,7 +20226,6 @@ span.cds--pagination__text.cds--pagination__items-count {
20241
20226
  .cds--tile--clickable.cds--link--disabled,
20242
20227
  .cds--tile--clickable:hover.cds--link--disabled {
20243
20228
  display: block;
20244
- padding: 1rem;
20245
20229
  background-color: var(--cds-layer);
20246
20230
  color: var(--cds-text-disabled, rgba(22, 22, 22, 0.25));
20247
20231
  cursor: not-allowed;
@@ -20250,8 +20234,8 @@ span.cds--pagination__text.cds--pagination__items-count {
20250
20234
  .cds--tile--clickable .cds--tile--icon,
20251
20235
  .cds--tile--clickable.cds--link--disabled .cds--tile--disabled-icon {
20252
20236
  position: absolute;
20253
- right: 1rem;
20254
- bottom: 1rem;
20237
+ right: var(--cds-layout-density-padding-inline-local);
20238
+ bottom: var(--cds-layout-density-padding-inline-local);
20255
20239
  }
20256
20240
 
20257
20241
  .cds--tile--clickable .cds--tile--icon {
@@ -20267,14 +20251,15 @@ span.cds--pagination__text.cds--pagination__items-count {
20267
20251
  }
20268
20252
 
20269
20253
  .cds--tile--selectable {
20270
- padding-right: 3rem;
20271
20254
  border: 1px solid transparent;
20255
+ -webkit-padding-end: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
20256
+ padding-inline-end: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
20272
20257
  }
20273
20258
 
20274
20259
  .cds--tile__checkmark {
20275
20260
  position: absolute;
20276
- top: 1rem;
20277
- right: 1rem;
20261
+ top: var(--cds-layout-density-padding-inline-local);
20262
+ right: var(--cds-layout-density-padding-inline-local);
20278
20263
  height: 1rem;
20279
20264
  border: none;
20280
20265
  background: transparent;
@@ -20304,8 +20289,8 @@ span.cds--pagination__text.cds--pagination__items-count {
20304
20289
  right: 0;
20305
20290
  bottom: 0;
20306
20291
  display: flex;
20307
- width: 3rem;
20308
- height: 3rem;
20292
+ width: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
20293
+ height: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
20309
20294
  align-items: center;
20310
20295
  justify-content: center;
20311
20296
  }
@@ -20347,8 +20332,8 @@ span.cds--pagination__text.cds--pagination__items-count {
20347
20332
  right: 0;
20348
20333
  bottom: 0;
20349
20334
  display: flex;
20350
- width: 3rem;
20351
- height: 3rem;
20335
+ width: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
20336
+ height: calc(var(--cds-layout-density-padding-inline-local) * 2 + 1rem);
20352
20337
  align-items: center;
20353
20338
  justify-content: center;
20354
20339
  }
@@ -20767,8 +20752,7 @@ span.cds--pagination__text.cds--pagination__items-count {
20767
20752
  }
20768
20753
 
20769
20754
  .cds--toggle__button:focus + .cds--toggle__label .cds--toggle__switch,
20770
- .cds--toggle__button:not(:disabled):active + .cds--toggle__label .cds--toggle__switch,
20771
- .cds--toggle:active .cds--toggle__switch {
20755
+ .cds--toggle:not(.cds--toggle--disabled):active .cds--toggle__switch {
20772
20756
  box-shadow: 0 0 0 1px var(--cds-focus-inset, #ffffff), 0 0 0 3px var(--cds-focus, #0f62fe);
20773
20757
  }
20774
20758
 
@@ -20870,13 +20854,72 @@ span.cds--pagination__text.cds--pagination__items-count {
20870
20854
 
20871
20855
  @media screen and (-ms-high-contrast: active), (forced-colors: active) {
20872
20856
  .cds--toggle__button:focus + .cds--toggle__label .cds--toggle__switch,
20873
- .cds--toggle__button:not(:disabled):active + .cds--toggle__label .cds--toggle__switch,
20874
- .cds--toggle:active .cds--toggle__switch {
20857
+ .cds--toggle:not(.cds--toggle--disabled):active .cds--toggle__switch {
20875
20858
  color: Highlight;
20876
20859
  outline: 1px solid Highlight;
20877
20860
  }
20878
20861
  }
20879
20862
 
20863
+ .cds--toggle--skeleton {
20864
+ display: flex;
20865
+ align-items: center;
20866
+ }
20867
+
20868
+ .cds--toggle--skeleton .cds--toggle__skeleton-circle {
20869
+ position: relative;
20870
+ overflow: hidden;
20871
+ background: var(--cds-skeleton-background, #e8e8e8);
20872
+ border-radius: 50%;
20873
+ width: 1.125rem;
20874
+ height: 1.125rem;
20875
+ border-radius: 50%;
20876
+ }
20877
+ .cds--toggle--skeleton .cds--toggle__skeleton-circle::before {
20878
+ position: absolute;
20879
+ width: 200%;
20880
+ height: 100%;
20881
+ animation: 3000ms ease-in-out skeleton infinite;
20882
+ background: var(--cds-skeleton-element, #c6c6c6);
20883
+ content: "";
20884
+ will-change: transform-origin, transform, opacity;
20885
+ }
20886
+ @media (prefers-reduced-motion: reduce) {
20887
+ .cds--toggle--skeleton .cds--toggle__skeleton-circle::before {
20888
+ animation: none;
20889
+ }
20890
+ }
20891
+
20892
+ .cds--toggle--skeleton .cds--toggle__skeleton-rectangle {
20893
+ position: relative;
20894
+ padding: 0;
20895
+ border: none;
20896
+ background: var(--cds-skeleton-background, #e8e8e8);
20897
+ box-shadow: none;
20898
+ pointer-events: none;
20899
+ width: 1.5rem;
20900
+ height: 0.5rem;
20901
+ margin-left: 0.5rem;
20902
+ }
20903
+ .cds--toggle--skeleton .cds--toggle__skeleton-rectangle:hover, .cds--toggle--skeleton .cds--toggle__skeleton-rectangle:focus, .cds--toggle--skeleton .cds--toggle__skeleton-rectangle:active {
20904
+ border: none;
20905
+ cursor: default;
20906
+ outline: none;
20907
+ }
20908
+ .cds--toggle--skeleton .cds--toggle__skeleton-rectangle::before {
20909
+ position: absolute;
20910
+ width: 100%;
20911
+ height: 100%;
20912
+ animation: 3000ms ease-in-out skeleton infinite;
20913
+ background: var(--cds-skeleton-element, #c6c6c6);
20914
+ content: "";
20915
+ will-change: transform-origin, transform, opacity;
20916
+ }
20917
+ @media (prefers-reduced-motion: reduce) {
20918
+ .cds--toggle--skeleton .cds--toggle__skeleton-rectangle::before {
20919
+ animation: none;
20920
+ }
20921
+ }
20922
+
20880
20923
  .cds--tree {
20881
20924
  overflow: hidden;
20882
20925
  }
@@ -21125,6 +21168,10 @@ span.cds--pagination__text.cds--pagination__items-count {
21125
21168
  }
21126
21169
  }
21127
21170
 
21171
+ .cds--header__global .cds--popover {
21172
+ z-index: 8001;
21173
+ }
21174
+
21128
21175
  .cds--header__action > :first-child {
21129
21176
  -webkit-margin-before: 0;
21130
21177
  margin-block-start: 0;
@@ -22073,6 +22120,10 @@ a.cds--side-nav__link--current::before {
22073
22120
  }
22074
22121
  }
22075
22122
 
22123
+ .cds--header__global .cds--popover {
22124
+ z-index: 8001;
22125
+ }
22126
+
22076
22127
  .cds--header__action > :first-child {
22077
22128
  -webkit-margin-before: 0;
22078
22129
  margin-block-start: 0;