feat(ui): 添加移动端侧边菜单栏及响应式样式调整
添加移动端侧边菜单栏组件,包含用户信息、导航链接和发布按钮 调整页面头部在不同屏幕尺寸下的响应式布局 新增菜单图标资源文件 优化logo间距和输入框在移动端的显示效果
This commit is contained in:
160
css/public.less
160
css/public.less
@@ -1903,6 +1903,7 @@ body {
|
||||
|
||||
.logo {
|
||||
height: 52px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.input-box {
|
||||
@@ -2343,3 +2344,162 @@ td {
|
||||
-webkit-transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
.head-pop {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: rgba(0, 0, 0, 0.70588235);
|
||||
z-index: 100;
|
||||
|
||||
&.head-pop-show {
|
||||
left: 0;
|
||||
|
||||
.head-more-pop {
|
||||
animation: slide-in-left 0.5s ease-out forwards;
|
||||
}
|
||||
}
|
||||
|
||||
.head-more-pop {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
width: 80vw;
|
||||
right: 0;
|
||||
background-color: #fff;
|
||||
overflow: auto;
|
||||
transition: all 0.2s;
|
||||
right: -100%;
|
||||
opacity: 0;
|
||||
z-index: 100;
|
||||
|
||||
@keyframes slide-in-left {
|
||||
0% {
|
||||
right: -100%;
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
right: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.head-more-userinfo {
|
||||
height: 108px;
|
||||
margin-left: 24px;
|
||||
padding-right: 27px;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 0.5px solid #ebebeb;
|
||||
justify-content: space-between;
|
||||
|
||||
.head-more-left {
|
||||
.head-more-userinfo-avatar {
|
||||
margin-right: 9px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.head-more-userinfo-username {
|
||||
font-size: 13.5px;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
.head-more-right {
|
||||
width: 84px;
|
||||
height: 30px;
|
||||
|
||||
.information-box {
|
||||
position: relative;
|
||||
width: 16.5px;
|
||||
height: 16.5px;
|
||||
|
||||
.information-icon {
|
||||
width: 16.5px;
|
||||
height: 16.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.red-dot {
|
||||
position: absolute;
|
||||
right: -7.5px;
|
||||
top: -7.5px;
|
||||
width: 13.5px;
|
||||
height: 13.5px;
|
||||
color: #fff;
|
||||
border-radius: 24px;
|
||||
background-color: #fd3f5d;
|
||||
font-size: 9.75px;
|
||||
}
|
||||
|
||||
.loginBtn {
|
||||
width: 84px;
|
||||
height: 30px;
|
||||
border-radius: 117px;
|
||||
background-color: #62b1ff;
|
||||
color: #fff;
|
||||
font-size: 12.75px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tab-list {
|
||||
padding-right: 27px;
|
||||
margin-left: 24px;
|
||||
border-bottom: 0.5px solid #ebebeb;
|
||||
|
||||
.tab-item {
|
||||
height: 54px;
|
||||
margin: 12.3px 0;
|
||||
border-radius: 8.25px;
|
||||
padding-left: 24px;
|
||||
font-size: 13.5px;
|
||||
color: #555555;
|
||||
text-decoration: none;
|
||||
|
||||
&.pitch {
|
||||
background-color: #50e3c2;
|
||||
font-weight: 650;
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.head-more-post {
|
||||
color: #000;
|
||||
font-size: 15px;
|
||||
margin: 48px 0 100px;
|
||||
|
||||
.head-more-post-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-right: 5px;
|
||||
background-color: #fddf6d;
|
||||
border-radius: 50%;
|
||||
|
||||
.head-more-post-img {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.cross-icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
padding: 15px;
|
||||
position: fixed;
|
||||
bottom: 11.25px;
|
||||
left: calc(50% + 45px);
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user