From 389e4db37e32715d8808b2ff3c7d291e785508f7 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 7 Apr 2026 13:18:08 +0800 Subject: [PATCH] fix: improve dashboard action button visibility --- admin/dashboard/templates/base.html | 30 ++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/admin/dashboard/templates/base.html b/admin/dashboard/templates/base.html index 5f7a51a..4390b28 100644 --- a/admin/dashboard/templates/base.html +++ b/admin/dashboard/templates/base.html @@ -362,7 +362,8 @@ background: rgba(255,255,255,0.96) !important; } - .el-button--text { + .el-button--text, + .el-button--text:not(.is-disabled) { color: #334155 !important; font-weight: 600 !important; padding: 6px 10px !important; @@ -372,16 +373,39 @@ } .el-button--text:hover, - .el-button--text:focus { + .el-button--text:focus, + .el-button--text:not(.is-disabled):hover, + .el-button--text:not(.is-disabled):focus { color: var(--primary) !important; background: rgba(99, 102, 241, 0.08) !important; border-color: rgba(99, 102, 241, 0.18) !important; } - .el-button--text [class*="el-icon-"] { + .el-button--text [class*="el-icon-"], + .el-button--text span { color: inherit !important; } + .el-table .el-button--text, + .el-table .el-button--text:not(.is-disabled), + .el-card .el-button--text, + .el-card .el-button--text:not(.is-disabled) { + color: #1e293b !important; + background: rgba(255, 255, 255, 0.92) !important; + border-color: rgba(100, 116, 139, 0.18) !important; + box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important; + } + + .el-table .el-button--text:hover, + .el-table .el-button--text:focus, + .el-card .el-button--text:hover, + .el-card .el-button--text:focus { + color: var(--primary) !important; + background: rgba(99, 102, 241, 0.10) !important; + border-color: rgba(99, 102, 241, 0.20) !important; + box-shadow: 0 8px 16px rgba(79, 70, 229, 0.10) !important; + } + .el-button--success, .el-button--warning, .el-button--danger,