mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 10:20:19 +08:00
fix(NavBar): icon align center (#5948)
This commit is contained in:
parent
da8212be7d
commit
d9ab305c96
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
.van-icon {
|
.van-icon {
|
||||||
color: @nav-bar-icon-color;
|
color: @nav-bar-icon-color;
|
||||||
vertical-align: middle;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__arrow {
|
&__arrow {
|
||||||
@ -42,7 +41,10 @@
|
|||||||
&__left,
|
&__left,
|
||||||
&__right {
|
&__right {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
font-size: @font-size-md;
|
font-size: @font-size-md;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
@ -56,11 +58,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__text {
|
&__text {
|
||||||
display: inline-block;
|
|
||||||
margin: 0 -@padding-md;
|
margin: 0 -@padding-md;
|
||||||
padding: 0 @padding-md;
|
padding: 0 @padding-md;
|
||||||
color: @nav-bar-text-color;
|
color: @nav-bar-text-color;
|
||||||
vertical-align: middle;
|
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
background-color: @active-color;
|
background-color: @active-color;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user