@carbon/styles 1.17.0-rc.1 → 1.17.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
@@ -4826,6 +4826,17 @@ li.cds--accordion__item--disabled:last-of-type {
4826
4826
  }
4827
4827
  }
4828
4828
 
4829
+ input:-webkit-autofill,
4830
+ input:-webkit-autofill:hover,
4831
+ input:-webkit-autofill:focus,
4832
+ textarea:-webkit-autofill,
4833
+ textarea:-webkit-autofill:hover,
4834
+ textarea:-webkit-autofill:focus {
4835
+ -webkit-box-shadow: 0 0 0 1000px var(--cds-field) inset;
4836
+ box-shadow: 0 0 0 1000px var(--cds-field) inset;
4837
+ -webkit-text-fill-color: var(--cds-text-primary, #161616);
4838
+ }
4839
+
4829
4840
  .cds--fieldset html {
4830
4841
  font-size: 100%;
4831
4842
  }
@@ -8662,15 +8673,6 @@ fieldset[disabled] .cds--form__helper-text {
8662
8673
  transition: background-color 70ms cubic-bezier(0, 0, 0.38, 0.9);
8663
8674
  }
8664
8675
 
8665
- .cds--data-table .cds--table-column-checkbox .cds--checkbox:focus + .cds--checkbox-label::before {
8666
- outline-offset: 0.375rem;
8667
- }
8668
-
8669
- .cds--data-table--compact .cds--table-column-checkbox .cds--checkbox:focus + .cds--checkbox-label::before,
8670
- .cds--data-table--xs .cds--table-column-checkbox .cds--checkbox:focus + .cds--checkbox-label::before {
8671
- outline-offset: 0.125rem;
8672
- }
8673
-
8674
8676
  .cds--data-table thead th.cds--table-column-checkbox,
8675
8677
  .cds--data-table tbody td.cds--table-column-checkbox,
8676
8678
  .cds--data-table thead th.cds--table-expand,
@@ -11156,6 +11158,12 @@ th .cds--table-sort__flex {
11156
11158
  justify-content: space-between;
11157
11159
  }
11158
11160
 
11161
+ .cds--date-picker-container .cds--label {
11162
+ display: -webkit-box;
11163
+ display: -ms-flexbox;
11164
+ display: flex;
11165
+ }
11166
+
11159
11167
  .cds--date-picker-input__wrapper {
11160
11168
  position: relative;
11161
11169
  display: -webkit-box;
@@ -12743,6 +12751,263 @@ button.cds--dropdown-text:focus {
12743
12751
  right: 1rem;
12744
12752
  }
12745
12753
 
12754
+ .cds--date-picker--fluid {
12755
+ display: -webkit-inline-box;
12756
+ display: -ms-inline-flexbox;
12757
+ display: inline-flex;
12758
+ background: var(--cds-field);
12759
+ }
12760
+
12761
+ .cds--date-picker--fluid .cds--date-picker {
12762
+ position: relative;
12763
+ width: 100%;
12764
+ height: 100%;
12765
+ -webkit-transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9), outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
12766
+ transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9), outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
12767
+ }
12768
+
12769
+ .cds--date-picker--fluid .cds--label {
12770
+ position: absolute;
12771
+ z-index: 1;
12772
+ top: 0.8125rem;
12773
+ left: 1rem;
12774
+ display: -webkit-box;
12775
+ display: -ms-flexbox;
12776
+ display: flex;
12777
+ height: 1rem;
12778
+ -webkit-box-align: center;
12779
+ -ms-flex-align: center;
12780
+ align-items: center;
12781
+ margin: 0;
12782
+ }
12783
+
12784
+ .cds--date-picker--fluid .cds--date-picker-input__wrapper .cds--date-picker__input {
12785
+ min-width: 9rem;
12786
+ min-height: 4rem;
12787
+ padding: 2rem 1rem 0.8125rem;
12788
+ border-bottom: none;
12789
+ background: transparent;
12790
+ }
12791
+
12792
+ .cds--date-picker--fluid .cds--date-picker--simple .cds--date-picker__icon {
12793
+ display: none;
12794
+ }
12795
+
12796
+ .cds--date-picker--fluid .cds--date-picker--simple .cds--date-picker__input:not(.cds--date-picker__input--invalid):not(.cds--date-picker__input--warn),
12797
+ .cds--date-picker--fluid .cds--date-picker--simple .cds--date-picker--fluid--warn {
12798
+ border-bottom: 1px solid var(--cds-border-strong);
12799
+ }
12800
+
12801
+ .cds--date-picker--fluid .cds--date-picker__icon {
12802
+ top: 2.6875rem;
12803
+ }
12804
+
12805
+ .cds--date-picker--fluid .cds--date-picker--single .cds--date-picker__input {
12806
+ width: 100%;
12807
+ }
12808
+
12809
+ .cds--date-picker--fluid .cds--date-picker--single {
12810
+ border-bottom: none;
12811
+ }
12812
+
12813
+ .cds--date-picker--fluid .cds--date-picker--single .cds--date-picker__input:not(.cds--date-picker__input--invalid),
12814
+ .cds--date-picker--single .cds--date-picker--fluid--warn {
12815
+ border-bottom: 1px solid var(--cds-border-strong);
12816
+ }
12817
+
12818
+ .cds--date-picker--fluid:not(.cds--date-picker--fluid--invalid):not(.cds--date-picker--fluid--warn) .cds--date-picker--range .cds--date-picker-container:not(.cds--date-picker--fluid--invalid) {
12819
+ border-bottom: 1px solid var(--cds-border-strong);
12820
+ }
12821
+
12822
+ .cds--date-picker--fluid .cds--date-picker--range .cds--date-picker__input,
12823
+ .cds--date-picker--fluid .cds--date-picker--range .cds--date-picker-container {
12824
+ width: 100%;
12825
+ min-width: 9rem;
12826
+ min-height: 3.9375rem;
12827
+ }
12828
+
12829
+ .cds--date-picker--fluid .cds--date-picker--range > .cds--date-picker-container:first-child {
12830
+ margin-right: 0;
12831
+ }
12832
+
12833
+ .cds--date-picker--fluid .cds--date-picker--range > .cds--date-picker-container:last-child .cds--date-picker__input {
12834
+ border-left: 1px solid var(--cds-border-strong);
12835
+ }
12836
+
12837
+ .cds--date-picker--fluid.cds--date-picker--fluid--invalid,
12838
+ .cds--date-picker-container.cds--date-picker--fluid--invalid {
12839
+ outline: 2px solid var(--cds-support-error, #da1e28);
12840
+ outline-offset: -2px;
12841
+ }
12842
+ @media screen and (prefers-contrast) {
12843
+ .cds--date-picker--fluid.cds--date-picker--fluid--invalid,
12844
+ .cds--date-picker-container.cds--date-picker--fluid--invalid {
12845
+ outline-style: dotted;
12846
+ }
12847
+ }
12848
+
12849
+ .cds--date-picker--fluid .cds--date-picker-container.cds--date-picker--fluid--invalid .cds--date-picker__input--invalid {
12850
+ outline: none;
12851
+ }
12852
+
12853
+ .cds--date-picker--fluid .cds--date-picker-container:last-child.cds--date-picker--fluid--invalid .cds--date-picker__input--invalid,
12854
+ .cds--date-picker--fluid .cds--date-picker-container.cds--date-picker--fluid--invalid + .cds--date-picker-container .cds--date-picker__input {
12855
+ border-left: none;
12856
+ }
12857
+
12858
+ .cds--date-picker-container.cds--date-picker--fluid--invalid .cds--form-requirement,
12859
+ .cds--date-picker-container.cds--date-picker--fluid--warn .cds--form-requirement {
12860
+ padding: 0.5rem 2.5rem 0.5rem 1rem;
12861
+ margin: 0;
12862
+ }
12863
+
12864
+ .cds--date-picker-container.cds--date-picker--fluid--invalid .cds--date-picker--fluid.cds--date-picker--fluid--invalid .cds--date-picker,
12865
+ .cds--date-picker--fluid.cds--date-picker--fluid--invalid .cds--date-picker,
12866
+ .cds--date-picker--fluid .cds--date-picker--single .cds--date-picker--fluid--warn .cds--date-picker__input,
12867
+ .cds--date-picker--fluid.cds--date-picker--fluid--warn .cds--date-picker--range .cds--date-picker-container {
12868
+ border-bottom: 1px solid transparent;
12869
+ }
12870
+
12871
+ .cds--date-picker--fluid.cds--date-picker--fluid--invalid .cds--date-picker--range > .cds--date-picker-container:last-child .cds--date-picker__input,
12872
+ .cds--date-picker--fluid.cds--date-picker--fluid--warn .cds--date-picker--range > .cds--date-picker-container:last-child .cds--date-picker__input,
12873
+ .cds--date-picker--fluid .cds--date-picker--fluid--warn + .cds--date-picker-container:last-child .cds--date-picker__input,
12874
+ .cds--date-picker--fluid .cds--date-picker--fluid--warn.cds--date-picker-container:last-child .cds--date-picker__input {
12875
+ border-left: 1px solid transparent;
12876
+ }
12877
+
12878
+ .cds--date-picker--fluid.cds--date-picker--fluid--invalid .cds--date-picker--range > .cds--date-picker-container:first-child::after,
12879
+ .cds--date-picker--fluid.cds--date-picker--fluid--warn .cds--date-picker--range > .cds--date-picker-container:first-child::after,
12880
+ .cds--date-picker--fluid .cds--date-picker--range .cds--date-picker--fluid--warn.cds--date-picker-container:first-child::after,
12881
+ .cds--date-picker--fluid .cds--date-picker--range .cds--date-picker--fluid--warn.cds--date-picker-container:last-child::after {
12882
+ position: absolute;
12883
+ top: 0.5rem;
12884
+ right: 0;
12885
+ display: block;
12886
+ width: 1px;
12887
+ height: calc(100% - 1rem);
12888
+ background: var(--cds-border-strong);
12889
+ content: "";
12890
+ }
12891
+
12892
+ .cds--date-picker--fluid .cds--date-picker--fluid--warn.cds--date-picker-container:last-child::after {
12893
+ left: 0;
12894
+ }
12895
+
12896
+ .cds--date-picker--fluid .cds--date-picker__divider {
12897
+ width: calc(100% - 2rem);
12898
+ border-style: solid;
12899
+ border-color: var(--cds-border-subtle);
12900
+ border-bottom: none;
12901
+ margin: 0 1rem;
12902
+ }
12903
+
12904
+ .cds--date-picker-container.cds--date-picker--fluid--invalid .cds--date-picker__icon--invalid,
12905
+ .cds--date-picker-container.cds--date-picker--fluid--warn .cds--date-picker__icon--warn {
12906
+ top: 5rem;
12907
+ }
12908
+
12909
+ .cds--date-picker--fluid .cds--date-picker--simple .cds--date-picker--fluid--invalid .cds--date-picker__icon--invalid,
12910
+ .cds--date-picker--fluid .cds--date-picker--simple .cds--date-picker--fluid--warn .cds--date-picker__icon--warn {
12911
+ display: block;
12912
+ }
12913
+
12914
+ .cds--date-picker-container.cds--date-picker--fluid--invalid .cds--date-picker__input:focus {
12915
+ outline: 2px solid var(--cds-focus, #0f62fe);
12916
+ outline-offset: -2px;
12917
+ }
12918
+ @media screen and (prefers-contrast) {
12919
+ .cds--date-picker-container.cds--date-picker--fluid--invalid .cds--date-picker__input:focus {
12920
+ outline-style: dotted;
12921
+ }
12922
+ }
12923
+
12924
+ .cds--date-picker--fluid.cds--date-picker--fluid--invalid .cds--date-picker--range ~ .cds--form-requirement,
12925
+ .cds--date-picker--fluid.cds--date-picker--fluid--warn .cds--date-picker--range ~ .cds--form-requirement {
12926
+ display: block;
12927
+ overflow: visible;
12928
+ max-height: 100%;
12929
+ padding: 0.5rem 2.5rem 0.5rem 1rem;
12930
+ margin-top: 0;
12931
+ }
12932
+
12933
+ .cds--date-picker--fluid.cds--date-picker--fluid--invalid .cds--date-picker--range ~ .cds--form-requirement {
12934
+ color: var(--cds-text-error, #da1e28);
12935
+ }
12936
+
12937
+ .cds--date-picker--fluid.cds--date-picker--fluid--invalid,
12938
+ .cds--date-picker--fluid.cds--date-picker--fluid--warn {
12939
+ position: relative;
12940
+ }
12941
+
12942
+ .cds--date-picker--fluid.cds--date-picker--fluid--invalid .cds--date-picker--range + .cds--date-picker__icon,
12943
+ .cds--date-picker--fluid.cds--date-picker--fluid--warn .cds--date-picker--range + .cds--date-picker__icon {
12944
+ top: 5rem;
12945
+ }
12946
+
12947
+ .cds--date-picker--fluid__skeleton {
12948
+ height: 4rem;
12949
+ border-bottom: 1px solid var(--cds-skeleton-element, #c6c6c6);
12950
+ background: var(--cds-skeleton-background, #e8e8e8);
12951
+ }
12952
+
12953
+ .cds--date-picker--fluid__skeleton--container {
12954
+ position: relative;
12955
+ width: 100%;
12956
+ height: 4rem;
12957
+ padding: 0.8125rem 2.5rem 0.8125rem 1rem;
12958
+ }
12959
+
12960
+ .cds--date-picker--fluid__skeleton .cds--skeleton {
12961
+ height: 1rem;
12962
+ }
12963
+
12964
+ .cds--date-picker--fluid__skeleton .cds--label {
12965
+ margin-bottom: 0.25rem;
12966
+ }
12967
+
12968
+ .cds--date-picker--fluid__skeleton .cds--text-input {
12969
+ width: 80%;
12970
+ height: 1.125rem;
12971
+ }
12972
+
12973
+ .cds--date-picker--fluid__skeleton--container .cds--date-picker__icon {
12974
+ top: auto;
12975
+ bottom: 0.125rem;
12976
+ }
12977
+
12978
+ .cds--date-picker--fluid__skeleton--range {
12979
+ display: -webkit-box;
12980
+ display: -ms-flexbox;
12981
+ display: flex;
12982
+ -webkit-box-orient: horizontal;
12983
+ -webkit-box-direction: normal;
12984
+ -ms-flex-direction: row;
12985
+ flex-direction: row;
12986
+ }
12987
+
12988
+ .cds--date-picker--fluid__skeleton--range .cds--date-picker--fluid__skeleton--container {
12989
+ display: -webkit-box;
12990
+ display: -ms-flexbox;
12991
+ display: flex;
12992
+ width: 50%;
12993
+ -webkit-box-orient: vertical;
12994
+ -webkit-box-direction: normal;
12995
+ -ms-flex-direction: column;
12996
+ flex-direction: column;
12997
+ }
12998
+
12999
+ .cds--date-picker--fluid__skeleton--range .cds--date-picker--fluid__skeleton--container:first-of-type {
13000
+ border-right: 1px solid var(--cds-skeleton-element, #c6c6c6);
13001
+ }
13002
+
13003
+ .cds--date-picker--fluid__skeleton--range .cds--text-input {
13004
+ width: 100%;
13005
+ }
13006
+
13007
+ .cds--date-picker--fluid__skeleton--range .cds--date-picker--fluid__skeleton--container .cds--date-picker__icon {
13008
+ bottom: 0.3125rem;
13009
+ }
13010
+
12746
13011
  .cds--list-box__wrapper--fluid .cds--multi-select--filterable--input-focused {
12747
13012
  outline: none;
12748
13013
  outline-offset: 0;
@@ -13216,7 +13481,7 @@ optgroup.cds--select-optgroup:disabled,
13216
13481
 
13217
13482
  .cds--text-area--fluid .cds--text-area--invalid,
13218
13483
  .cds--text-area--fluid .cds--text-area:focus {
13219
- border-bottom: none;
13484
+ border-bottom: 1px solid transparent;
13220
13485
  }
13221
13486
 
13222
13487
  .cds--text-area__divider,
@@ -14251,6 +14516,36 @@ optgroup.cds--select-optgroup:disabled,
14251
14516
  visibility: hidden;
14252
14517
  }
14253
14518
 
14519
+ .cds--multi-select.cds--multi-select--readonly,
14520
+ .cds--multi-select.cds--multi-select--readonly:hover {
14521
+ background-color: transparent;
14522
+ }
14523
+
14524
+ .cds--multi-select.cds--multi-select--readonly .cds--list-box__menu-icon svg {
14525
+ fill: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
14526
+ }
14527
+
14528
+ .cds--multi-select.cds--multi-select--readonly .cds--tag--filter,
14529
+ .cds--multi-select.cds--multi-select--readonly .cds--tag__close-icon:hover {
14530
+ background-color: transparent;
14531
+ color: var(--cds-text-primary, #161616);
14532
+ cursor: default;
14533
+ }
14534
+
14535
+ .cds--multi-select.cds--multi-select--readonly .cds--tag--filter {
14536
+ -webkit-box-shadow: 0 0 0 1px var(--cds-background-inverse, #393939);
14537
+ box-shadow: 0 0 0 1px var(--cds-background-inverse, #393939);
14538
+ }
14539
+
14540
+ .cds--multi-select.cds--multi-select--readonly .cds--tag--filter svg {
14541
+ fill: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
14542
+ }
14543
+
14544
+ .cds--multi-select.cds--multi-select--readonly .cds--list-box__field,
14545
+ .cds--multi-select.cds--multi-select--readonly .cds--list-box__menu-icon {
14546
+ cursor: default;
14547
+ }
14548
+
14254
14549
  .cds--inline-notification {
14255
14550
  position: relative;
14256
14551
  display: -webkit-box;
@@ -19874,7 +20169,6 @@ span.cds--pagination__text.cds--pagination__items-count {
19874
20169
  letter-spacing: var(--cds-body-01-letter-spacing, 0.16px);
19875
20170
  outline: 2px solid transparent;
19876
20171
  outline-offset: -2px;
19877
- width: 100%;
19878
20172
  min-width: 10rem;
19879
20173
  height: 100%;
19880
20174
  min-height: 2.5rem;
@@ -20024,6 +20318,7 @@ span.cds--pagination__text.cds--pagination__items-count {
20024
20318
  -webkit-box-shadow: none;
20025
20319
  box-shadow: none;
20026
20320
  pointer-events: none;
20321
+ width: 100%;
20027
20322
  height: 6.25rem;
20028
20323
  }
20029
20324
  .cds--text-area.cds--skeleton:hover, .cds--text-area.cds--skeleton:focus, .cds--text-area.cds--skeleton:active {