From e943d5c81c311fc9eb51513c018689b6978ae135 Mon Sep 17 00:00:00 2001
From: birt <2499248221@qq.com>
Date: 星期日, 13 四月 2025 13:08:54 +0800
Subject: [PATCH] 123123

---
 zhitan-vue/src/assets/styles/sidebar.scss |  102 +++++++++++++++++++++++++++++++--------------------
 1 files changed, 62 insertions(+), 40 deletions(-)

diff --git a/zhitan-vue/src/assets/styles/sidebar.scss b/zhitan-vue/src/assets/styles/sidebar.scss
index 4cdd9cf..297e8e4 100644
--- a/zhitan-vue/src/assets/styles/sidebar.scss
+++ b/zhitan-vue/src/assets/styles/sidebar.scss
@@ -1,7 +1,7 @@
 .themeDark {
   #app {
     .el-menu-item.is-active {
-      background: #3271eb !important;
+     // background: #3271eb !important;
       // border-radius: 30px 30px 30px 30px !important;
       color: #fff;
     }
@@ -30,11 +30,12 @@
       background-color: $base-menu-background;
       height: 100%;
       position: fixed;
-      top: 0;
+      top: 60px;
       bottom: 0;
       left: 0;
-      z-index: 1001;
+      z-index: 999;
       overflow: hidden;
+      background-color: #002866 !important;
       -webkit-box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
       box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
       font-family: OPPOSans, OPPOSans;
@@ -50,10 +51,11 @@
 
       .scrollbar-wrapper {
         overflow-x: hidden !important;
+        height: calc(100% - 290px) !important;
       }
 
       .el-scrollbar__bar.is-vertical {
-        right: 0px;
+        right: 0 !important;
       }
 
       .el-scrollbar {
@@ -92,7 +94,7 @@
       .menu-title {
         overflow: hidden !important;
         font-weight: 400 !important;
-        font-size: 16px !important;
+        font-size: 14px !important;
       }
 
       // @media (min-width: 1440px) {
@@ -191,22 +193,32 @@
       }
 
       .el-menu--collapse {
-        .el-sub-menu {
-          & > .el-sub-menu__title {
-            & > span {
-              height: 0;
-              width: 0;
-              overflow: hidden;
-              visibility: hidden;
-              display: inline-block;
-            }
-            & > i {
-              height: 0;
-              width: 0;
-              overflow: hidden;
-              visibility: hidden;
-              display: inline-block;
-            }
+        width: 54px !important;
+
+        /* 娓呴櫎鍚庝唬閫夋嫨鍣ㄤ腑骞叉壈灞呬腑鐨勬牱寮� */
+        .el-sub-menu, .el-menu-item {
+          margin: 0 !important;
+          padding: 0 !important;
+          width: 100% !important;
+
+          /* 璁╁浘鏍囧拰鑿滃崟椤瑰眳涓� */
+          .el-menu-item, .el-sub-menu__title {
+            width: 36px !important;
+            min-width: 36px !important;
+            height: 38px !important;
+            line-height: 38px !important;
+            margin: 4px 9px !important; /* 绮剧‘璁$畻灞呬腑杈硅窛 */
+            padding: 0 !important;
+            display: flex !important;
+            justify-content: center !important;
+            align-items: center !important;
+            border-radius: 4px !important;
+          }
+
+          /* 纭繚鍥炬爣灞呬腑 */
+          .svg-icon, .el-icon {
+            margin: 0 !important;
+            padding: 0 !important;
           }
         }
       }
@@ -284,7 +296,7 @@
 .themeLight {
   #app {
     .el-menu-item.is-active {
-      background: #e0eafc !important;
+     
       // border-radius: 30px 30px 30px 30px !important;
     }
 
@@ -311,10 +323,10 @@
       background-color: $base-menu-background;
       height: 100%;
       position: fixed;
-      top: 0;
+      top: 60px;
       bottom: 0;
       left: 0;
-      z-index: 1001;
+      z-index: 999;
       overflow: hidden;
       -webkit-box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
       box-shadow: none;
@@ -478,22 +490,32 @@
       }
 
       .el-menu--collapse {
-        .el-sub-menu {
-          & > .el-sub-menu__title {
-            & > span {
-              height: 0;
-              width: 0;
-              overflow: hidden;
-              visibility: hidden;
-              display: inline-block;
-            }
-            & > i {
-              height: 0;
-              width: 0;
-              overflow: hidden;
-              visibility: hidden;
-              display: inline-block;
-            }
+        width: 54px !important;
+
+        /* 娓呴櫎鍚庝唬閫夋嫨鍣ㄤ腑骞叉壈灞呬腑鐨勬牱寮� */
+        .el-sub-menu, .el-menu-item {
+          margin: 0 !important;
+          padding: 0 !important;
+          width: 100% !important;
+
+          /* 璁╁浘鏍囧拰鑿滃崟椤瑰眳涓� */
+          .el-menu-item, .el-sub-menu__title {
+            width: 36px !important;
+            min-width: 36px !important;
+            height: 38px !important;
+            line-height: 38px !important;
+            margin: 4px 9px !important; /* 绮剧‘璁$畻灞呬腑杈硅窛 */
+            padding: 0 !important;
+            display: flex !important;
+            justify-content: center !important;
+            align-items: center !important;
+            border-radius: 4px !important;
+          }
+
+          /* 纭繚鍥炬爣灞呬腑 */
+          .svg-icon, .el-icon {
+            margin: 0 !important;
+            padding: 0 !important;
           }
         }
       }

--
Gitblit v1.9.3