2021-03-03 15:06:52 +08:00
|
|
|
#app {
|
|
|
|
|
|
|
|
.main-container {
|
|
|
|
height: $contentHeight;
|
|
|
|
transition: margin-left .28s;
|
|
|
|
margin-left: $sideBarWidth;
|
|
|
|
margin-top: $topBarHeight;
|
|
|
|
position: relative;
|
|
|
|
}
|
2021-07-28 14:30:31 +08:00
|
|
|
|
2021-03-03 15:06:52 +08:00
|
|
|
.sidebarHide {
|
2021-07-28 14:30:31 +08:00
|
|
|
margin-left: 0 !important;
|
2021-03-03 15:06:52 +08:00
|
|
|
}
|
2021-07-28 14:30:31 +08:00
|
|
|
|
2021-03-03 15:06:52 +08:00
|
|
|
.sidebar-container {
|
|
|
|
transition: width 0.28s;
|
2021-10-08 17:22:21 +08:00
|
|
|
// background-color: $--background-color-base;
|
2021-03-03 15:06:52 +08:00
|
|
|
height: $contentHeight;
|
|
|
|
position: fixed;
|
|
|
|
font-size: 0px;
|
|
|
|
top: $topBarHeight;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2021-05-25 17:28:55 +08:00
|
|
|
z-index: 999;
|
2021-03-03 15:06:52 +08:00
|
|
|
overflow: hidden;
|
2021-10-08 17:22:21 +08:00
|
|
|
|
2021-03-03 15:06:52 +08:00
|
|
|
.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%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-logo {
|
|
|
|
.el-scrollbar {
|
|
|
|
height: calc(100% - 50px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-horizontal {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.svg-icon {
|
|
|
|
margin-right: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-menu {
|
|
|
|
border: none;
|
|
|
|
height: 100%;
|
|
|
|
width: 100% !important;
|
2021-05-25 17:28:55 +08:00
|
|
|
|
2021-10-08 17:22:21 +08:00
|
|
|
|
2021-03-03 15:06:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.submenu-title-noDropdown,
|
|
|
|
.el-submenu__title {
|
|
|
|
&:hover {
|
2021-10-08 17:22:21 +08:00
|
|
|
// background-color: $leftMenuHovor !important;
|
|
|
|
background-color: var(--ContentBG) !important;
|
2021-03-03 15:06:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-03 14:40:47 +08:00
|
|
|
/* .is-active > .el-submenu__title {
|
2021-09-02 14:28:15 +08:00
|
|
|
color: $leftMenuTextActive !important;
|
2021-09-03 14:40:47 +08:00
|
|
|
} */
|
2021-03-03 15:06:52 +08:00
|
|
|
|
2021-07-28 14:30:31 +08:00
|
|
|
& .nest-menu .el-submenu > .el-submenu__title,
|
2021-03-03 15:06:52 +08:00
|
|
|
& .el-submenu .el-menu-item {
|
|
|
|
min-width: $sideBarWidth !important;
|
2021-10-08 17:22:21 +08:00
|
|
|
// background-color: $leftMenuBg !important;
|
|
|
|
background-color: var(--MainBG) !important;
|
2021-03-03 15:06:52 +08:00
|
|
|
|
|
|
|
&:hover {
|
2021-10-08 17:22:21 +08:00
|
|
|
// background-color: $leftMenuHovor !important;
|
|
|
|
background-color: var(--ContentBG) !important;
|
2021-03-03 15:06:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.hideSidebar {
|
|
|
|
.sidebar-container {
|
|
|
|
width: 54px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-container {
|
|
|
|
margin-left: 54px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.submenu-title-noDropdown {
|
|
|
|
padding: 0 !important;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.el-tooltip {
|
|
|
|
padding: 0 !important;
|
|
|
|
|
|
|
|
.svg-icon {
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-submenu {
|
|
|
|
overflow: hidden;
|
|
|
|
|
2021-07-28 14:30:31 +08:00
|
|
|
& > .el-submenu__title {
|
2021-03-03 15:06:52 +08:00
|
|
|
padding: 0 !important;
|
|
|
|
|
|
|
|
.svg-icon {
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-submenu__icon-arrow {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-menu--collapse {
|
|
|
|
.el-submenu {
|
2021-07-28 14:30:31 +08:00
|
|
|
& > .el-submenu__title {
|
|
|
|
& > span {
|
2021-03-03 15:06:52 +08:00
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
visibility: hidden;
|
|
|
|
display: inline-block;
|
2021-10-08 17:22:21 +08:00
|
|
|
|
2021-03-03 15:06:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-menu--collapse .el-menu .el-submenu {
|
|
|
|
min-width: $sideBarWidth !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mobile {
|
|
|
|
.main-container {
|
|
|
|
margin-left: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-container {
|
|
|
|
transition: transform .28s;
|
|
|
|
width: $sideBarWidth !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.hideSidebar {
|
|
|
|
.sidebar-container {
|
|
|
|
pointer-events: none;
|
|
|
|
transition-duration: 0.3s;
|
|
|
|
transform: translate3d(-$sideBarWidth, 0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.withoutAnimation {
|
|
|
|
|
|
|
|
.main-container,
|
|
|
|
.sidebar-container {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-menu--vertical {
|
2021-07-28 14:30:31 +08:00
|
|
|
& > .el-menu {
|
2021-03-03 15:06:52 +08:00
|
|
|
.svg-icon {
|
|
|
|
margin-right: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-28 14:30:31 +08:00
|
|
|
.nest-menu .el-submenu > .el-submenu__title,
|
2021-03-03 15:06:52 +08:00
|
|
|
.el-menu-item {
|
|
|
|
&:hover {
|
2021-10-08 17:22:21 +08:00
|
|
|
// background-color: $leftMenuHovor !important;
|
|
|
|
background-color: var(--ContentBG) !important;
|
2021-03-03 15:06:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-28 14:30:31 +08:00
|
|
|
> .el-menu--popup {
|
2021-03-03 15:06:52 +08:00
|
|
|
max-height: 100vh;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track-piece {
|
|
|
|
background: #d3dce6;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background: #99a9bf;
|
|
|
|
border-radius: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|