mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
2176bc1ce7
Change-Id: Ib74a24744918e32c4d4533cb6947de0452edcadd
67 lines
1.2 KiB
SCSS
67 lines
1.2 KiB
SCSS
.#{$ns}SearchBox {
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
|
|
line-height: $Form-input-lineHeight;
|
|
font-size: $Form-input-fontSize;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
|
|
height: 30px;
|
|
width: 30px;
|
|
padding: 0 8px;
|
|
|
|
transition: all 0.3s ease-in-out;
|
|
border: $Form-input-borderWidth solid transparent;
|
|
border-radius: $Form-input-borderRadius;
|
|
|
|
&:hover {
|
|
background-color: rgba($Form-input-bg, 0.6);
|
|
}
|
|
|
|
&.is-active {
|
|
background-color: $Form-input-bg;
|
|
border: $Form-input-borderWidth solid $Form-input-borderColor;
|
|
width: 150px;
|
|
> input {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
|
|
&-activeBtn,
|
|
&-searchBtn,
|
|
&-cancelBtn {
|
|
cursor: pointer;
|
|
color: $icon-color;
|
|
|
|
&:hover {
|
|
color: $icon-onHover-color;
|
|
}
|
|
}
|
|
|
|
&.is-disabled &-activeBtn,
|
|
&.is-disabled &-searchBtn,
|
|
&.is-disabled &-cancelBtn {
|
|
color: $icon-onDisabled-color;
|
|
pointer-events: none;
|
|
}
|
|
|
|
> input {
|
|
outline: none;
|
|
border: none;
|
|
background: transparent;
|
|
color: $Form-input-color;
|
|
|
|
width: 0;
|
|
height: $Form-input-lineHeight * $Form-input-fontSize;
|
|
|
|
&::placeholder {
|
|
color: $Form-input-placeholderColor;
|
|
user-select: none;
|
|
}
|
|
}
|
|
|
|
height: 30px;
|
|
}
|