mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-06 05:58:25 +08:00
35711ace89
* feat:增加 animation-duration,可以控制所有动画时长,也能用于一次性关闭所有动画效果 * 补充文档
67 lines
1.3 KiB
SCSS
67 lines
1.3 KiB
SCSS
.#{$ns}SearchBox {
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
|
|
line-height: var(--Form-input-lineHeight);
|
|
font-size: var(--Form-input-fontSize);
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
|
|
height: 30px;
|
|
width: 30px;
|
|
padding: 0 8px;
|
|
|
|
transition: all var(--animation-duration) ease-in-out;
|
|
border: var(--Form-input-borderWidth) solid transparent;
|
|
border-radius: var(--Form-input-borderRadius);
|
|
|
|
&:hover {
|
|
background: var(--Form-input-onHover-bg);
|
|
}
|
|
|
|
&.is-active {
|
|
background: var(--Form-input-bg);
|
|
border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
|
|
width: 150px;
|
|
> input {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
|
|
&-activeBtn,
|
|
&-searchBtn,
|
|
&-cancelBtn {
|
|
cursor: pointer;
|
|
color: var(--icon-color);
|
|
|
|
&:hover {
|
|
color: var(--icon-onHover-color);
|
|
}
|
|
}
|
|
|
|
&.is-disabled &-activeBtn,
|
|
&.is-disabled &-searchBtn,
|
|
&.is-disabled &-cancelBtn {
|
|
color: var(--icon-onDisabled-color);
|
|
pointer-events: none;
|
|
}
|
|
|
|
> input {
|
|
outline: none;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--Form-input-color);
|
|
|
|
width: 0;
|
|
height: calc(var(--Form-input-lineHeight) * var(--Form-input-fontSize));
|
|
|
|
&::placeholder {
|
|
color: var(--Form-input-placeholderColor);
|
|
user-select: none;
|
|
}
|
|
}
|
|
|
|
height: 30px;
|
|
}
|