|
|
|
@ -1,8 +1,8 @@
|
|
|
|
#app {
|
|
|
|
#app {
|
|
|
|
|
|
|
|
|
|
|
|
.main-container {
|
|
|
|
.main-container {
|
|
|
|
min-height: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
transition: margin-left .28s;
|
|
|
|
transition: margin-left 0.28s;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
margin-left: $sideBarWidth;
|
|
|
|
margin-left: $sideBarWidth;
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -11,20 +11,23 @@
|
|
|
|
transition: width 0.28s;
|
|
|
|
transition: width 0.28s;
|
|
|
|
width: $sideBarWidth !important;
|
|
|
|
width: $sideBarWidth !important;
|
|
|
|
//background-color: $menuBg;
|
|
|
|
//background-color: $menuBg;
|
|
|
|
background: linear-gradient(180deg, #0284cd, #0077CC);
|
|
|
|
background: #fff;
|
|
|
|
box-shadow: 1px 1px 15px 0px rgba(17, 76, 157, 0.2);
|
|
|
|
box-shadow: 1px 1px 15px 0px rgba(17, 76, 157, 0.2);
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
border-radius: 0 6px 0 0;
|
|
|
|
position: fixed;
|
|
|
|
position: fixed;
|
|
|
|
font-size: 0px;
|
|
|
|
font-size: 0px;
|
|
|
|
top: 0;
|
|
|
|
top: calc(var(--navbar-height) + 20px);
|
|
|
|
bottom: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1001;
|
|
|
|
z-index: 1001;
|
|
|
|
|
|
|
|
padding-top: 50px;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
// reset element-ui css
|
|
|
|
// reset element-ui css
|
|
|
|
.horizontal-collapse-transition {
|
|
|
|
.horizontal-collapse-transition {
|
|
|
|
transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
|
|
|
|
transition: 0s width ease-in-out, 0s padding-left ease-in-out,
|
|
|
|
|
|
|
|
0s padding-right ease-in-out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.scrollbar-wrapper {
|
|
|
|
.scrollbar-wrapper {
|
|
|
|
@ -36,7 +39,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-scrollbar {
|
|
|
|
.el-scrollbar {
|
|
|
|
height: calc(100% - 100px);
|
|
|
|
height: calc(100% - 100px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.has-logo {
|
|
|
|
&.has-logo {
|
|
|
|
@ -78,22 +81,19 @@
|
|
|
|
color: $subMenuActiveText !important;
|
|
|
|
color: $subMenuActiveText !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.el-submenu .is-active{
|
|
|
|
.el-submenu .is-active {
|
|
|
|
// background-color: $menuHover !important;
|
|
|
|
// background-color: $menuHover !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.is-active {
|
|
|
|
|
|
|
|
//background-color: $menuActiveBg !important;
|
|
|
|
.is-active{
|
|
|
|
//border-right: 5px solid $subMenuActiveText !important;
|
|
|
|
//background-color: $menuActiveBg !important;
|
|
|
|
}
|
|
|
|
//border-right: 5px solid $subMenuActiveText !important;
|
|
|
|
.is-active > .el-submenu__title {
|
|
|
|
|
|
|
|
color: $subMenuActiveText !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.is-active>.el-submenu__title {
|
|
|
|
|
|
|
|
color: $subMenuActiveText !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
& .nest-menu .el-submenu>.el-submenu__title,
|
|
|
|
& .nest-menu .el-submenu > .el-submenu__title,
|
|
|
|
& .el-submenu .el-menu-item {
|
|
|
|
& .el-submenu .el-menu-item {
|
|
|
|
min-width: $sideBarWidth !important;
|
|
|
|
min-width: $sideBarWidth !important;
|
|
|
|
background-color: $subMenuBg !important;
|
|
|
|
background-color: $subMenuBg !important;
|
|
|
|
@ -102,15 +102,14 @@
|
|
|
|
background-color: $subMenuHover !important;
|
|
|
|
background-color: $subMenuHover !important;
|
|
|
|
color: $subMenuActiveText !important;
|
|
|
|
color: $subMenuActiveText !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.is-active{
|
|
|
|
&.is-active {
|
|
|
|
background-color: $submenuActiveBg !important;
|
|
|
|
background-color: $submenuActiveBg !important;
|
|
|
|
border-right: 5px solid $subMenuActiveText !important;
|
|
|
|
border-right: 5px solid $subMenuActiveText !important;
|
|
|
|
color: $subMenuActiveText !important;
|
|
|
|
color: $subMenuActiveText !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.hideSidebar {
|
|
|
|
.hideSidebar {
|
|
|
|
.sidebar-container {
|
|
|
|
.sidebar-container {
|
|
|
|
width: 54px !important;
|
|
|
|
width: 54px !important;
|
|
|
|
@ -140,7 +139,7 @@
|
|
|
|
.el-submenu {
|
|
|
|
.el-submenu {
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
&>.el-submenu__title {
|
|
|
|
& > .el-submenu__title {
|
|
|
|
padding: 0 !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
|
|
|
|
|
|
|
|
.svg-icon {
|
|
|
|
.svg-icon {
|
|
|
|
@ -159,23 +158,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
.el-menu--collapse {
|
|
|
|
.el-menu--collapse {
|
|
|
|
.el-submenu {
|
|
|
|
.el-submenu {
|
|
|
|
&>.el-submenu__title {
|
|
|
|
& > .el-submenu__title {
|
|
|
|
&>span {
|
|
|
|
& > span {
|
|
|
|
height: 0;
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
width: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
visibility: hidden;
|
|
|
|
visibility: hidden;
|
|
|
|
display: inline-block;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sub-el-icon {
|
|
|
|
|
|
|
|
margin-left: 0!important;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-menu-item span,el-submenu__title span {
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-menu {
|
|
|
|
|
|
|
|
.router-link-active::before {
|
|
|
|
|
|
|
|
width: calc(100% - 4px);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-menu--collapse .el-menu .el-submenu {
|
|
|
|
.el-menu--collapse .el-menu .el-submenu {
|
|
|
|
min-width: $sideBarWidth !important;
|
|
|
|
min-width: $sideBarWidth !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-menu .router-link-active {
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
|
|
background: #e9edfb;
|
|
|
|
|
|
|
|
height: 84%;
|
|
|
|
|
|
|
|
width: calc(100% - 12px);
|
|
|
|
|
|
|
|
border-radius: 22px 0 0 22px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
top: calc((100% - 84%) / 2);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// mobile responsive
|
|
|
|
// mobile responsive
|
|
|
|
.mobile {
|
|
|
|
.mobile {
|
|
|
|
.main-container {
|
|
|
|
.main-container {
|
|
|
|
@ -183,7 +209,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar-container {
|
|
|
|
.sidebar-container {
|
|
|
|
transition: transform .28s;
|
|
|
|
transition: transform 0.28s;
|
|
|
|
width: $sideBarWidth !important;
|
|
|
|
width: $sideBarWidth !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -197,7 +223,6 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.withoutAnimation {
|
|
|
|
.withoutAnimation {
|
|
|
|
|
|
|
|
|
|
|
|
.main-container,
|
|
|
|
.main-container,
|
|
|
|
.sidebar-container {
|
|
|
|
.sidebar-container {
|
|
|
|
transition: none;
|
|
|
|
transition: none;
|
|
|
|
@ -207,7 +232,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
// when menu collapsed
|
|
|
|
// when menu collapsed
|
|
|
|
.el-menu--vertical {
|
|
|
|
.el-menu--vertical {
|
|
|
|
&>.el-menu {
|
|
|
|
& > .el-menu {
|
|
|
|
.svg-icon {
|
|
|
|
.svg-icon {
|
|
|
|
margin-right: 16px;
|
|
|
|
margin-right: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -217,7 +242,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nest-menu .el-submenu>.el-submenu__title,
|
|
|
|
.nest-menu .el-submenu > .el-submenu__title,
|
|
|
|
.el-menu-item {
|
|
|
|
.el-menu-item {
|
|
|
|
&:hover {
|
|
|
|
&:hover {
|
|
|
|
// you can use $subMenuHover
|
|
|
|
// you can use $subMenuHover
|
|
|
|
@ -226,10 +251,11 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// the scroll bar appears when the subMenu is too long
|
|
|
|
// the scroll bar appears when the subMenu is too long
|
|
|
|
>.el-menu--popup {
|
|
|
|
> .el-menu--popup {
|
|
|
|
max-height: 100vh;
|
|
|
|
max-height: 100vh;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-y: auto;
|
|
|
|
background: #0077CC !important;
|
|
|
|
color: #000;
|
|
|
|
|
|
|
|
background: #fff !important;
|
|
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track-piece {
|
|
|
|
&::-webkit-scrollbar-track-piece {
|
|
|
|
background: #d3dce6;
|
|
|
|
background: #d3dce6;
|
|
|
|
@ -244,6 +270,4 @@
|
|
|
|
border-radius: 20px;
|
|
|
|
border-radius: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|