From a88eab39f6b2f5c33913d51fac4e885c052ed4a1 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 21 八月 2025 14:39:00 +0800 Subject: [PATCH] 整体样式修改 --- src/assets/styles/sidebar.scss | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss index c2f4c4b..9a4c487 100644 --- a/src/assets/styles/sidebar.scss +++ b/src/assets/styles/sidebar.scss @@ -12,20 +12,18 @@ } .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; - top: 50px; + top: 0; bottom: 0; left: 0; z-index: 1001; overflow: hidden; -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35); - box-shadow: none; + box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1); // reset element-ui css .horizontal-collapse-transition { @@ -84,7 +82,7 @@ .sub-menu-title-noDropdown, .el-sub-menu__title { &:hover { - background-color: #ffffff !important; + background-color: rgba(0, 0, 0, 0.06) !important; } } @@ -97,7 +95,7 @@ min-width: $base-sidebar-width !important; &:hover { - background-color: #ffffff !important; + background-color: rgba(0, 0, 0, 0.06) !important; } } @@ -106,7 +104,7 @@ background-color: $base-sub-menu-background; &:hover { - background-color: #ffffff !important; + background-color: $base-sub-menu-hover !important; } } } @@ -213,7 +211,7 @@ .el-menu-item { &:hover { // you can use $sub-menuHover - background-color: #ffffff !important; + background-color: rgba(0, 0, 0, 0.06) !important; } } -- Gitblit v1.9.3