mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
58 lines
913 B
CSS
58 lines
913 B
CSS
@import './common/var.css';
|
|
|
|
.van-search {
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
padding: 4px 15px;
|
|
position: relative;
|
|
|
|
&--show-action {
|
|
padding-right: 0;
|
|
}
|
|
|
|
.van-cell {
|
|
flex: 1;
|
|
border-radius: 4px;
|
|
padding: 5px 10px 5px 35px;
|
|
}
|
|
|
|
input {
|
|
&::-webkit-search-decoration,
|
|
&::-webkit-search-cancel-button,
|
|
&::-webkit-search-results-button,
|
|
&::-webkit-search-results-decoration {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&__action {
|
|
line-height: 34px;
|
|
font-size: 14px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
&__cancel {
|
|
padding: 0 10px;
|
|
color: $green;
|
|
|
|
&:active {
|
|
background-color: $active-color;
|
|
}
|
|
}
|
|
|
|
.van-icon-search {
|
|
top: 50%;
|
|
left: 25px;
|
|
z-index: 1;
|
|
color: $gray-darker;
|
|
position: absolute;
|
|
font-size: 16px;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.van-icon-clear {
|
|
color: $gray-dark;
|
|
}
|
|
}
|