| | |
| | | .main-container {
|
| | | min-height: 100%;
|
| | | transition: margin-left .28s;
|
| | | margin-left: $sideBarWidth;
|
| | | margin-left: $base-sidebar-width;
|
| | | position: relative;
|
| | | }
|
| | |
|
| | | .sidebar-container {
|
| | | -webkit-transition: width .28s;
|
| | | transition: width 0.28s;
|
| | | width: $sideBarWidth !important;
|
| | | background-color: $menuBg;
|
| | | width: $base-sidebar-width !important;
|
| | | background-color: $base-menu-background;
|
| | | height: 100%;
|
| | | position: fixed;
|
| | | font-size: 0px;
|
| | |
| | | left: 0;
|
| | | z-index: 1001;
|
| | | overflow: hidden;
|
| | | -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
|
| | | box-shadow: 2px 0 6px rgba(0,21,41,.35);
|
| | |
|
| | | // reset element-ui css
|
| | | .horizontal-collapse-transition {
|
| | |
| | | .submenu-title-noDropdown,
|
| | | .el-submenu__title {
|
| | | &:hover {
|
| | | background-color: $menuHover !important;
|
| | | background-color: rgba(0, 0, 0, 0.06) !important;
|
| | | }
|
| | | }
|
| | |
|
| | | .is-active>.el-submenu__title {
|
| | | color: $subMenuActiveText !important;
|
| | | & .theme-dark .is-active > .el-submenu__title {
|
| | | color: $base-menu-color-active !important;
|
| | | }
|
| | |
|
| | | & .nest-menu .el-submenu>.el-submenu__title,
|
| | | & .el-submenu .el-menu-item {
|
| | | min-width: $sideBarWidth !important;
|
| | | background-color: $subMenuBg !important;
|
| | | min-width: $base-sidebar-width !important;
|
| | |
|
| | | &:hover {
|
| | | background-color: $subMenuHover !important;
|
| | | background-color: rgba(0, 0, 0, 0.06) !important;
|
| | | }
|
| | | }
|
| | |
|
| | | & .theme-dark .nest-menu .el-submenu>.el-submenu__title,
|
| | | & .theme-dark .el-submenu .el-menu-item {
|
| | | background-color: $base-sub-menu-background !important;
|
| | |
|
| | | &:hover {
|
| | | background-color: $base-sub-menu-hover !important;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | margin-left: 20px;
|
| | | }
|
| | |
|
| | | .el-submenu__icon-arrow {
|
| | | display: none;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | .el-menu--collapse .el-menu .el-submenu {
|
| | | min-width: $sideBarWidth !important;
|
| | | min-width: $base-sidebar-width !important;
|
| | | }
|
| | |
|
| | | // mobile responsive
|
| | |
| | |
|
| | | .sidebar-container {
|
| | | transition: transform .28s;
|
| | | width: $sideBarWidth !important;
|
| | | width: $base-sidebar-width !important;
|
| | | }
|
| | |
|
| | | &.hideSidebar {
|
| | | .sidebar-container {
|
| | | pointer-events: none;
|
| | | transition-duration: 0.3s;
|
| | | transform: translate3d(-$sideBarWidth, 0, 0);
|
| | | transform: translate3d(-$base-sidebar-width, 0, 0);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | .el-menu-item {
|
| | | &:hover {
|
| | | // you can use $subMenuHover
|
| | | background-color: $menuHover !important;
|
| | | background-color: rgba(0, 0, 0, 0.06) !important;
|
| | | }
|
| | | }
|
| | |
|