116 lines
2.3 KiB
SCSS
116 lines
2.3 KiB
SCSS
// 主体区域
|
|
.main-container {
|
|
min-height: 100%;
|
|
transition: margin-left 0.28s;
|
|
margin-left: 180px;
|
|
}
|
|
|
|
// 侧边栏
|
|
.hideSidebar {
|
|
.sidebar-container {
|
|
width: 36px!important; // overflow: inherit;
|
|
}
|
|
.main-container {
|
|
margin-left: 36px;
|
|
}
|
|
}
|
|
|
|
// .horizontal-collapse-transition{
|
|
// transition: width 0.28s!important;
|
|
// }
|
|
.sidebar-container {
|
|
// transition: width 0.28s ease-out;
|
|
transition: width 0.28s!important;
|
|
width: 180px!important;
|
|
height: 100%;
|
|
position: fixed;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 1001; // overflow-y: auto;
|
|
&::-webkit-scrollbar {
|
|
display: none
|
|
}
|
|
}
|
|
|
|
.sidebar-container>.el-menu {
|
|
width: 100%!important;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.sidebar-container .svg-icon {
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.hideSidebar .el-submenu>.el-submenu__title,
|
|
.hideSidebar .submenu-title-noDropdown {
|
|
padding-left: 10px!important;
|
|
}
|
|
|
|
.hideSidebar .submenu-title-noDropdown span,
|
|
.hideSidebar .el-submenu>.el-submenu__title>span {
|
|
height: 0;
|
|
width: 0;
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
display: inline-block;
|
|
}
|
|
|
|
.hideSidebar .nest-menu .el-submenu__title {
|
|
text-align: initial!important;
|
|
padding-left: 20px!important;
|
|
span {
|
|
height: auto;
|
|
width: auto;
|
|
visibility: visible;
|
|
display: inline;
|
|
}
|
|
.el-submenu__icon-arrow {
|
|
display: block!important;
|
|
}
|
|
}
|
|
|
|
.hideSidebar .menu-wrapper>.el-menu-item,
|
|
.hideSidebar .submenu-title-noDropdown,
|
|
.hideSidebar .menu-wrapper>.el-submenu .el-submenu__title {
|
|
text-align: center;
|
|
}
|
|
|
|
.hideSidebar .el-menu-item .el-submenu__icon-arrow,
|
|
.hideSidebar .el-submenu .el-submenu__title .el-submenu__icon-arrow {
|
|
display: none;
|
|
}
|
|
|
|
.hideSidebar .submenu-title-noDropdown {
|
|
position: relative;
|
|
span {
|
|
transition: opacity .3s cubic-bezier(.55, 0, .1, 1);
|
|
opacity: 0;
|
|
}
|
|
&:hover {
|
|
span {
|
|
display: block;
|
|
border-radius: 3px;
|
|
z-index: 1002;
|
|
width: 140px;
|
|
height: 56px;
|
|
visibility: visible;
|
|
position: absolute;
|
|
right: -145px;
|
|
text-align: left;
|
|
text-indent: 20px;
|
|
top: 0px;
|
|
background-color: #2B2C2D!important;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.el-submenu .el-menu-item {
|
|
min-width: 180px!important;
|
|
background-color: #2B2C2D!important;
|
|
&:hover {
|
|
background-color: rgb(67, 74, 80)!important;
|
|
}
|
|
}
|