2020-05-14 17:06:42 +08:00
|
|
|
.#{$ns}InputBox {
|
|
|
|
@include input-input();
|
2021-11-19 00:16:00 +08:00
|
|
|
@include input-border();
|
2020-05-14 17:06:42 +08:00
|
|
|
|
2020-06-11 20:23:39 +08:00
|
|
|
&--inline {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
2020-06-03 17:19:14 +08:00
|
|
|
> input[readonly] {
|
|
|
|
cursor: inherit;
|
|
|
|
}
|
|
|
|
|
2022-05-10 23:35:56 +08:00
|
|
|
&.is-error,
|
|
|
|
.is-error > & {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Form-input-onError-borderColor);
|
|
|
|
background: var(--Form-input-onError-bg);
|
2020-05-14 17:06:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-focused {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Form-input-onFocused-borderColor);
|
|
|
|
box-shadow: var(--Form-input-boxShadow);
|
|
|
|
background: var(--Form-input-onFocused-bg);
|
2020-05-14 17:06:42 +08:00
|
|
|
}
|
|
|
|
|
2020-06-03 17:19:14 +08:00
|
|
|
&.is-clickable:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Form-input-onFocused-borderColor);
|
|
|
|
box-shadow: var(--Form-input-boxShadow);
|
2020-06-03 17:19:14 +08:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2020-05-14 17:06:42 +08:00
|
|
|
&.is-error.is-focused {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Form-input-onError-borderColor);
|
2020-05-14 17:06:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--text--muted-color);
|
|
|
|
background: var(--Form-input-onDisabled-bg);
|
|
|
|
border-color: var(--Form-input-onDisabled-borderColor);
|
2020-05-14 17:06:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-clear {
|
|
|
|
@include input-clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
display: inline-block;
|
|
|
|
width: 14px;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--icon-color);
|
2020-05-14 17:06:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> a {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2022-05-10 23:35:56 +08:00
|
|
|
|
|
|
|
&-caret {
|
|
|
|
transition: transform var(--animation-duration) ease-out;
|
|
|
|
margin: 5px;
|
|
|
|
display: flex;
|
|
|
|
color: var(--Form-select-caret-iconColor);
|
|
|
|
&:hover {
|
|
|
|
color: var(--Form-select-caret-onHover-iconColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
width: px2rem(10px);
|
|
|
|
height: px2rem(10px);
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active &-caret {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
2020-05-14 17:06:42 +08:00
|
|
|
}
|