mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[Improvement] Search: update style (#1603)
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
&__value {
|
||||
overflow: hidden;
|
||||
text-align: right;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
|
||||
&--alone {
|
||||
@@ -46,6 +47,7 @@
|
||||
}
|
||||
|
||||
&__left-icon {
|
||||
min-width: 1em;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
margin-right: 5px;
|
||||
|
@@ -5,10 +5,6 @@
|
||||
max-width: 90px;
|
||||
}
|
||||
|
||||
.van-cell__value {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&__body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
@@ -2,19 +2,22 @@
|
||||
|
||||
.van-search {
|
||||
display: flex;
|
||||
padding: 7px 15px;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
padding: 6px 15px;
|
||||
position: relative;
|
||||
|
||||
&--show-action {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.van-cell {
|
||||
flex: 1;
|
||||
padding: 3px 10px;
|
||||
border-radius: 4px;
|
||||
padding: 3px 10px 3px 35px;
|
||||
|
||||
&__left-icon {
|
||||
color: $gray-dark;
|
||||
}
|
||||
}
|
||||
|
||||
&--show-action {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
input {
|
||||
@@ -27,31 +30,13 @@
|
||||
}
|
||||
|
||||
&__action {
|
||||
line-height: 34px;
|
||||
font-size: 14px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
&__cancel {
|
||||
padding: 0 10px;
|
||||
color: $green;
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
color: $gray-darker;
|
||||
|
||||
&:active {
|
||||
background-color: $active-color;
|
||||
}
|
||||
}
|
||||
|
||||
.van-icon-search {
|
||||
top: 50%;
|
||||
left: 25px;
|
||||
z-index: 1;
|
||||
color: $gray-dark;
|
||||
position: absolute;
|
||||
font-size: 16px;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.van-icon-clear {
|
||||
color: #bbb;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user