min-project/component/headerNav/headerNav.wxss
2024-12-12 12:14:09 +08:00

254 lines
4.0 KiB
Plaintext

/* template/headerNav/index.wxss */
.NavBar {
position: fixed;
/* position: sticky; */
top: 0;
left: 0;
width: 100%;
background: #fff;
z-index: 99;
/* border-bottom: 1px solid #f2f2f2; */
transition: all .2s;
}
.NavBar-statusBar {
width: 100%;
}
.NavBar-titlebar {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.capsule-holder {
width: 100px;
height: 100%;
}
.NavBar-SearchBar {
flex: 1;
padding: 0 16px;
overflow: hidden;
}
.NavBar-content {
display: flex;
align-items: center;
flex: 1;
margin: 0;
overflow: hidden;
}
.NavBar-left {
/* width: 55px; */
height: 32px;
border-radius: 32px;
/* border: solid 1px #f6f6f6; */
text-align: center;
display: flex;
align-items: center;
}
.NavBar-content-title {
font-size: 17px;
font-weight: 600;
/* flex: 1; */
text-align: center;
line-height: 32px;
height: 32px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
/* padding-left: 11px; */
}
.backToHome {
height: 32px;
}
.search-btn {
padding: 5px
}
.search-btn image {
height: 18px;
width: 18px;
}
.NavBar-HomeIcon {
width: 20px;
height: 20px;
}
.NavBar-left-area {
width: 87px;
}
.NavBar-left-more {
/* width: 87px; */
height: 32px;
display: flex;
flex: 1;
}
.NavBar-left-more .backToHome {
/* flex: 1; */
}
.NavBar-BackIcon {
/* flex: 1; */
width: 12px;
height: 18px;
padding: 1px 0;
box-sizing: border-box;
/* border-right: solid 1px #d2d2d2; */
}
.Btn {
display: flex;
flex: 1;
max-width: 44px;
height: 32px;
padding: 1px 0;
text-align: left;
box-sizing: border-box;
justify-content: center;
align-items: center;
}
.Btn .user {
width: 20px;
height: 21px;
margin: 0;
}
.navigator-hover {
background-color: #fff;
opacity: 1
}
.hover {
background: #fff;
opacity: 1
}
.searchBtn {
display: flex;
flex: 1;
max-width: 44px;
height: 32px;
padding: 1px 0;
text-align: left;
box-sizing: border-box;
justify-content: center;
align-items: center;
}
.searchBtn .searchBtnImg {
width: 17px;
height: 17px;
}
.search-btn .headPortrait {
width: 48rpx;
height: 48rpx;
border-radius: 50%;
}
.toggle {
display: flex;
align-items: center;
font-size: 24rpx;
padding-left: 22rpx;
height: 100%;
}
.toggle .toggle-icon {
width: 24rpx;
height: 24rpx;
border-radius: 50%;
margin-right: 9rpx;
}
.home-icon {
width: 57rpx;
height: 57rpx;
}
.sign-btn {
/* margin-left: 10rpx; */
font-size: 25rpx;
padding: 0 15rpx;
}
.message-center {
padding: 0 15rpx;
display: flex;
align-items: center;
position: relative;
}
.message-center .message-center-icon {
width: 37.5rpx;
height: 30rpx;
}
.search-btn .red,
.message-center .red {
font-size: 18rpx;
color: #FFFFFF;
padding: 0 7rpx;
height: 24rpx;
line-height: 24rpx;
border-radius: 12rpx;
background-color: #f95d5d;
position: absolute;
top: -10rpx;
right: 0;
box-sizing: border-box;
text-align: center;
}
.search-btn .red.circle,
.message-center .red.circle {
border-radius: 50%;
width: 24rpx;
}
.search-btn .red {
top: 0rpx;
right: 15rpx;
}
.left-operate-box {
height: 57rpx;
background-color: rgba(255, 255, 255, 0);
border: 1rpx solid rgba(215, 215, 215, 1);
border-radius: 66rpx;
margin-left: 15rpx;
display: flex;
align-items: center;
box-sizing: border-box;
}
.left-operate-box .left-operate-item {
font-size: 24rpx;
line-height: 37.5rpx;
color: #333;
display: flex;
align-items: center;
padding: 0 19rpx;
box-sizing: border-box;
}
.left-operate-box .left-operate-item:not(:last-of-type) {
border-right: 1rpx solid #d7d7d7;
}
.left-operate-box .left-operate-item .left-operate-icon {
width: 30rpx;
height: 30rpx;
margin-right: 9rpx;
}