From 159e24537fecf1dc5ea6074446934cce74964cc6 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Wed, 24 Aug 2022 13:51:59 +0800 Subject: [PATCH] update --- src/assets/styles/sidebar.scss | 92 ++++++++++++++++++++++++++-------- src/components/Ad/index.vue | 24 --------- src/layout/index.vue | 7 +-- 3 files changed, 71 insertions(+), 52 deletions(-) delete mode 100644 src/components/Ad/index.vue diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss index b85151a..3811e44 100644 --- a/src/assets/styles/sidebar.scss +++ b/src/assets/styles/sidebar.scss @@ -11,7 +11,7 @@ transition: width 0.28s; width: $sideBarWidth !important; background-color: $menuBg; - height: 66.4%; + height: 100%; position: fixed; font-size: 0; top: 0; @@ -90,12 +90,7 @@ .sidebar-container { width: 54px !important; } - .sidebar-container-ad { - width: 54px !important; - } - #ww-container{ - display: none; - } + .main-container { margin-left: 54px; } @@ -159,33 +154,21 @@ width: $sideBarWidth !important; } - .sidebar-container-ad { - transition: transform .28s; - width: $sideBarWidth !important; - } - &.hideSidebar { .sidebar-container { pointer-events: none; transition-duration: 0.3s; transform: translate3d(-$sideBarWidth, 0, 0); } - .sidebar-container-ad { - pointer-events: none; - transition-duration: 0.3s; - transform: translate3d(-$sideBarWidth, 0, 0); - } } } .withoutAnimation { + .main-container, .sidebar-container { transition: none; } - .sidebar-container-ad { - transition: none; - } } } @@ -229,11 +212,76 @@ transition: width 0.28s; width: $sideBarWidth !important; background-color: $menuBg; - height: 33.6%; + height: 30%; position: fixed; font-size: 0; bottom: 0; left: 0; - z-index: 999; + z-index: 1001; overflow: hidden; + + // 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: 0; + } + + .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: 16px; + } + + .el-menu { + border: none; + height: 100%; + width: 100% !important; + } + + // menu hover + .submenu-title-noDropdown, + .el-submenu__title { + &:hover { + background-color: $menuHover !important; + } + } + + .is-active>.el-submenu__title { + color: $subMenuActiveText !important; + } + + & .nest-menu .el-submenu>.el-submenu__title, + & .el-submenu .el-menu-item { + min-width: $sideBarWidth !important; + background-color: $subMenuBg !important; + + &:hover { + background-color: $subMenuHover !important; + } + } } diff --git a/src/components/Ad/index.vue b/src/components/Ad/index.vue deleted file mode 100644 index 18baeea..0000000 --- a/src/components/Ad/index.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/src/layout/index.vue b/src/layout/index.vue index 3bacd27..df40e4d 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -2,9 +2,6 @@
-
@@ -22,7 +19,6 @@