From b47c081ac3ac59ea5704ab12579c029a55991961 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期一, 29 九月 2025 16:32:49 +0800
Subject: [PATCH] 修改新增

---
 src/assets/styles/sidebar.scss |   63 +++++++++++++++++++++++--------
 1 files changed, 47 insertions(+), 16 deletions(-)

diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss
index 62cafc1..42fc915 100644
--- a/src/assets/styles/sidebar.scss
+++ b/src/assets/styles/sidebar.scss
@@ -14,7 +14,6 @@
 
   .sidebar-container {
     -webkit-transition: width .28s;
-    transition: width 0.28s;
     width: $base-sidebar-width !important;
     background-color: $base-menu-background;
     height: calc(100% - 20px);
@@ -23,11 +22,18 @@
     top: 10px;
     bottom: 10px;
     left: 15px;
+    box-sizing: border-box;
     z-index: 1001;
     overflow: hidden;
-    border-radius: 0.6rem;
-    -webkit-box-shadow: 8px 0 15px rgba(0,21,41,.08);
-    box-shadow: 8px 0 15px rgba(0,21,41,.08);
+    border-radius: 1rem;
+    transition: 0.6s;
+    border: 2px solid $base-menu-light-background;
+
+    &:hover{
+      border: 2px solid #fff;
+      -webkit-box-shadow: 8px 3px 15px rgba(15,53,138,.2);
+      box-shadow: 8px 3px 15px rgba(15,53,138,.2);
+    }
 
     // reset element-ui css
     .horizontal-collapse-transition {
@@ -70,37 +76,62 @@
       border: none;
       height: 100%;
       width: 100% !important;
+
+      .el-menu-item, .menu-title {
+        overflow: hidden !important;
+        text-overflow: ellipsis !important;
+        white-space: nowrap !important;
+        font-size: 0.9rem;
+      }
+
+      .el-menu-item .el-menu-tooltip__trigger {
+        display: inline-block !important;
+      }
+
     }
 
-    .el-menu-item, .menu-title {
-      overflow: hidden !important;
-      text-overflow: ellipsis !important;
-      white-space: nowrap !important;
-      font-size: 1rem;
-    }
 
-    .el-menu-item .el-menu-tooltip__trigger {
-      display: inline-block !important;
+    .el-menu--inline:not(:has(.el-sub-menu)){
+      background-color: #3272ff !important;
+      box-shadow: 0 3px 8px rgba(0,0,0,.1) inset, 0 -3px 8px rgba(255,255,255,.1) inset;
     }
 
     // menu hover
     .sub-menu-title-noDropdown,
     .el-sub-menu__title {
+      overflow: hidden;
+      transition: 0.6s;
       &:hover {
-        background-color: rgba(0, 0, 0, 0.06) !important;
+        color: #fff !important;
+        background-color: rgba(255,255,255,.5) !important;
       }
     }
 
     & .theme-dark .is-active > .el-sub-menu__title {
-      color: $base-menu-color-active !important;
+      color: #fff !important;
+      background-color: #2563eb !important;
     }
 
     & .nest-menu .el-sub-menu>.el-sub-menu__title,
     & .el-sub-menu .el-menu-item {
-      min-width: $base-sidebar-width !important;
+      //padding: 0 10px;
+      //margin-left: calc(12px + var(--el-menu-level) * 12px);
+      //margin-right: 10px;
+      //width: calc($base-sidebar-width - calc(22px + var(--el-menu-level) * 12px));
+      //border-radius: 8px;
+      //transition: 0.6s;
 
       &:hover {
-        background-color: rgba(0, 0, 0, 0.06) !important;
+        color: #fff;
+        background-color: rgba(255,255,255,.5) !important;
+      }
+      &.is-active {
+        color: #fff;
+        background-color: rgba(255,255,255,.2) !important;
+      }
+
+      .el-sub-menu__icon-arrow{
+        width: auto;
       }
     }
 

--
Gitblit v1.9.2