You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
276 lines
5.4 KiB
276 lines
5.4 KiB
#app {
|
|
.main-container {
|
|
min-height: 100%;
|
|
transition: margin-left .28s;
|
|
margin-left: $sideBarWidth;
|
|
position: relative;
|
|
padding-top: $headerHeight;
|
|
background-color: $main-bg-light;
|
|
}
|
|
|
|
.sidebar-container {
|
|
transition: width 0.28s;
|
|
width: $sideBarWidth !important;
|
|
background-color: $boxBg;
|
|
height: 100%;
|
|
position: fixed;
|
|
font-size: 0;
|
|
top: $headerHeight;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 99;
|
|
@include bg_color;
|
|
@include siderBar-set;
|
|
padding-bottom: 50px;
|
|
|
|
// 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: 0;
|
|
}
|
|
|
|
.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: 10px;
|
|
}
|
|
|
|
.el-submenu__icon-arrow{
|
|
font-size: 18px;
|
|
@include siderBar-icon;
|
|
// right: 60px;
|
|
}
|
|
|
|
.el-menu {
|
|
border: none;
|
|
height: 100%;
|
|
width: 100% !important;
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
// menu hover
|
|
.submenu-title-noDropdown,
|
|
.el-submenu__title {
|
|
font-size: 16px;
|
|
height: 60px !important;
|
|
line-height: 60px !important;
|
|
padding: 0 30px 0 28px !important;
|
|
background-color: transparent !important;
|
|
@include siderBar-submenu-set;
|
|
&:hover {
|
|
@include siderBar-title-set-acitve;
|
|
}
|
|
svg{
|
|
stroke: red;
|
|
}
|
|
}
|
|
|
|
& .el-submenu .el-menu-item{
|
|
position: relative;
|
|
padding: 0 60px 0 82px !important;
|
|
height: 36px !important;
|
|
line-height: 36px;
|
|
@include siderBar-submenu-set;
|
|
&::before{
|
|
content: "";
|
|
position: absolute;
|
|
left: 56px;
|
|
top: 50%;
|
|
width: 6px;
|
|
height: 6px;
|
|
background-color: #fff;
|
|
border-radius: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
.svg-icon {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.is-active>.el-submenu__title,
|
|
.is-active.submenu-title-noDropdown {
|
|
position: relative;
|
|
@include siderBar-title-set-acitve;
|
|
}
|
|
|
|
& .nest-menu .el-submenu>.el-submenu__title,
|
|
& .el-submenu .el-menu-item {
|
|
min-width: $sideBarWidth !important;
|
|
background-color: transparent !important;
|
|
&:hover {
|
|
@include siderBar-submenu-set-acitve;
|
|
}
|
|
}
|
|
|
|
.is-active.el-menu-item {
|
|
@include siderBar-submenu-set-acitve;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
|
|
&>.el-submenu__title {
|
|
padding: 0 !important;
|
|
|
|
.svg-icon {
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.el-submenu__icon-arrow {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.el-menu--collapse {
|
|
.el-submenu {
|
|
&>.el-submenu__title {
|
|
&>span {
|
|
height: 0;
|
|
width: 0;
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.main-breadcrumb{
|
|
left: 54px;
|
|
}
|
|
}
|
|
|
|
.el-menu--collapse .el-menu .el-submenu {
|
|
min-width: $sideBarWidth !important;
|
|
}
|
|
|
|
// mobile responsive
|
|
.mobile {
|
|
.main-container {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
// when menu collapsed
|
|
.el-menu--vertical {
|
|
&>.el-menu {
|
|
.svg-icon {
|
|
display: none;
|
|
margin-right: 16px;
|
|
}
|
|
}
|
|
|
|
.nest-menu .el-submenu>.el-submenu__title,
|
|
.el-menu-item {
|
|
position: relative;
|
|
padding-left: 50px !important;
|
|
height: 40px !important;
|
|
line-height: 40px;
|
|
&::before{
|
|
content: "";
|
|
position: absolute;
|
|
left: 30px;
|
|
top: 50%;
|
|
width: 6px;
|
|
height: 6px;
|
|
background-color: #fff;
|
|
border-radius: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
&:hover {
|
|
background-image: $subMenuHover !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;
|
|
}
|
|
}
|
|
}
|