mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
68 lines
1.0 KiB
Plaintext
68 lines
1.0 KiB
Plaintext
@import '../style/var';
|
|
|
|
.van-nav-bar {
|
|
position: relative;
|
|
user-select: none;
|
|
text-align: center;
|
|
height: @nav-bar-height;
|
|
line-height: @nav-bar-height;
|
|
background-color: @nav-bar-background-color;
|
|
|
|
.van-icon {
|
|
color: @nav-bar-icon-color;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
&__arrow {
|
|
min-width: 1em;
|
|
font-size: @nav-bar-arrow-size;
|
|
|
|
+ .van-nav-bar__text {
|
|
margin-left: -20px;
|
|
padding-left: 25px;
|
|
}
|
|
}
|
|
|
|
&--fixed {
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
position: fixed;
|
|
}
|
|
|
|
&__title {
|
|
margin: 0 auto;
|
|
max-width: 60%;
|
|
color: @nav-bar-title-text-color;
|
|
font-size: @nav-bar-title-font-size;
|
|
font-weight: 500;
|
|
}
|
|
|
|
&__left,
|
|
&__right {
|
|
bottom: 0;
|
|
font-size: 14px;
|
|
position: absolute;
|
|
}
|
|
|
|
&__left {
|
|
left: 15px;
|
|
}
|
|
|
|
&__right {
|
|
right: 15px;
|
|
}
|
|
|
|
&__text {
|
|
color: @nav-bar-text-color;
|
|
margin: 0 -15px;
|
|
padding: 0 15px;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
|
|
&:active {
|
|
background-color: @active-color;
|
|
}
|
|
}
|
|
}
|