[new feature] Search: update style, add new prop shape、label (#2788)

This commit is contained in:
rex
2019-02-19 11:32:05 +08:00
committed by neverland
parent 07a6bcbe9f
commit 52a4b7eec9
7 changed files with 94 additions and 39 deletions
+24 -5
View File
@@ -2,14 +2,33 @@
.van-search {
display: flex;
padding: 7px 15px;
padding: 10px 16px;
align-items: center;
box-sizing: border-box;
&__content {
display: flex;
flex: 1;
background-color: @search-background-color;
border-radius: 2px;
padding-left: 10px;
&--round {
border-radius: 17px;
}
}
&__label {
font-size: 14px;
color: @text-color;
line-height: 34px;
padding: 0 5px;
}
.van-cell {
flex: 1;
padding: 3px 10px;
border-radius: 4px;
padding: 5px 10px 5px 0;
background-color: transparent;
&__left-icon {
color: @gray-dark;
@@ -32,8 +51,8 @@
&__action {
padding: 0 10px;
font-size: 14px;
line-height: 30px;
color: @gray-darker;
line-height: 34px;
color: @text-color;
&:active {
background-color: @active-color;