|
|
@@ -5,7 +5,7 @@
|
|
|
.main-container {
|
|
|
min-height: 100%;
|
|
|
transition: margin-left .28s;
|
|
|
- margin-left: vars.$base-sidebar-width;
|
|
|
+ // margin-left: vars.$base-sidebar-width;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
@@ -13,195 +13,190 @@
|
|
|
margin-left: 0!important;
|
|
|
}
|
|
|
|
|
|
- .sidebar-container {
|
|
|
- transition: width 0.28s;
|
|
|
- width: vars.$base-sidebar-width !important;
|
|
|
- height: 100%;
|
|
|
- position: fixed;
|
|
|
- font-size: 0px;
|
|
|
- top: 0;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- z-index: 1001;
|
|
|
- overflow: hidden;
|
|
|
- -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
|
|
|
- box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
|
|
|
-
|
|
|
- // 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: 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: 10px !important;
|
|
|
- }
|
|
|
-
|
|
|
- .el-menu {
|
|
|
- border: none;
|
|
|
- height: 100%;
|
|
|
- width: 100% !important;
|
|
|
- }
|
|
|
-
|
|
|
- .el-menu-item, .menu-title {
|
|
|
- overflow: hidden !important;
|
|
|
- text-overflow: ellipsis !important;
|
|
|
- white-space: nowrap !important;
|
|
|
- height: 44px !important;
|
|
|
- line-height: 44px !important;
|
|
|
- }
|
|
|
-
|
|
|
- .el-menu-item .el-menu-tooltip__trigger {
|
|
|
- display: inline-block !important;
|
|
|
- }
|
|
|
-
|
|
|
- // menu hover
|
|
|
- .sub-menu-title-noDropdown,
|
|
|
- .el-sub-menu__title {
|
|
|
- &:hover {
|
|
|
- background-color: rgba(0, 0, 0, 0.06);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- & .theme-dark .is-active > .el-sub-menu__title {
|
|
|
- color: vars.$base-menu-color-active !important;
|
|
|
- }
|
|
|
-
|
|
|
- & .nest-menu .el-sub-menu>.el-sub-menu__title,
|
|
|
- & .el-sub-menu .el-menu-item {
|
|
|
- min-width: vars.$base-sidebar-width !important;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background-color: rgba(0, 0, 0, 0.06);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- & .theme-dark .nest-menu .el-sub-menu>.el-sub-menu__title,
|
|
|
- & .theme-dark .el-sub-menu .el-menu-item {
|
|
|
- background-color: vars.$base-sub-menu-background;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background-color: vars.$base-sub-menu-hover !important;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // theme-dark 深色主题
|
|
|
- &.theme-dark {
|
|
|
- box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
|
|
|
- border-right: none;
|
|
|
-
|
|
|
- .el-menu-item.is-active {
|
|
|
- position: relative;
|
|
|
-
|
|
|
- &::before {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- inset: 0;
|
|
|
- background-color: var(--current-color-dark-bg, rgba(64, 158, 255, 0.2));
|
|
|
- border-right: 3px solid var(--current-color, #409eff);
|
|
|
- pointer-events: none;
|
|
|
- z-index: 1;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .el-sub-menu.is-active > .el-sub-menu__title {
|
|
|
- color: var(--current-color, #409eff) !important;
|
|
|
- }
|
|
|
-
|
|
|
- .el-menu-item:not(.is-active),
|
|
|
- .submenu-title-noDropdown,
|
|
|
- .el-sub-menu__title {
|
|
|
- position: relative;
|
|
|
-
|
|
|
- &::before {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- inset: 0;
|
|
|
- background-color: transparent;
|
|
|
- pointer-events: none;
|
|
|
- z-index: 1;
|
|
|
- transition: background-color 0.2s;
|
|
|
- }
|
|
|
-
|
|
|
- &:hover::before {
|
|
|
- background-color: var(--current-color-dark-bg, rgba(64, 158, 255, 0.2));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // .sidebar-container {
|
|
|
+ // transition: width 0.28s;
|
|
|
+ // width: vars.$base-sidebar-width !important;
|
|
|
+ // height: 100%;
|
|
|
+ // z-index: 1001;
|
|
|
+ // overflow: hidden;
|
|
|
+ // -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
|
|
|
+ // box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
|
|
|
+
|
|
|
+ // // 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: 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: 10px !important;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .el-menu {
|
|
|
+ // border: none;
|
|
|
+ // height: 100%;
|
|
|
+ // width: 100% !important;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .el-menu-item, .menu-title {
|
|
|
+ // overflow: hidden !important;
|
|
|
+ // text-overflow: ellipsis !important;
|
|
|
+ // white-space: nowrap !important;
|
|
|
+ // height: 44px !important;
|
|
|
+ // line-height: 44px !important;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .el-menu-item .el-menu-tooltip__trigger {
|
|
|
+ // display: inline-block !important;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // // menu hover
|
|
|
+ // .sub-menu-title-noDropdown,
|
|
|
+ // .el-sub-menu__title {
|
|
|
+ // &:hover {
|
|
|
+ // background-color: rgba(0, 0, 0, 0.06);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ // & .theme-dark .is-active > .el-sub-menu__title {
|
|
|
+ // color: vars.$base-menu-color-active !important;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // & .nest-menu .el-sub-menu>.el-sub-menu__title,
|
|
|
+ // & .el-sub-menu .el-menu-item {
|
|
|
+ // min-width: vars.$base-sidebar-width !important;
|
|
|
+
|
|
|
+ // &:hover {
|
|
|
+ // background-color: rgba(0, 0, 0, 0.06);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ // & .theme-dark .nest-menu .el-sub-menu>.el-sub-menu__title,
|
|
|
+ // & .theme-dark .el-sub-menu .el-menu-item {
|
|
|
+ // background-color: vars.$base-sub-menu-background;
|
|
|
+
|
|
|
+ // &:hover {
|
|
|
+ // background-color: vars.$base-sub-menu-hover !important;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ // // theme-dark 深色主题
|
|
|
+ // &.theme-dark {
|
|
|
+ // box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
|
|
|
+ // border-right: none;
|
|
|
+
|
|
|
+ // .el-menu-item.is-active {
|
|
|
+ // position: relative;
|
|
|
+
|
|
|
+ // &::before {
|
|
|
+ // content: '';
|
|
|
+ // position: absolute;
|
|
|
+ // inset: 0;
|
|
|
+ // background-color: var(--current-color-dark-bg, rgba(64, 158, 255, 0.2));
|
|
|
+ // border-right: 3px solid var(--current-color, #409eff);
|
|
|
+ // pointer-events: none;
|
|
|
+ // z-index: 1;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .el-sub-menu.is-active > .el-sub-menu__title {
|
|
|
+ // color: var(--current-color, #409eff) !important;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .el-menu-item:not(.is-active),
|
|
|
+ // .submenu-title-noDropdown,
|
|
|
+ // .el-sub-menu__title {
|
|
|
+ // position: relative;
|
|
|
+
|
|
|
+ // &::before {
|
|
|
+ // content: '';
|
|
|
+ // position: absolute;
|
|
|
+ // inset: 0;
|
|
|
+ // background-color: transparent;
|
|
|
+ // pointer-events: none;
|
|
|
+ // z-index: 1;
|
|
|
+ // transition: background-color 0.2s;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // &:hover::before {
|
|
|
+ // background-color: var(--current-color-dark-bg, rgba(64, 158, 255, 0.2));
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
- // theme-light 浅色主题
|
|
|
- &.theme-light {
|
|
|
- border-right: 1px solid #e8eaf0;
|
|
|
- box-shadow: none;
|
|
|
-
|
|
|
- .el-menu-item,
|
|
|
- .el-sub-menu__title {
|
|
|
- color: rgba(0, 0, 0, 0.65);
|
|
|
- }
|
|
|
-
|
|
|
- .el-menu-item.is-active {
|
|
|
- color: var(--current-color, #409eff) !important;
|
|
|
- position: relative;
|
|
|
-
|
|
|
- &::before {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- inset: 0;
|
|
|
- background-color: var(--current-color-light, #ecf5ff);
|
|
|
- border-right: 3px solid var(--current-color, #409eff);
|
|
|
- pointer-events: none;
|
|
|
- z-index: 1;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .el-sub-menu.is-active > .el-sub-menu__title {
|
|
|
- color: var(--current-color, #409eff) !important;
|
|
|
- }
|
|
|
-
|
|
|
- .el-menu-item:not(.is-active):hover,
|
|
|
- .submenu-title-noDropdown:hover,
|
|
|
- .el-sub-menu__title:hover {
|
|
|
- background-color: #f5f7fa;
|
|
|
- color: rgba(0, 0, 0, 0.85) !important;
|
|
|
- }
|
|
|
-
|
|
|
- .nest-menu .el-sub-menu > .el-sub-menu__title,
|
|
|
- .el-sub-menu .el-menu-item {
|
|
|
- background-color: #fafafa;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background-color: #f0f5ff;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // // theme-light 浅色主题
|
|
|
+ // &.theme-light {
|
|
|
+ // border-right: 1px solid #e8eaf0;
|
|
|
+ // box-shadow: none;
|
|
|
+
|
|
|
+ // .el-menu-item,
|
|
|
+ // .el-sub-menu__title {
|
|
|
+ // color: rgba(0, 0, 0, 0.65);
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .el-menu-item.is-active {
|
|
|
+ // color: var(--current-color, #409eff) !important;
|
|
|
+ // position: relative;
|
|
|
+
|
|
|
+ // &::before {
|
|
|
+ // content: '';
|
|
|
+ // position: absolute;
|
|
|
+ // inset: 0;
|
|
|
+ // background-color: var(--current-color-light, #ecf5ff);
|
|
|
+ // border-right: 3px solid var(--current-color, #409eff);
|
|
|
+ // pointer-events: none;
|
|
|
+ // z-index: 1;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .el-sub-menu.is-active > .el-sub-menu__title {
|
|
|
+ // color: var(--current-color, #409eff) !important;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .el-menu-item:not(.is-active):hover,
|
|
|
+ // .submenu-title-noDropdown:hover,
|
|
|
+ // .el-sub-menu__title:hover {
|
|
|
+ // background-color: #f5f7fa;
|
|
|
+ // color: rgba(0, 0, 0, 0.85) !important;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .nest-menu .el-sub-menu > .el-sub-menu__title,
|
|
|
+ // .el-sub-menu .el-menu-item {
|
|
|
+ // background-color: #fafafa;
|
|
|
+
|
|
|
+ // &:hover {
|
|
|
+ // background-color: #f0f5ff;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
.hideSidebar {
|
|
|
.sidebar-container {
|