From 2f08f4b8678b18f460b93e6c31461d51664aa235 Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 27 Feb 2026 13:03:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=BE=8E=E5=8C=96=E4=B8=80?= =?UTF-8?q?=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/templates/base.html | 109 ++++++++++-------- admin/dashboard/templates/login.html | 36 +++--- admin/dashboard/templates/plugins_manage.html | 4 +- 3 files changed, 80 insertions(+), 69 deletions(-) diff --git a/admin/dashboard/templates/base.html b/admin/dashboard/templates/base.html index e202803..22ba464 100644 --- a/admin/dashboard/templates/base.html +++ b/admin/dashboard/templates/base.html @@ -14,24 +14,26 @@ GLOBAL RESET ------------------------------ */ :root { - --tech-bg: #0a0b0f; - --tech-bg-2: #0c0e14; - --tech-panel: #11151f; - --tech-panel-2: #141a28; - --tech-border: #1e2535; - --tech-border-2: #252d42; - --tech-text: #e2e8f0; - --tech-text-strong: #f1f5f9; - --tech-text-muted: #94a3b8; - --tech-accent: #7c3aed; - --tech-accent-2: #8b5cf6; - --tech-highlight: #a78bfa; - --tech-silver: #cbd5e1; - --tech-glow: #22d3ee; - --tech-success: #34d399; - --tech-warning: #fbbf24; + --tech-bg: #fdfcfb; + --tech-bg-2: #fefefc; + --tech-panel: #ffffff; + --tech-panel-2: #fcfaf8; + --tech-sub-surface: #faf9f7; + --tech-border: #e5e0d9; + --tech-border-2: #e8e3dc; + --tech-text: #111827; + --tech-text-strong: #0f172a; + --tech-text-muted: #6b7280; + --tech-accent: #f97316; + --tech-accent-2: #f59e0b; + --tech-accent-soft: #fffbeb; + --tech-highlight: #fbbf24; + --tech-accent-alt: #8b5cf6; + --tech-glow: #fbbf24; + --tech-success: #22c55e; + --tech-warning: #f59e0b; --tech-danger: #f87171; - --tech-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); + --tech-shadow: 0 10px 24px rgba(17, 24, 39, 0.08); } body { margin: 0; @@ -68,7 +70,7 @@ display: flex; align-items: center; justify-content: space-between; - box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); + box-shadow: var(--tech-shadow); position: sticky; top: 0; z-index: 100; @@ -80,8 +82,8 @@ right: 12px; bottom: 0; height: 1px; - background: rgba(167, 139, 250, 0.5); - box-shadow: 0 0 10px rgba(167, 139, 250, 0.5); + background: rgba(245, 158, 11, 0.35); + box-shadow: 0 0 8px rgba(245, 158, 11, 0.35); } .header-left { @@ -93,7 +95,7 @@ width: 36px; height: 36px; margin-right: 8px; - filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.45)); + filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.25)); } .header-right { @@ -113,7 +115,7 @@ transition: 0.2s; } .logout-btn:hover { - color: var(--tech-accent-2); + color: var(--tech-accent); } .header h2 { color: var(--tech-text-strong); @@ -133,9 +135,9 @@ ------------------------------ */ .sidebar { width: 190px; - background: var(--tech-bg-2); + background: var(--tech-panel-2); border-right: 1px solid var(--tech-border); - box-shadow: 4px 0 18px rgba(0, 0, 0, 0.35); + box-shadow: var(--tech-shadow); } /* Element 菜单自定义美化 */ @@ -155,15 +157,15 @@ position: relative; } .el-menu-item:hover { - background: rgba(124, 58, 237, 0.18) !important; + background: var(--tech-accent-soft) !important; color: var(--tech-text-strong) !important; } .el-menu-item.is-active { - background: rgba(124, 58, 237, 0.25) !important; - color: var(--tech-accent-2) !important; + background: var(--tech-accent-soft) !important; + color: var(--tech-accent) !important; font-weight: 600; - box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35), - 0 0 12px rgba(167, 139, 250, 0.35); + box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25), + 0 0 10px rgba(245, 158, 11, 0.2); } .el-menu-item.is-active::before { content: ""; @@ -172,17 +174,17 @@ top: 10px; bottom: 10px; width: 3px; - background: var(--tech-accent-2); - box-shadow: 0 0 10px rgba(167, 139, 250, 0.7); + background: var(--tech-accent); + box-shadow: 0 0 8px rgba(245, 158, 11, 0.35); border-radius: 2px; } .el-menu-item i { - color: #a1adc2 !important; + color: var(--tech-text-muted) !important; margin-right: 6px; } .el-menu-item.is-active i, .el-menu-item:hover i { - color: var(--tech-accent-2) !important; + color: var(--tech-accent) !important; } /* ------------------------------ @@ -200,8 +202,8 @@ position: absolute; inset: 0; background-image: - linear-gradient(rgba(37, 45, 66, 0.6) 1px, transparent 1px), - linear-gradient(90deg, rgba(37, 45, 66, 0.6) 1px, transparent 1px); + linear-gradient(rgba(232, 227, 220, 0.7) 1px, transparent 1px), + linear-gradient(90deg, rgba(232, 227, 220, 0.7) 1px, transparent 1px); background-size: 28px 28px; opacity: 0.35; pointer-events: none; @@ -213,8 +215,8 @@ right: 12px; top: 0; height: 1px; - background: rgba(167, 139, 250, 0.45); - box-shadow: 0 0 12px rgba(167, 139, 250, 0.6); + background: rgba(245, 158, 11, 0.35); + box-shadow: 0 0 10px rgba(245, 158, 11, 0.35); pointer-events: none; } .content > * { @@ -257,10 +259,10 @@ TECH THEME OVERRIDES ------------------------------ */ a { - color: var(--tech-accent); + color: var(--tech-accent-alt); } a:hover { - color: var(--tech-accent-2); + color: #a78bfa; } .el-card__header { @@ -299,8 +301,8 @@ border-color: var(--tech-danger) !important; } .el-button--info { - background: #64748b !important; - border-color: #64748b !important; + background: #6b7280 !important; + border-color: #6b7280 !important; } .el-button--success:hover, .el-button--warning:hover, @@ -323,7 +325,7 @@ color: var(--tech-accent) !important; } .el-button--text { - color: var(--tech-accent) !important; + color: var(--tech-accent-alt) !important; } .el-input__inner, @@ -371,7 +373,7 @@ border-right: 1px solid var(--tech-border) !important; } .el-table__row:hover > td { - background: #161c28 !important; + background: var(--tech-accent-soft) !important; } .el-pagination .el-pager li.active { @@ -381,10 +383,19 @@ .el-pagination .el-pager li:hover { color: var(--tech-accent) !important; } + .el-pagination .el-pager li { + background: var(--tech-panel-2) !important; + border: 1px solid var(--tech-border) !important; + color: var(--tech-text) !important; + } .el-pagination button, .el-pagination span { color: var(--tech-text-muted) !important; } + .el-pagination button { + background: var(--tech-panel-2) !important; + border: 1px solid var(--tech-border) !important; + } .el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li { @@ -400,13 +411,13 @@ color: var(--tech-text-muted) !important; } .el-tabs__item.is-active { - color: var(--tech-accent) !important; + color: var(--tech-accent-alt) !important; } .el-tabs__item:hover { - color: var(--tech-accent) !important; + color: var(--tech-accent-alt) !important; } .el-tabs__active-bar { - background: var(--tech-accent) !important; + background: var(--tech-accent-alt) !important; } .el-tag { @@ -477,9 +488,9 @@