@carbon/styles 1.12.0-rc.1 → 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 +129 -9
- package/css/styles.min.css +1 -1
- package/package.json +4 -4
- package/scss/components/_index.scss +1 -0
- package/scss/components/fluid-text-input/_fluid-text-input.scss +125 -0
- package/scss/components/fluid-text-input/_index.scss +11 -0
- package/scss/components/text-input/_text-input.scss +27 -11
package/css/styles.css
CHANGED
|
@@ -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--
|
|
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--
|
|
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-
|
|
6635
|
-
|
|
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
|
|
6639
|
-
|
|
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]
|
|
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]
|
|
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;
|