fix: 顶部模式样式优化

Former-commit-id: 7558d62832
This commit is contained in:
april 2023-08-23 15:42:29 +08:00
parent cc495d73c3
commit 9d920e093f
2 changed files with 7 additions and 25 deletions

View File

@ -178,6 +178,12 @@ function toggleSideBar() {
--el-menu-item-height: 50px;
}
.mobile.isTop {
:deep(.logo-wrap) {
width: 63px;
}
}
.isMix {
:deep(.main-container) {
display: inline-block;

View File

@ -153,37 +153,13 @@
transition: transform 0.28s;
}
&.hideSidebar:not(.isMix) {
&.hideSidebar:not(.isMix, .isTop) {
.sidebar-container {
pointer-events: none;
transition-duration: 0.3s;
transform: translate3d(-$sideBarWidth, 0, 0);
}
}
&.hideSidebar {
.isMix {
:deep(.sidebar-container) {
.header {
.logo-wrap {
width: 64px;
}
}
}
}
}
&.openSidebar {
.isMix {
:deep(.sidebar-container) {
.header {
.logo-wrap {
width: 210px;
}
}
}
}
}
}
.withoutAnimation {