@carbon/styles 1.11.0 → 1.12.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
@@ -178,7 +178,7 @@ h1 {
178
178
 
179
179
  h2 {
180
180
  font-size: var(--cds-heading-05-font-size, 2rem);
181
- font-weight: var(--cds-heading-05-font-weight, 400);
181
+ font-weight: var(--cds-heading-05-font-weight, 300);
182
182
  line-height: var(--cds-heading-05-line-height, 1.25);
183
183
  letter-spacing: var(--cds-heading-05-letter-spacing, 0);
184
184
  }
@@ -6596,6 +6596,13 @@ fieldset[disabled] .cds--form__helper-text {
6596
6596
  z-index: 1;
6597
6597
  top: 0.8125rem;
6598
6598
  left: 1rem;
6599
+ display: -webkit-box;
6600
+ display: -ms-flexbox;
6601
+ display: flex;
6602
+ height: 1rem;
6603
+ -webkit-box-align: center;
6604
+ -ms-flex-align: center;
6605
+ align-items: center;
6599
6606
  margin: 0;
6600
6607
  }
6601
6608
 
@@ -6614,12 +6621,12 @@ fieldset[disabled] .cds--form__helper-text {
6614
6621
  }
6615
6622
 
6616
6623
  .cds--form--fluid .cds--text-input--invalid,
6617
- .cds--form--fluid .cds--text-input--warn {
6624
+ .cds--form--fluid .cds--text-input--warning {
6618
6625
  border-bottom: none;
6619
6626
  }
6620
6627
 
6621
6628
  .cds--form--fluid .cds--text-input--invalid + .cds--text-input__divider,
6622
- .cds--form--fluid .cds--text-input--warn + .cds--text-input__divider {
6629
+ .cds--form--fluid .cds--text-input--warning + .cds--text-input__divider {
6623
6630
  display: block;
6624
6631
  border-style: solid;
6625
6632
  border-color: var(--cds-border-subtle);
@@ -6631,13 +6638,13 @@ fieldset[disabled] .cds--form__helper-text {
6631
6638
  top: 5rem;
6632
6639
  }
6633
6640
 
6634
- .cds--form--fluid .cds--text-input-wrapper--light {
6635
- background: var(--cds-field-02, #ffffff);
6641
+ .cds--form--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid,
6642
+ .cds--form--fluid .cds--text-input__field-wrapper--warning > .cds--text-input--warning {
6643
+ outline: none;
6636
6644
  }
6637
6645
 
6638
- .cds--form--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid {
6639
- outline: 2px solid transparent;
6640
- outline-offset: -2px;
6646
+ .cds--form--fluid .cds--text-input__field-wrapper--warning {
6647
+ border-bottom: 1px solid var(--cds-border-strong);
6641
6648
  }
6642
6649
 
6643
6650
  .cds--form--fluid .cds--text-input__field-wrapper[data-invalid]:not(:focus) {
@@ -6650,16 +6657,23 @@ fieldset[disabled] .cds--form__helper-text {
6650
6657
  }
6651
6658
  }
6652
6659
 
6653
- .cds--form--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid:focus {
6660
+ .cds--form--fluid .cds--text-input__field-wrapper[data-invalid]:focus-within,
6661
+ .cds--form--fluid .cds--text-input__field-wrapper--warning:focus-within {
6654
6662
  outline: 2px solid var(--cds-focus, #0f62fe);
6655
6663
  outline-offset: -2px;
6656
6664
  }
6657
6665
  @media screen and (prefers-contrast) {
6658
- .cds--form--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid:focus {
6666
+ .cds--form--fluid .cds--text-input__field-wrapper[data-invalid]:focus-within,
6667
+ .cds--form--fluid .cds--text-input__field-wrapper--warning:focus-within {
6659
6668
  outline-style: dotted;
6660
6669
  }
6661
6670
  }
6662
6671
 
6672
+ .cds--form--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid:focus,
6673
+ .cds--form--fluid .cds--text-input__field-wrapper--warning > .cds--text-input--warning:focus {
6674
+ outline: none;
6675
+ }
6676
+
6663
6677
  .cds--text-input-wrapper.cds--text-input-wrapper--inline {
6664
6678
  -webkit-box-orient: horizontal;
6665
6679
  -webkit-box-direction: normal;
@@ -12258,11 +12272,117 @@ button.cds--dropdown-text:focus {
12258
12272
  }
12259
12273
 
12260
12274
  /* stylelint-enable */
12275
+ .cds--text-input--fluid.cds--text-input-wrapper {
12276
+ position: relative;
12277
+ height: 100%;
12278
+ background: var(--cds-field);
12279
+ -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);
12280
+ transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9), outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
12281
+ }
12282
+
12283
+ .cds--text-input--fluid .cds--label {
12284
+ position: absolute;
12285
+ z-index: 1;
12286
+ top: 0.8125rem;
12287
+ left: 1rem;
12288
+ display: -webkit-box;
12289
+ display: -ms-flexbox;
12290
+ display: flex;
12291
+ height: 1rem;
12292
+ -webkit-box-align: center;
12293
+ -ms-flex-align: center;
12294
+ align-items: center;
12295
+ margin: 0;
12296
+ }
12297
+
12298
+ .cds--text-input--fluid .cds--form__helper-text {
12299
+ display: none;
12300
+ }
12301
+
12302
+ .cds--text-input--fluid .cds--text-input {
12303
+ min-height: 4rem;
12304
+ padding: 2rem 1rem 0.8125rem;
12305
+ }
12306
+
12307
+ .cds--text-input__divider,
12308
+ .cds--text-input--fluid .cds--text-input__divider {
12309
+ display: none;
12310
+ }
12311
+
12312
+ .cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid],
12313
+ .cds--text-input--fluid .cds--text-input__field-wrapper--warning {
12314
+ display: block;
12315
+ }
12316
+
12317
+ .cds--text-input--fluid input[data-invalid] {
12318
+ outline: none;
12319
+ }
12320
+
12321
+ .cds--text-input--fluid .cds--form-requirement {
12322
+ padding: 0.5rem 2.5rem 0.5rem 1rem;
12323
+ margin: 0;
12324
+ }
12325
+
12326
+ .cds--text-input--fluid .cds--text-input--invalid,
12327
+ .cds--text-input--fluid .cds--text-input--warning {
12328
+ border-bottom: none;
12329
+ }
12330
+
12331
+ .cds--text-input--fluid .cds--text-input--invalid + .cds--text-input__divider,
12332
+ .cds--text-input--fluid .cds--text-input--warning + .cds--text-input__divider {
12333
+ display: block;
12334
+ border-style: solid;
12335
+ border-color: var(--cds-border-subtle);
12336
+ border-bottom: none;
12337
+ margin: 0 1rem;
12338
+ }
12339
+
12340
+ .cds--text-input--fluid .cds--text-input__invalid-icon {
12341
+ top: 5rem;
12342
+ }
12343
+
12344
+ .cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid,
12345
+ .cds--text-input--fluid .cds--text-input__field-wrapper--warning > .cds--text-input--warning {
12346
+ outline: none;
12347
+ }
12348
+
12349
+ .cds--text-input--fluid .cds--text-input__field-wrapper--warning {
12350
+ border-bottom: 1px solid var(--cds-border-strong);
12351
+ }
12352
+
12353
+ .cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid]:not(:focus) {
12354
+ outline: 2px solid var(--cds-support-error, #da1e28);
12355
+ outline-offset: -2px;
12356
+ }
12357
+ @media screen and (prefers-contrast) {
12358
+ .cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid]:not(:focus) {
12359
+ outline-style: dotted;
12360
+ }
12361
+ }
12362
+
12363
+ .cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid]:focus-within,
12364
+ .cds--text-input--fluid .cds--text-input__field-wrapper--warning:focus-within {
12365
+ outline: 2px solid var(--cds-focus, #0f62fe);
12366
+ outline-offset: -2px;
12367
+ }
12368
+ @media screen and (prefers-contrast) {
12369
+ .cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid]:focus-within,
12370
+ .cds--text-input--fluid .cds--text-input__field-wrapper--warning:focus-within {
12371
+ outline-style: dotted;
12372
+ }
12373
+ }
12374
+
12375
+ .cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid:focus,
12376
+ .cds--text-input--fluid .cds--text-input__field-wrapper--warning > .cds--text-input--warning:focus {
12377
+ outline: none;
12378
+ }
12379
+
12261
12380
  @-webkit-keyframes stroke {
12262
12381
  100% {
12263
12382
  stroke-dashoffset: 0;
12264
12383
  }
12265
12384
  }
12385
+
12266
12386
  @keyframes stroke {
12267
12387
  100% {
12268
12388
  stroke-dashoffset: 0;
@@ -13039,6 +13159,10 @@ button.cds--dropdown-text:focus {
13039
13159
  background-color: transparent;
13040
13160
  }
13041
13161
 
13162
+ .cds--multi-select:not(.cds--list-box--expanded) .cds--list-box__menu {
13163
+ visibility: hidden;
13164
+ }
13165
+
13042
13166
  .cds--inline-notification {
13043
13167
  position: relative;
13044
13168
  display: -webkit-box;
@@ -19923,6 +20047,8 @@ span.cds--pagination__text.cds--pagination__items-count {
19923
20047
  -webkit-box-align: center;
19924
20048
  -ms-flex-align: center;
19925
20049
  align-items: center;
20050
+ padding-top: 0.4375rem;
20051
+ padding-bottom: 0.4375rem;
19926
20052
  }
19927
20053
  .cds--tree-node__label:hover {
19928
20054
  background-color: var(--cds-layer-hover-01, #e8e8e8);
@@ -19963,7 +20089,15 @@ span.cds--pagination__text.cds--pagination__items-count {
19963
20089
  }
19964
20090
 
19965
20091
  .cds--tree-parent-node__toggle {
19966
- padding: 0;
20092
+ display: -webkit-box;
20093
+ display: -ms-flexbox;
20094
+ display: flex;
20095
+ -webkit-box-align: center;
20096
+ -ms-flex-align: center;
20097
+ align-items: center;
20098
+ -ms-flex-item-align: start;
20099
+ align-self: flex-start;
20100
+ padding: 0.0625rem 0;
19967
20101
  border: 0;
19968
20102
  margin-right: 0.5rem;
19969
20103
  }
@@ -19990,6 +20124,9 @@ span.cds--pagination__text.cds--pagination__items-count {
19990
20124
  .cds--tree-node__icon {
19991
20125
  min-width: 1rem;
19992
20126
  min-height: 1rem;
20127
+ -ms-flex-item-align: start;
20128
+ align-self: flex-start;
20129
+ margin-top: 0.0625rem;
19993
20130
  margin-right: 0.5rem;
19994
20131
  fill: var(--cds-icon-secondary, #525252);
19995
20132
  }
@@ -20022,6 +20159,8 @@ span.cds--pagination__text.cds--pagination__items-count {
20022
20159
 
20023
20160
  .cds--tree--xs .cds--tree-node__label {
20024
20161
  min-height: 1.5rem;
20162
+ padding-top: 0.25rem;
20163
+ padding-bottom: 0.25rem;
20025
20164
  }
20026
20165
 
20027
20166
  .cds--content {