|
|
|
#app {
|
|
|
|
.mainContainer {
|
|
|
|
min-height: 100%;
|
|
|
|
transition: margin-left 0.28s;
|
|
|
|
margin-left: $sideBarWidth;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebarContainer {
|
|
|
|
transition: width 0.28s;
|
|
|
|
width: $sideBarWidth !important;
|
|
|
|
background-color: $menuBg;
|
|
|
|
box-shadow: 2px 0 8px #1d23290d;
|
|
|
|
height: 100%;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1001;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
// reset element-ui css
|
|
|
|
.horizontal-collapse-transition {
|
|
|
|
transition: 0s width ease-in-out, 0s padding-left ease-in-out,
|
|
|
|
0s padding-right ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.scrollbar-wrapper {
|
|
|
|
overflow-x: hidden !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-scrollbar__bar.is-vertical {
|
|
|
|
right: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-scrollbar {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sidebarLogo {
|
|
|
|
.el-scrollbar {
|
|
|
|
height: calc(100% - 50px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-horizontal {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.svg-icon {
|
|
|
|
display: inline-flex;
|
|
|
|
margin-right: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sub-el-icon {
|
|
|
|
margin-right: 12px;
|
|
|
|
margin-left: -2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-menu {
|
|
|
|
border: none;
|
|
|
|
height: 100%;
|
|
|
|
width: 100% !important;
|
|
|
|
|
|
|
|
.menuItem {
|
|
|
|
.el-menu-item,.el-sub-menu__title {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: auto 1fr auto;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
span {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// menu hover
|
|
|
|
.el-sub-menu__title {
|
|
|
|
&:hover {
|
|
|
|
background-color: $menuHover !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-active>.el-sub-menu__title {
|
|
|
|
color: $subMenuActiveText !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .nest-menu .el-sub-menu>.el-sub-menu__title,
|
|
|
|
& .el-sub-menu .el-menu-item {
|
|
|
|
min-width: $sideBarWidth !important;
|
|
|
|
// background-color: $subMenuBg !important;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $subMenuHover !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-menu-item.is-active,.el-sub-menu .el-menu-item.is-active {
|
|
|
|
background-color: $menuActiveBg !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.hideSidebar {
|
|
|
|
.sidebarContainer {
|
|
|
|
width: 54px !important;
|
|
|
|
|
|
|
|
.svg-icon {
|
|
|
|
margin-right: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mainContainer {
|
|
|
|
margin-left: 54px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-sub-menu {
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&>.el-sub-menu__title {
|
|
|
|
padding: 0 !important;
|
|
|
|
|
|
|
|
.svg-icon {
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sub-el-icon {
|
|
|
|
margin-left: 19px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-sub-menu__icon-arrow {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-menu--collapse {
|
|
|
|
.el-sub-menu {
|
|
|
|
&>.el-sub-menu__title {
|
|
|
|
&>span {
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
visibility: hidden;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-menu--collapse .el-menu .el-sub-menu {
|
|
|
|
min-width: $sideBarWidth !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
// mobile responsive
|
|
|
|
.mobile {
|
|
|
|
.mainContainer {
|
|
|
|
margin-left: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebarContainer {
|
|
|
|
transition: transform 0.28s;
|
|
|
|
width: $sideBarWidth !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.hideSidebar {
|
|
|
|
.sidebarContainer {
|
|
|
|
pointer-events: none;
|
|
|
|
transition-duration: 0.3s;
|
|
|
|
transform: translate3d(-$sideBarWidth, 0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.withoutAnimation {
|
|
|
|
|
|
|
|
.mainContainer,
|
|
|
|
.sidebarContainer {
|
|
|
|
// transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// when menu collapsed
|
|
|
|
.el-menu--vertical {
|
|
|
|
&>.el-menu {
|
|
|
|
.svg-icon {
|
|
|
|
margin-right: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sub-el-icon {
|
|
|
|
margin-right: 12px;
|
|
|
|
margin-left: -2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nest-menu .el-sub-menu>.el-sub-menu__title,
|
|
|
|
.el-menu-item {
|
|
|
|
&:hover {
|
|
|
|
// you can use $subMenuHover
|
|
|
|
background-color: $menuHover !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// the scroll bar appears when the subMenu is too long
|
|
|
|
>.el-menu--popup {
|
|
|
|
max-height: 100vh;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track-piece {
|
|
|
|
background: #d3dce6;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background: #99a9bf;
|
|
|
|
border-radius: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|