Skip to content

Commit

Permalink
fix 调整字体大小后,搜索框的icon没有居中 #606
Browse files Browse the repository at this point in the history
  • Loading branch information
BearJ committed Jun 27, 2018
1 parent 0714f13 commit 752e318
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/style/widget/weui-searchbar/weui-searchbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
display: flex;
box-sizing: border-box;
background-color: #EFEFF4;
-webkit-text-size-adjust: 100%;
align-items: center;
&:before {
.setTopLine(#D7D6DC);
}
Expand Down Expand Up @@ -62,14 +64,16 @@
}
.weui-icon-search {
position: absolute;
top: 50%;
left: 10px;
top: 0;
margin-top: -14px;
line-height: 28px;
}
.weui-icon-clear {
position: absolute;
top: 0;
top: 50%;
right: 0;
margin-top: -14px;
padding: 0 10px;
line-height: 28px;
}
Expand Down

0 comments on commit 752e318

Please sign in to comment.