@carbon/styles 1.39.0 → 1.40.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 +92 -30
- package/css/styles.min.css +1 -1
- package/package.json +2 -2
- package/scss/components/accordion/_accordion.scss +5 -15
- package/scss/components/file-uploader/_file-uploader.scss +68 -5
- package/scss/components/list-box/_list-box.scss +1 -1
- package/scss/components/modal/_modal.scss +20 -8
package/css/styles.css
CHANGED
|
@@ -3536,29 +3536,13 @@ em {
|
|
|
3536
3536
|
.cds--accordion__heading::-moz-focus-inner {
|
|
3537
3537
|
border: 0;
|
|
3538
3538
|
}
|
|
3539
|
-
.cds--accordion__heading:hover
|
|
3540
|
-
position: absolute;
|
|
3541
|
-
block-size: calc(100% + 2px);
|
|
3542
|
-
content: "";
|
|
3543
|
-
inline-size: 100%;
|
|
3544
|
-
inset-block-start: -1px;
|
|
3545
|
-
inset-inline-start: 0;
|
|
3546
|
-
}
|
|
3547
|
-
.cds--accordion__heading:hover::before {
|
|
3539
|
+
.cds--accordion__heading:hover {
|
|
3548
3540
|
background-color: var(--cds-layer-hover);
|
|
3549
3541
|
}
|
|
3550
3542
|
.cds--accordion__heading:focus {
|
|
3543
|
+
box-shadow: 0 -1px 0 0 var(--cds-focus, #0f62fe), inset 0 1px 0 0 var(--cds-focus, #0f62fe), inset 2px 0 0 0 var(--cds-focus, #0f62fe), 0 1px 0 0 var(--cds-focus, #0f62fe), inset 0 -1px 0 0 var(--cds-focus, #0f62fe), inset -2px 0 0 0 var(--cds-focus, #0f62fe);
|
|
3551
3544
|
outline: none;
|
|
3552
3545
|
}
|
|
3553
|
-
.cds--accordion__heading:focus::before {
|
|
3554
|
-
box-sizing: border-box;
|
|
3555
|
-
border: 2px solid var(--cds-focus, #0f62fe);
|
|
3556
|
-
}
|
|
3557
|
-
@media screen and (prefers-contrast) {
|
|
3558
|
-
.cds--accordion__heading:focus::before {
|
|
3559
|
-
border-style: dotted;
|
|
3560
|
-
}
|
|
3561
|
-
}
|
|
3562
3546
|
|
|
3563
3547
|
.cds--accordion__heading[disabled] {
|
|
3564
3548
|
color: var(--cds-text-disabled, rgba(22, 22, 22, 0.25));
|
|
@@ -8111,7 +8095,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
8111
8095
|
block-size: 1.5rem;
|
|
8112
8096
|
cursor: pointer;
|
|
8113
8097
|
inline-size: 1.5rem;
|
|
8114
|
-
inset-inline-end:
|
|
8098
|
+
inset-inline-end: 0.75rem;
|
|
8115
8099
|
outline: none;
|
|
8116
8100
|
transition: transform 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
|
|
8117
8101
|
}
|
|
@@ -13691,7 +13675,7 @@ button.cds--dropdown-text:focus {
|
|
|
13691
13675
|
display: grid;
|
|
13692
13676
|
align-items: center;
|
|
13693
13677
|
background-color: var(--cds-layer);
|
|
13694
|
-
gap: 0.75rem
|
|
13678
|
+
gap: 0.75rem 0;
|
|
13695
13679
|
grid-auto-rows: auto;
|
|
13696
13680
|
grid-template-columns: 1fr auto;
|
|
13697
13681
|
margin-block-end: 0.5rem;
|
|
@@ -13721,14 +13705,69 @@ button.cds--dropdown-text:focus {
|
|
|
13721
13705
|
text-overflow: ellipsis;
|
|
13722
13706
|
white-space: nowrap;
|
|
13723
13707
|
}
|
|
13708
|
+
.cds--file__selected-file .cds--file-filename-container-wrap {
|
|
13709
|
+
margin-block-start: 1px;
|
|
13710
|
+
max-inline-size: 17.5rem;
|
|
13711
|
+
padding-inline-start: 1rem;
|
|
13712
|
+
}
|
|
13713
|
+
@media (max-width: 410px) {
|
|
13714
|
+
.cds--file__selected-file .cds--file-filename-container-wrap {
|
|
13715
|
+
max-inline-size: 13.5rem;
|
|
13716
|
+
}
|
|
13717
|
+
}
|
|
13718
|
+
.cds--file__selected-file .cds--file-filename-container-wrap-invalid {
|
|
13719
|
+
max-inline-size: 15.5rem;
|
|
13720
|
+
}
|
|
13721
|
+
.cds--file__selected-file .cds--file-filename-container-wrap-invalid .cds--file-filename-tooltip {
|
|
13722
|
+
inline-size: -webkit-fill-available;
|
|
13723
|
+
padding-inline-start: 1rem;
|
|
13724
|
+
}
|
|
13725
|
+
@-moz-document url-prefix() {
|
|
13726
|
+
.cds--file__selected-file .cds--file-filename-container-wrap-invalid .cds--file-filename-tooltip {
|
|
13727
|
+
inline-size: -moz-available;
|
|
13728
|
+
}
|
|
13729
|
+
}
|
|
13730
|
+
.cds--file__selected-file .cds--file-filename-tooltip {
|
|
13731
|
+
inline-size: -webkit-fill-available;
|
|
13732
|
+
}
|
|
13733
|
+
@-moz-document url-prefix() {
|
|
13734
|
+
.cds--file__selected-file .cds--file-filename-tooltip {
|
|
13735
|
+
inline-size: -moz-available;
|
|
13736
|
+
}
|
|
13737
|
+
}
|
|
13738
|
+
.cds--file__selected-file .cds--file-filename-button {
|
|
13739
|
+
font-size: var(--cds-body-compact-01-font-size, 0.875rem);
|
|
13740
|
+
font-weight: var(--cds-body-compact-01-font-weight, 400);
|
|
13741
|
+
line-height: var(--cds-body-compact-01-line-height, 1.28572);
|
|
13742
|
+
letter-spacing: var(--cds-body-compact-01-letter-spacing, 0.16px);
|
|
13743
|
+
overflow: hidden;
|
|
13744
|
+
padding: 0;
|
|
13745
|
+
border: none;
|
|
13746
|
+
background: none;
|
|
13747
|
+
color: inherit;
|
|
13748
|
+
cursor: pointer;
|
|
13749
|
+
font: inherit;
|
|
13750
|
+
inline-size: -webkit-fill-available;
|
|
13751
|
+
outline: inherit;
|
|
13752
|
+
text-overflow: ellipsis;
|
|
13753
|
+
white-space: nowrap;
|
|
13754
|
+
}
|
|
13755
|
+
@-moz-document url-prefix() {
|
|
13756
|
+
.cds--file__selected-file .cds--file-filename-button {
|
|
13757
|
+
inline-size: -moz-available;
|
|
13758
|
+
}
|
|
13759
|
+
}
|
|
13760
|
+
.cds--file__selected-file .cds--file-filename-button:focus {
|
|
13761
|
+
outline: revert;
|
|
13762
|
+
}
|
|
13724
13763
|
|
|
13725
13764
|
.cds--file__selected-file--md {
|
|
13726
|
-
gap: 0.5rem
|
|
13765
|
+
gap: 0.5rem 0;
|
|
13727
13766
|
min-block-size: 2.5rem;
|
|
13728
13767
|
}
|
|
13729
13768
|
|
|
13730
13769
|
.cds--file__selected-file--sm {
|
|
13731
|
-
gap: 0.25rem
|
|
13770
|
+
gap: 0.25rem 0;
|
|
13732
13771
|
min-block-size: 2rem;
|
|
13733
13772
|
}
|
|
13734
13773
|
|
|
@@ -13818,14 +13857,26 @@ button.cds--dropdown-text:focus {
|
|
|
13818
13857
|
align-items: center;
|
|
13819
13858
|
justify-content: center;
|
|
13820
13859
|
min-inline-size: 1.5rem;
|
|
13821
|
-
padding-inline-end:
|
|
13860
|
+
padding-inline-end: 0.75rem;
|
|
13822
13861
|
}
|
|
13823
13862
|
.cds--file__state-container .cds--loading__svg {
|
|
13824
13863
|
stroke: var(--cds-icon-primary, #161616);
|
|
13825
13864
|
}
|
|
13826
13865
|
|
|
13866
|
+
.cds--file__state-container .cds--file-loading {
|
|
13867
|
+
display: flex;
|
|
13868
|
+
align-items: center;
|
|
13869
|
+
justify-content: center;
|
|
13870
|
+
padding: 0.25rem;
|
|
13871
|
+
border: none;
|
|
13872
|
+
background-color: transparent;
|
|
13873
|
+
block-size: 1rem;
|
|
13874
|
+
inline-size: 1.5rem;
|
|
13875
|
+
}
|
|
13876
|
+
|
|
13827
13877
|
.cds--file__state-container .cds--file-complete {
|
|
13828
13878
|
fill: var(--cds-interactive, #0f62fe);
|
|
13879
|
+
inline-size: 1.5rem;
|
|
13829
13880
|
}
|
|
13830
13881
|
.cds--file__state-container .cds--file-complete:focus {
|
|
13831
13882
|
outline: 1px solid var(--cds-focus, #0f62fe);
|
|
@@ -16756,8 +16807,8 @@ optgroup.cds--select-optgroup:disabled,
|
|
|
16756
16807
|
font-weight: 400;
|
|
16757
16808
|
grid-column: 1/-1;
|
|
16758
16809
|
grid-row: 2/-2;
|
|
16759
|
-
margin-block-end: 3rem;
|
|
16760
16810
|
overflow-y: auto;
|
|
16811
|
+
padding-block-end: 3rem;
|
|
16761
16812
|
padding-block-start: 0.5rem;
|
|
16762
16813
|
padding-inline-end: 1rem;
|
|
16763
16814
|
padding-inline-start: 1rem;
|
|
@@ -16908,20 +16959,32 @@ optgroup.cds--select-optgroup:disabled,
|
|
|
16908
16959
|
}
|
|
16909
16960
|
}
|
|
16910
16961
|
|
|
16962
|
+
.cds--modal-scroll-content {
|
|
16963
|
+
border-block-end: 2px solid transparent;
|
|
16964
|
+
}
|
|
16965
|
+
|
|
16911
16966
|
.cds--modal-scroll-content > *:last-child {
|
|
16912
|
-
padding-block-end:
|
|
16967
|
+
padding-block-end: 1.5rem;
|
|
16913
16968
|
}
|
|
16914
16969
|
|
|
16915
16970
|
.cds--modal-content--overflow-indicator {
|
|
16971
|
+
position: absolute;
|
|
16972
|
+
background: var(--cds-layer);
|
|
16973
|
+
block-size: 3rem;
|
|
16974
|
+
grid-column: 1/-1;
|
|
16975
|
+
grid-row: 2/-2;
|
|
16976
|
+
inline-size: calc(100% - 1rem);
|
|
16977
|
+
inset-block-end: 0;
|
|
16978
|
+
inset-inline-start: 0;
|
|
16979
|
+
pointer-events: none;
|
|
16980
|
+
}
|
|
16981
|
+
.cds--modal-content--overflow-indicator::before {
|
|
16916
16982
|
position: absolute;
|
|
16917
16983
|
background-image: linear-gradient(to bottom, transparent, var(--cds-layer));
|
|
16918
16984
|
block-size: 2rem;
|
|
16919
16985
|
content: "";
|
|
16920
|
-
grid-column: 1/-1;
|
|
16921
|
-
grid-row: 2/-2;
|
|
16922
16986
|
inline-size: 100%;
|
|
16923
|
-
inset-block-
|
|
16924
|
-
inset-inline-start: 0;
|
|
16987
|
+
inset-block-start: -32px;
|
|
16925
16988
|
pointer-events: none;
|
|
16926
16989
|
}
|
|
16927
16990
|
|
|
@@ -16934,7 +16997,6 @@ optgroup.cds--select-optgroup:disabled,
|
|
|
16934
16997
|
}
|
|
16935
16998
|
.cds--modal-content:focus ~ .cds--modal-content--overflow-indicator {
|
|
16936
16999
|
margin: 0 2px 2px;
|
|
16937
|
-
inline-size: calc(100% - 4px);
|
|
16938
17000
|
}
|
|
16939
17001
|
|
|
16940
17002
|
@media screen and (-ms-high-contrast: active) {
|