2019-04-30 11:11:25 +08:00
|
|
|
.#{$ns}TextareaControl {
|
2020-12-21 10:08:40 +08:00
|
|
|
border: 1px solid var(--Form-input-borderColor);
|
|
|
|
border-radius: var(--Form-input-borderRadius);
|
|
|
|
line-height: var(--Form-input-lineHeight);
|
|
|
|
background: var(--Form-input-bg);
|
2019-12-06 09:58:08 +08:00
|
|
|
padding: px2rem(6px)
|
2020-12-21 10:08:40 +08:00
|
|
|
calc(
|
|
|
|
var(--Form-input-height) - var(--Form-input-lineHeight) *
|
|
|
|
var(--Form-input-fontSize) - #{px2rem(2px)}
|
2019-12-06 09:58:08 +08:00
|
|
|
);
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--Form-input-fontSize);
|
2019-12-06 09:58:08 +08:00
|
|
|
outline: none;
|
|
|
|
resize: none;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-error {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Form-input-onError-borderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&:focus,
|
|
|
|
&.is-focused {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Form-input-onFocused-borderColor);
|
|
|
|
box-shadow: var(--Form-input-boxShadow);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-disabled,
|
|
|
|
&[disabled] {
|
|
|
|
background: $gray200;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--text--muted-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
}
|