2019-04-30 11:11:25 +08:00
|
|
|
.#{$ns}TextareaControl {
|
2022-03-24 20:22:16 +08:00
|
|
|
@include input-text();
|
2022-01-20 18:30:52 +08:00
|
|
|
--Form-input-clearBtn-padding: #{px2rem(2px)};
|
|
|
|
|
2021-08-24 21:24:54 +08:00
|
|
|
position: relative;
|
feat: inputText, textarea, select 支持配置 borderMode 包括,全边框,半边框,无边框 (#2375)
* feat: inputText, textarea, select 支持配置 borderMode 包括,全边框,半边框,无边框
* 及时更新
2021-08-11 16:17:43 +08:00
|
|
|
|
2021-08-24 21:24:54 +08:00
|
|
|
> textarea {
|
|
|
|
@include input-border();
|
|
|
|
|
|
|
|
border: 1px solid var(--Form-input-borderColor);
|
|
|
|
border-radius: var(--Form-input-borderRadius);
|
|
|
|
background: var(--Form-input-bg);
|
|
|
|
padding: var(--Form-input-paddingY) var(--Form-input-paddingX);
|
|
|
|
font-size: var(--Form-input-fontSize);
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
line-height: var(--Form-input-lineHeight);
|
|
|
|
outline: none;
|
2022-05-18 10:03:56 +08:00
|
|
|
resize: vertical;
|
2021-08-24 21:24:54 +08:00
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
color: var(--Form-input-placeholderColor);
|
|
|
|
}
|
2021-11-02 15:50:29 +08:00
|
|
|
|
|
|
|
// yunshe4.0
|
|
|
|
&:hover {
|
|
|
|
border-color: var(--Form-input-onHover-borderColor);
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2021-08-24 21:24:54 +08:00
|
|
|
&-counter {
|
|
|
|
position: absolute;
|
|
|
|
right: var(--Form-input-paddingX);
|
|
|
|
bottom: var(--Form-input-paddingY);
|
|
|
|
font-size: var(--fontSizeSm);
|
|
|
|
padding: 0 5px;
|
|
|
|
border-radius: 3px;
|
2022-05-18 10:03:56 +08:00
|
|
|
color: #84868c;
|
2021-08-24 21:24:54 +08:00
|
|
|
|
|
|
|
&.is-empty {
|
2022-05-18 10:03:56 +08:00
|
|
|
color: #84868c;
|
2021-08-24 21:24:54 +08:00
|
|
|
}
|
2022-01-20 18:30:52 +08:00
|
|
|
|
|
|
|
&.is-clearable {
|
|
|
|
right: calc(
|
|
|
|
var(--Form-input-paddingX) + var(--Form-input-clearBtn-size) +
|
|
|
|
var(--Form-input-clearBtn-padding) * 2 + #{px2rem(5px)}
|
|
|
|
);
|
|
|
|
}
|
2021-08-24 21:24:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.has-error--maxLength &-counter {
|
|
|
|
background: var(--danger);
|
|
|
|
}
|
2022-01-20 18:30:52 +08:00
|
|
|
|
|
|
|
&-clear {
|
|
|
|
@include input-clear();
|
|
|
|
position: absolute;
|
|
|
|
right: var(--Form-input-paddingX);
|
|
|
|
bottom: var(--Form-input-paddingY);
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
}
|