@carbon/styles 1.17.0 → 1.18.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 +191 -12
- package/css/styles.min.css +1 -1
- package/package.json +9 -9
- package/scss/components/checkbox/_checkbox.scss +31 -0
- package/scss/components/code-snippet/_code-snippet.scss +4 -3
- package/scss/components/contained-list/_contained-list.scss +31 -2
- package/scss/components/date-picker/_date-picker.scss +10 -0
- package/scss/components/number-input/_number-input.scss +29 -5
- package/scss/components/overflow-menu/_overflow-menu.scss +1 -1
- package/scss/components/pagination/_pagination.scss +11 -3
- package/scss/components/radio-button/_radio-button.scss +18 -0
- package/scss/components/select/_select.scss +10 -0
- package/scss/components/slider/_slider.scss +14 -0
- package/scss/components/tabs/_tabs.scss +4 -0
- package/scss/components/time-picker/_time-picker.scss +16 -0
- package/scss/components/toggle/_toggle.scss +33 -0
package/css/styles.css
CHANGED
|
@@ -5293,6 +5293,31 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
5293
5293
|
background-color: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
5294
5294
|
}
|
|
5295
5295
|
|
|
5296
|
+
.cds--checkbox-wrapper--readonly .cds--checkbox-label {
|
|
5297
|
+
cursor: default;
|
|
5298
|
+
}
|
|
5299
|
+
|
|
5300
|
+
.cds--checkbox-wrapper--readonly .cds--checkbox-label-text {
|
|
5301
|
+
cursor: text;
|
|
5302
|
+
-webkit-user-select: text;
|
|
5303
|
+
-moz-user-select: text;
|
|
5304
|
+
-ms-user-select: text;
|
|
5305
|
+
user-select: text;
|
|
5306
|
+
}
|
|
5307
|
+
|
|
5308
|
+
.cds--checkbox-wrapper--readonly .cds--checkbox + .cds--checkbox-label::before {
|
|
5309
|
+
border-color: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
5310
|
+
}
|
|
5311
|
+
|
|
5312
|
+
.cds--checkbox-wrapper--readonly .cds--checkbox:checked + .cds--checkbox-label::before {
|
|
5313
|
+
border: 1px solid var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
5314
|
+
background: transparent;
|
|
5315
|
+
}
|
|
5316
|
+
|
|
5317
|
+
.cds--checkbox-wrapper--readonly .cds--checkbox:checked + .cds--checkbox-label::after {
|
|
5318
|
+
border-color: var(--cds-text-primary, #161616);
|
|
5319
|
+
}
|
|
5320
|
+
|
|
5296
5321
|
.cds--checkbox-skeleton .cds--checkbox-label {
|
|
5297
5322
|
cursor: default;
|
|
5298
5323
|
}
|
|
@@ -5751,14 +5776,14 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
5751
5776
|
overflow-x: auto;
|
|
5752
5777
|
}
|
|
5753
5778
|
|
|
5754
|
-
.cds--snippet--multi .cds--snippet-container pre::after {
|
|
5779
|
+
.cds--snippet--multi.cds--snippet--has-right-overflow .cds--snippet-container pre::after {
|
|
5755
5780
|
position: absolute;
|
|
5756
5781
|
top: 0;
|
|
5757
5782
|
right: 0;
|
|
5758
5783
|
width: 1rem;
|
|
5759
5784
|
height: 100%;
|
|
5760
|
-
background-image: -webkit-gradient(linear, left top, right top, from(
|
|
5761
|
-
background-image: linear-gradient(to right,
|
|
5785
|
+
background-image: -webkit-gradient(linear, left top, right top, from(transparent), to(var(--cds-layer)));
|
|
5786
|
+
background-image: linear-gradient(to right, transparent, var(--cds-layer));
|
|
5762
5787
|
content: "";
|
|
5763
5788
|
}
|
|
5764
5789
|
|
|
@@ -8027,6 +8052,46 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
8027
8052
|
width: 100%;
|
|
8028
8053
|
}
|
|
8029
8054
|
|
|
8055
|
+
.cds--contained-list--on-page.cds--contained-list--sm .cds--contained-list__header {
|
|
8056
|
+
height: 2rem;
|
|
8057
|
+
}
|
|
8058
|
+
|
|
8059
|
+
.cds--contained-list--sm .cds--contained-list-item__content,
|
|
8060
|
+
.cds--contained-list--sm .cds--contained-list-item--clickable .cds--contained-list-item__content {
|
|
8061
|
+
min-height: 2rem;
|
|
8062
|
+
padding: calc(0.5rem - 0.125rem) 1rem;
|
|
8063
|
+
}
|
|
8064
|
+
|
|
8065
|
+
.cds--contained-list--on-page.cds--contained-list--md .cds--contained-list__header {
|
|
8066
|
+
height: 2.5rem;
|
|
8067
|
+
}
|
|
8068
|
+
|
|
8069
|
+
.cds--contained-list--md .cds--contained-list-item__content,
|
|
8070
|
+
.cds--contained-list--md .cds--contained-list-item--clickable .cds--contained-list-item__content {
|
|
8071
|
+
min-height: 2.5rem;
|
|
8072
|
+
padding: calc(0.75rem - 0.125rem) 1rem;
|
|
8073
|
+
}
|
|
8074
|
+
|
|
8075
|
+
.cds--contained-list--on-page.cds--contained-list--lg .cds--contained-list__header {
|
|
8076
|
+
height: 3rem;
|
|
8077
|
+
}
|
|
8078
|
+
|
|
8079
|
+
.cds--contained-list--lg .cds--contained-list-item__content,
|
|
8080
|
+
.cds--contained-list--lg .cds--contained-list-item--clickable .cds--contained-list-item__content {
|
|
8081
|
+
min-height: 3rem;
|
|
8082
|
+
padding: calc(1rem - 0.125rem) 1rem;
|
|
8083
|
+
}
|
|
8084
|
+
|
|
8085
|
+
.cds--contained-list--on-page.cds--contained-list--xl .cds--contained-list__header {
|
|
8086
|
+
height: 4rem;
|
|
8087
|
+
}
|
|
8088
|
+
|
|
8089
|
+
.cds--contained-list--xl .cds--contained-list-item__content,
|
|
8090
|
+
.cds--contained-list--xl .cds--contained-list-item--clickable .cds--contained-list-item__content {
|
|
8091
|
+
min-height: 4rem;
|
|
8092
|
+
padding: calc(1.5rem - 0.125rem) 1rem;
|
|
8093
|
+
}
|
|
8094
|
+
|
|
8030
8095
|
.cds--contained-list--on-page + .cds--contained-list--on-page {
|
|
8031
8096
|
-webkit-margin-before: 1rem;
|
|
8032
8097
|
margin-block-start: 1rem;
|
|
@@ -8037,7 +8102,6 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
8037
8102
|
font-weight: var(--cds-heading-compact-01-font-weight, 600);
|
|
8038
8103
|
line-height: var(--cds-heading-compact-01-line-height, 1.28572);
|
|
8039
8104
|
letter-spacing: var(--cds-heading-compact-01-letter-spacing, 0.16px);
|
|
8040
|
-
height: 3rem;
|
|
8041
8105
|
border-bottom: 1px solid var(--cds-border-subtle);
|
|
8042
8106
|
background-color: var(--cds-background, #ffffff);
|
|
8043
8107
|
color: var(--cds-text-primary, #161616);
|
|
@@ -8108,7 +8172,6 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
8108
8172
|
font-weight: var(--cds-body-01-font-weight, 400);
|
|
8109
8173
|
line-height: var(--cds-body-01-line-height, 1.42857);
|
|
8110
8174
|
letter-spacing: var(--cds-body-01-letter-spacing, 0.16px);
|
|
8111
|
-
padding: calc(1rem - 0.125rem) 1rem;
|
|
8112
8175
|
color: var(--cds-text-primary, #161616);
|
|
8113
8176
|
}
|
|
8114
8177
|
|
|
@@ -11423,6 +11486,15 @@ th .cds--table-sort__flex {
|
|
|
11423
11486
|
}
|
|
11424
11487
|
}
|
|
11425
11488
|
|
|
11489
|
+
.cds--date-picker__input[readonly] {
|
|
11490
|
+
background: transparent;
|
|
11491
|
+
cursor: text;
|
|
11492
|
+
}
|
|
11493
|
+
|
|
11494
|
+
.cds--date-picker__input[readonly] + .cds--date-picker__icon {
|
|
11495
|
+
fill: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
11496
|
+
}
|
|
11497
|
+
|
|
11426
11498
|
.cds--dropdown__wrapper--inline {
|
|
11427
11499
|
display: inline-grid;
|
|
11428
11500
|
-webkit-box-align: center;
|
|
@@ -13266,6 +13338,15 @@ optgroup.cds--select-optgroup:disabled,
|
|
|
13266
13338
|
cursor: not-allowed;
|
|
13267
13339
|
}
|
|
13268
13340
|
|
|
13341
|
+
.cds--select--readonly .cds--select-input {
|
|
13342
|
+
background-color: transparent;
|
|
13343
|
+
cursor: default;
|
|
13344
|
+
}
|
|
13345
|
+
|
|
13346
|
+
.cds--select--readonly .cds--select__arrow {
|
|
13347
|
+
fill: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
13348
|
+
}
|
|
13349
|
+
|
|
13269
13350
|
.cds--select.cds--skeleton {
|
|
13270
13351
|
position: relative;
|
|
13271
13352
|
padding: 0;
|
|
@@ -16151,13 +16232,29 @@ optgroup.cds--select-optgroup:disabled,
|
|
|
16151
16232
|
background: transparent;
|
|
16152
16233
|
}
|
|
16153
16234
|
|
|
16154
|
-
.cds--number--readonly .cds--
|
|
16155
|
-
|
|
16235
|
+
.cds--number--readonly .cds--number__control-btn {
|
|
16236
|
+
color: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
16237
|
+
pointer-events: none;
|
|
16238
|
+
}
|
|
16239
|
+
.cds--number--readonly .cds--number__control-btn:hover {
|
|
16240
|
+
background-color: transparent;
|
|
16241
|
+
cursor: pointer;
|
|
16242
|
+
}
|
|
16243
|
+
.cds--number--readonly .cds--number__control-btn:hover::before, .cds--number--readonly .cds--number__control-btn:hover::after {
|
|
16244
|
+
background-color: transparent;
|
|
16156
16245
|
}
|
|
16157
16246
|
|
|
16158
|
-
.cds--
|
|
16159
|
-
|
|
16160
|
-
|
|
16247
|
+
.cds--number--readonly input[type=number]:focus ~ .cds--number__controls .cds--number__control-btn:hover {
|
|
16248
|
+
outline: none;
|
|
16249
|
+
}
|
|
16250
|
+
|
|
16251
|
+
.cds--number--readonly .cds--number__control-btn::before,
|
|
16252
|
+
.cds--number--readonly .cds--number__control-btn::after {
|
|
16253
|
+
background: transparent;
|
|
16254
|
+
}
|
|
16255
|
+
|
|
16256
|
+
.cds--number--readonly .cds--number__controls:hover .cds--number__rule-divider:not(:first-of-type) {
|
|
16257
|
+
background-color: var(--cds-border-subtle);
|
|
16161
16258
|
}
|
|
16162
16259
|
|
|
16163
16260
|
.cds--number.cds--skeleton {
|
|
@@ -16302,7 +16399,7 @@ optgroup.cds--select-optgroup:disabled,
|
|
|
16302
16399
|
}
|
|
16303
16400
|
.cds--overflow-menu:hover,
|
|
16304
16401
|
.cds--overflow-menu__trigger:hover {
|
|
16305
|
-
background-color: var(--cds-
|
|
16402
|
+
background-color: var(--cds-layer-hover);
|
|
16306
16403
|
}
|
|
16307
16404
|
|
|
16308
16405
|
.cds--overflow-menu--sm {
|
|
@@ -16772,7 +16869,7 @@ a.cds--overflow-menu-options__btn::before {
|
|
|
16772
16869
|
border-right: 1px solid var(--cds-border-subtle);
|
|
16773
16870
|
}
|
|
16774
16871
|
|
|
16775
|
-
.cds--
|
|
16872
|
+
.cds--pagination__right {
|
|
16776
16873
|
border-left: 1px solid var(--cds-border-subtle);
|
|
16777
16874
|
}
|
|
16778
16875
|
|
|
@@ -16806,6 +16903,15 @@ a.cds--overflow-menu-options__btn::before {
|
|
|
16806
16903
|
margin-left: 0.0625rem;
|
|
16807
16904
|
}
|
|
16808
16905
|
|
|
16906
|
+
.cds--pagination__right .cds--pagination__text.cds--pagination__page-text {
|
|
16907
|
+
margin-right: 0.0625rem;
|
|
16908
|
+
margin-left: 1rem;
|
|
16909
|
+
}
|
|
16910
|
+
|
|
16911
|
+
.cds--pagination__right .cds--pagination__text:empty {
|
|
16912
|
+
margin: 0;
|
|
16913
|
+
}
|
|
16914
|
+
|
|
16809
16915
|
.cds--pagination__left {
|
|
16810
16916
|
padding: 0 1rem 0 0;
|
|
16811
16917
|
}
|
|
@@ -18407,6 +18513,22 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18407
18513
|
background-color: var(--cds-text-disabled, rgba(22, 22, 22, 0.25));
|
|
18408
18514
|
}
|
|
18409
18515
|
|
|
18516
|
+
.cds--radio-button-group--readonly .cds--radio-button + .cds--radio-button__label .cds--radio-button__appearance {
|
|
18517
|
+
border-color: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
18518
|
+
}
|
|
18519
|
+
|
|
18520
|
+
.cds--radio-button-group--readonly .cds--radio-button__label {
|
|
18521
|
+
cursor: default;
|
|
18522
|
+
}
|
|
18523
|
+
|
|
18524
|
+
.cds--radio-button-group--readonly .cds--radio-button__label-text {
|
|
18525
|
+
cursor: text;
|
|
18526
|
+
-webkit-user-select: text;
|
|
18527
|
+
-moz-user-select: text;
|
|
18528
|
+
-ms-user-select: text;
|
|
18529
|
+
user-select: text;
|
|
18530
|
+
}
|
|
18531
|
+
|
|
18410
18532
|
.cds--radio-button:focus + .cds--radio-button__label .cds--radio-button__appearance {
|
|
18411
18533
|
outline: 2px solid var(--cds-focus, #0f62fe);
|
|
18412
18534
|
outline-offset: 1.5px;
|
|
@@ -19324,6 +19446,19 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19324
19446
|
outline: none;
|
|
19325
19447
|
}
|
|
19326
19448
|
|
|
19449
|
+
.cds--slider--readonly {
|
|
19450
|
+
cursor: default;
|
|
19451
|
+
}
|
|
19452
|
+
|
|
19453
|
+
.cds--slider--readonly .cds--slider__thumb {
|
|
19454
|
+
width: 0;
|
|
19455
|
+
height: 0;
|
|
19456
|
+
}
|
|
19457
|
+
|
|
19458
|
+
.cds--slider--readonly ~ .cds--slider-text-input {
|
|
19459
|
+
background-color: transparent;
|
|
19460
|
+
}
|
|
19461
|
+
|
|
19327
19462
|
.cds--slider-container.cds--skeleton .cds--slider__range-label {
|
|
19328
19463
|
position: relative;
|
|
19329
19464
|
padding: 0;
|
|
@@ -19981,6 +20116,9 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19981
20116
|
border-bottom: 0;
|
|
19982
20117
|
line-height: calc(3rem - (0.5rem * 2));
|
|
19983
20118
|
}
|
|
20119
|
+
.cds--tabs.cds--tabs__icon--default .cds--tab--list, .cds--tabs.cds--tabs__icon--lg .cds--tab--list {
|
|
20120
|
+
overflow-x: visible;
|
|
20121
|
+
}
|
|
19984
20122
|
.cds--tabs .cds--tabs__nav-item--icon, .cds--tabs.cds--tabs--contained .cds--tabs__nav-item--icon {
|
|
19985
20123
|
display: -webkit-box;
|
|
19986
20124
|
display: -ms-flexbox;
|
|
@@ -20841,6 +20979,19 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
20841
20979
|
max-height: 3rem;
|
|
20842
20980
|
}
|
|
20843
20981
|
|
|
20982
|
+
.cds--time-picker--readonly .cds--time-picker__input-field {
|
|
20983
|
+
background-color: transparent;
|
|
20984
|
+
}
|
|
20985
|
+
|
|
20986
|
+
.cds--time-picker--readonly .cds--select-input {
|
|
20987
|
+
background-color: transparent;
|
|
20988
|
+
cursor: default;
|
|
20989
|
+
}
|
|
20990
|
+
|
|
20991
|
+
.cds--time-picker--readonly .cds--select-input + .cds--select__arrow {
|
|
20992
|
+
fill: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
20993
|
+
}
|
|
20994
|
+
|
|
20844
20995
|
.cds--toggletip-label {
|
|
20845
20996
|
font-size: var(--cds-label-01-font-size, 0.75rem);
|
|
20846
20997
|
font-weight: var(--cds-label-01-font-weight, 400);
|
|
@@ -21085,6 +21236,34 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
21085
21236
|
fill: var(--cds-button-disabled, #c6c6c6);
|
|
21086
21237
|
}
|
|
21087
21238
|
|
|
21239
|
+
.cds--toggle--readonly .cds--toggle__appearance {
|
|
21240
|
+
cursor: default;
|
|
21241
|
+
}
|
|
21242
|
+
|
|
21243
|
+
.cds--toggle--readonly .cds--toggle__switch {
|
|
21244
|
+
border: 1px solid var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
21245
|
+
background-color: transparent;
|
|
21246
|
+
}
|
|
21247
|
+
.cds--toggle--readonly .cds--toggle__switch::before {
|
|
21248
|
+
top: 0.125rem;
|
|
21249
|
+
left: 0.125rem;
|
|
21250
|
+
background-color: var(--cds-text-primary, #161616);
|
|
21251
|
+
}
|
|
21252
|
+
|
|
21253
|
+
.cds--toggle--readonly .cds--toggle__check {
|
|
21254
|
+
top: 0.3125rem;
|
|
21255
|
+
right: 0.25rem;
|
|
21256
|
+
fill: var(--cds-background, #ffffff);
|
|
21257
|
+
}
|
|
21258
|
+
|
|
21259
|
+
.cds--toggle--readonly .cds--toggle__text {
|
|
21260
|
+
cursor: text;
|
|
21261
|
+
-webkit-user-select: text;
|
|
21262
|
+
-moz-user-select: text;
|
|
21263
|
+
-ms-user-select: text;
|
|
21264
|
+
user-select: text;
|
|
21265
|
+
}
|
|
21266
|
+
|
|
21088
21267
|
@media screen and (-ms-high-contrast: active), (forced-colors: active) {
|
|
21089
21268
|
.cds--toggle__switch,
|
|
21090
21269
|
.cds--toggle__switch::before {
|