amis2/scss/components/form/_textarea.scss

33 lines
786 B
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
.#{$ns}TextareaControl {
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)
calc(
var(--Form-input-height) - var(--Form-input-lineHeight) *
var(--Form-input-fontSize) - #{px2rem(2px)}
2019-12-06 09:58:08 +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 {
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 {
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;
color: var(--text--muted-color);
2019-12-06 09:58:08 +08:00
}
}