| | |
| | | #app {
|
| | |
|
| | | .main-container {
|
| | | min-height: 100%;
|
| | | transition: margin-left .28s;
|
| | | transition: margin-left 0.28s;
|
| | | margin-left: $base-sidebar-width;
|
| | | position: relative;
|
| | | background: transparent;
|
| | | }
|
| | |
|
| | | .sidebarHide {
|
| | | margin-left: 0!important;
|
| | | margin-left: 0 !important;
|
| | | }
|
| | |
|
| | | .sidebar-container {
|
| | | -webkit-transition: width .28s;
|
| | | transition: width 0.28s;
|
| | | 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);
|
| | | padding: 12px 0 16px 16px;
|
| | | background: transparent;
|
| | | box-shadow: none;
|
| | |
|
| | | // 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;
|
| | | transition: 0s width ease-in-out, 0s padding-left ease-in-out,
|
| | | 0s padding-right ease-in-out;
|
| | | }
|
| | |
|
| | | .scrollbar-wrapper {
|
| | |
| | |
|
| | | &.has-logo {
|
| | | .el-scrollbar {
|
| | | height: calc(100% - 50px);
|
| | | height: calc(100% - 72px);
|
| | | margin-top: 10px;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | border: none;
|
| | | height: 100%;
|
| | | width: 100% !important;
|
| | | padding: 10px 8px 18px;
|
| | | border-radius: 0 28px 28px 0;
|
| | | background: var(--menu-surface);
|
| | | backdrop-filter: blur(18px);
|
| | | box-shadow: var(--shadow-sm);
|
| | | }
|
| | |
|
| | | .el-menu-item, .menu-title {
|
| | | .el-menu-item,
|
| | | .menu-title {
|
| | | overflow: hidden !important;
|
| | | text-overflow: ellipsis !important;
|
| | | white-space: nowrap !important;
|
| | |
| | | .sub-menu-title-noDropdown,
|
| | | .el-sub-menu__title {
|
| | | &:hover {
|
| | | background-color: rgba(0, 0, 0, 0.06) !important;
|
| | | background-color: var(--menu-hover) !important;
|
| | | }
|
| | | }
|
| | |
|
| | | & .theme-dark .is-active > .el-sub-menu__title {
|
| | | color: $base-menu-color-active !important;
|
| | | & .theme-light .is-active > .el-sub-menu__title {
|
| | | color: var(--current-color) !important;
|
| | | }
|
| | |
|
| | | & .nest-menu .el-sub-menu>.el-sub-menu__title,
|
| | | & .nest-menu .el-sub-menu > .el-sub-menu__title,
|
| | | & .el-sub-menu .el-menu-item {
|
| | | min-width: $base-sidebar-width !important;
|
| | |
|
| | | &:hover {
|
| | | background-color: rgba(0, 0, 0, 0.06) !important;
|
| | | background-color: var(--menu-hover) !important;
|
| | | }
|
| | | &.is-active {
|
| | | background-color: var(--menu-active-bg) !important;
|
| | | }
|
| | | }
|
| | |
|
| | | & .theme-dark .nest-menu .el-sub-menu>.el-sub-menu__title,
|
| | | & .theme-dark .el-sub-menu .el-menu-item {
|
| | | background-color: $base-sub-menu-background !important;
|
| | | & .theme-light .nest-menu .el-sub-menu > .el-sub-menu__title,
|
| | | & .theme-light .el-sub-menu .el-menu-item {
|
| | | //background-color: transparent;
|
| | |
|
| | | &:hover {
|
| | | background-color: $base-sub-menu-hover !important;
|
| | | background-color: var(--menu-hover) !important;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | .el-sub-menu {
|
| | | overflow: hidden;
|
| | |
|
| | | &>.el-sub-menu__title {
|
| | | & > .el-sub-menu__title {
|
| | | padding: 0 !important;
|
| | |
|
| | | .svg-icon {
|
| | | margin-left: 20px;
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | |
|
| | | .el-menu--collapse {
|
| | | .el-sub-menu {
|
| | | &>.el-sub-menu__title {
|
| | | &>span {
|
| | | & > .el-sub-menu__title {
|
| | | & > span {
|
| | | height: 0;
|
| | | width: 0;
|
| | | overflow: hidden;
|
| | | visibility: hidden;
|
| | | display: inline-block;
|
| | | }
|
| | | &>i {
|
| | | & > i {
|
| | | height: 0;
|
| | | width: 0;
|
| | | overflow: hidden;
|
| | |
| | | }
|
| | |
|
| | | .sidebar-container {
|
| | | transition: transform .28s;
|
| | | transition: transform 0.28s;
|
| | | width: $base-sidebar-width !important;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | .withoutAnimation {
|
| | |
|
| | | .main-container,
|
| | | .sidebar-container {
|
| | | transition: none;
|
| | |
| | |
|
| | | // when menu collapsed
|
| | | .el-menu--vertical {
|
| | | &>.el-menu {
|
| | | & > .el-menu {
|
| | | .svg-icon {
|
| | | margin-right: 16px;
|
| | | }
|
| | | }
|
| | |
|
| | | .nest-menu .el-sub-menu>.el-sub-menu__title,
|
| | | .nest-menu .el-sub-menu > .el-sub-menu__title,
|
| | | .el-menu-item {
|
| | | &:hover {
|
| | | // you can use $sub-menuHover
|
| | | background-color: rgba(0, 0, 0, 0.06) !important;
|
| | | background-color: var(--menu-hover) !important;
|
| | | }
|
| | | &.is-active {
|
| | | background-color: var(--menu-active-bg) !important;
|
| | | }
|
| | | }
|
| | |
|
| | | // the scroll bar appears when the sub-menu is too long
|
| | | >.el-menu--popup {
|
| | | > .el-menu--popup {
|
| | | max-height: 100vh;
|
| | | overflow-y: auto;
|
| | | padding: 8px;
|
| | | border-radius: 18px;
|
| | | border: 1px solid var(--surface-border);
|
| | | box-shadow: var(--shadow-md);
|
| | |
|
| | | &::-webkit-scrollbar-track-piece {
|
| | | background: #d3dce6;
|
| | | background: #dfe7e1;
|
| | | }
|
| | |
|
| | | &::-webkit-scrollbar {
|
| | |
| | | }
|
| | |
|
| | | &::-webkit-scrollbar-thumb {
|
| | | background: #99a9bf;
|
| | | background: #9aa79e;
|
| | | border-radius: 20px;
|
| | | }
|
| | | }
|