|
42 | 42 | @extend %text-item-common; |
43 | 43 | // scss-docs-start text-input-css-vars |
44 | 44 | --#{$prefix}text-input-min-width: #{px-to-rem($ouds-text-input-size-min-width)}; |
45 | | - --#{$prefix}text-input-max-width: #{px-to-rem($ouds-text-input-size-max-width)}; |
46 | 45 | --#{$prefix}text-input-min-height: #{px-to-rem($ouds-text-input-size-min-height)}; |
47 | 46 | --#{$prefix}text-input-column-row-gap: #{$ouds-text-input-space-row-gap-label-input}; |
48 | 47 | // scss-docs-end text-input-css-vars |
49 | 48 |
|
| 49 | + &.component-max-width { |
| 50 | + max-width: px-to-rem($ouds-text-input-size-max-width); |
| 51 | + } |
| 52 | + |
50 | 53 | .text-input-container { |
51 | 54 | position: relative; |
52 | 55 | display: flex; |
53 | 56 | flex-direction: column; |
54 | 57 | gap: var(--#{$prefix}text-input-column-row-gap); |
55 | 58 | justify-content: center; |
56 | 59 | min-width: var(--#{$prefix}text-input-min-width); |
57 | | - max-width: var(--#{$prefix}text-input-max-width); |
58 | 60 | min-height: var(--#{$prefix}text-input-min-height); |
59 | 61 | padding-top: calc(var(--#{$prefix}text-input-padding-y) - var(--#{$prefix}text-input-border-width-top)); // stylelint-disable-line function-disallowed-list |
60 | 62 | padding-right: calc(var(--#{$prefix}text-input-padding-x) - var(--#{$prefix}text-input-border-width-right)); // stylelint-disable-line function-disallowed-list |
|
360 | 362 | .text-area { |
361 | 363 | @extend %text-item-common; |
362 | 364 |
|
| 365 | + &.component-max-width { |
| 366 | + max-width: px-to-rem($ouds-text-area-size-max-width); |
| 367 | + } |
| 368 | + |
363 | 369 | .text-area-container { |
364 | 370 | position: relative; |
365 | 371 | display: flex; |
366 | 372 | flex-direction: column; |
367 | 373 | min-width: var(--#{$prefix}text-input-min-width); |
368 | | - max-width: px-to-rem($ouds-text-area-size-max-width); |
369 | 374 |
|
370 | 375 | padding-top: calc($ouds-text-area-space-padding-block - var(--#{$prefix}text-input-border-width-top)); // stylelint-disable-line function-disallowed-list |
371 | 376 | background-color: var(--#{$prefix}text-input-background-color); |
|
562 | 567 | %text-input-message { |
563 | 568 | --#{$prefix}text-input-message-margin-top: #{$ouds-text-input-space-padding-block-top-helper-text}; |
564 | 569 |
|
565 | | - max-width: var(--#{$prefix}text-input-max-width); |
566 | 570 | padding-right: var(--#{$prefix}text-input-padding-x); |
567 | 571 | padding-left: var(--#{$prefix}text-input-padding-x); |
568 | 572 | } |
|
0 commit comments