From 79427dd90676020e6e0b204af731b7bf1a4ef462 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期一, 17 十一月 2025 12:15:16 +0800
Subject: [PATCH] 修改新增
---
src/assets/styles/sidebar.scss | 30 +++++++++++++++++++++++++-----
1 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss
index 512115c..547fd9f 100644
--- a/src/assets/styles/sidebar.scss
+++ b/src/assets/styles/sidebar.scss
@@ -88,12 +88,32 @@
display: inline-block !important;
}
+ .el-sub-menu .el-menu-item.is-active{
+ background: linear-gradient(#ccc,#fff) !important;
+ //background-color: #fff;
+ border-top: 1px solid rgba(255,255,255,.2);
+ border-bottom: 1px solid rgba(255,255,255,.2);
+ width: 94%;
+ margin-left: 3%;
+ border-radius: 4px;
+ }
+
+ .el-menu-item.is-active{
+ background: linear-gradient(#ccc,#fff) !important;
+ //background-color: #fff;
+ border-top: 1px solid rgba(255,255,255,.2);
+ border-bottom: 1px solid rgba(255,255,255,.2);
+ width: 94%;
+ margin-left: 3%;
+ border-radius: 4px;
+ }
+
}
.el-menu--inline:not(:has(.el-sub-menu)){
- background-color: #2563eb !important;
- box-shadow: 0 3px 5px rgba(0,0,0,.1) inset;
+ background-color: #3272ff !important;
+ box-shadow: 0 3px 8px rgba(0,0,0,.2) inset, 0 -3px 8px rgba(0,0,0,.2) inset;
}
// menu hover
@@ -124,11 +144,11 @@
&:hover {
color: #fff;
background-color: rgba(255,255,255,.5) !important;
+ width: 96%;
+ margin-left: 2%;
}
&.is-active {
- color: #fff;
- background-color: rgba(255,255,255,.2) !important;
- box-shadow: 0 3px 5px rgba(0,0,0,.1) inset;
+ color: #2563eb;
}
.el-sub-menu__icon-arrow{
--
Gitblit v1.9.2