From cf840d299d6cd0308716c0baba06d08d920aa2a7 Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 27 Feb 2026 11:07:11 +0800 Subject: [PATCH] =?UTF-8?q?Reapply=20"codex=20=20=E8=AF=95=E7=94=A8?= =?UTF-8?q?=EF=BC=8C=E7=BE=8E=E5=8C=96"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 0315b064c59fa99d68b8472fa3c052863bd395b3. --- admin/dashboard/templates/base.html | 50 ++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/admin/dashboard/templates/base.html b/admin/dashboard/templates/base.html index 3879e67..482a0e6 100644 --- a/admin/dashboard/templates/base.html +++ b/admin/dashboard/templates/base.html @@ -98,30 +98,56 @@ ------------------------------ */ .sidebar { width: 190px; - background: #fafafa; - border-right: 1px solid #e5e6eb; - box-shadow: 2px 0 4px rgba(0,0,0,0.03); + background: #0b1d33; + border-right: 1px solid #0f2a4a; + box-shadow: 4px 0 14px rgba(0, 163, 255, 0.12); } /* Element 菜单自定义美化 */ .el-menu { border-right: none !important; + background: transparent !important; + padding: 6px 6px !important; } .el-menu-item { height: 46px !important; line-height: 46px !important; - margin: 2px 4px !important; - border-radius: 0 !important; - transition: 0.2s !important; + margin: 4px 2px !important; + border-radius: 6px !important; + color: #cfe6ff !important; + transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important; + position: relative; } .el-menu-item:hover { - background: #e5e6eb55 !important; + background: rgba(60, 203, 255, 0.12) !important; + color: #e9f6ff !important; } .el-menu-item.is-active { - background: #e3e6ff !important; - color: #2f54eb !important; + background: rgba(60, 203, 255, 0.18) !important; + color: #5bd3ff !important; font-weight: 600; + box-shadow: inset 0 0 0 1px rgba(91, 211, 255, 0.35), + 0 0 10px rgba(91, 211, 255, 0.25); + } + .el-menu-item.is-active::before { + content: ""; + position: absolute; + left: 0; + top: 10px; + bottom: 10px; + width: 3px; + background: #5bd3ff; + box-shadow: 0 0 10px rgba(91, 211, 255, 0.6); + border-radius: 2px; + } + .el-menu-item i { + color: #8db7e6 !important; + margin-right: 6px; + } + .el-menu-item.is-active i, + .el-menu-item:hover i { + color: #5bd3ff !important; } /* ------------------------------ @@ -199,9 +225,9 @@