From 5880e5a0bec57345b28967b4a132640597fa5c77 Mon Sep 17 00:00:00 2001 From: seaHi Date: Sat, 15 Aug 2026 11:54:54 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=B8=8E=E4=B8=BB=E9=A2=98=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/ConfirmDialog.svelte | 35 +++++++++---------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/src/lib/components/ConfirmDialog.svelte b/src/lib/components/ConfirmDialog.svelte index 301815f..2faeff0 100644 --- a/src/lib/components/ConfirmDialog.svelte +++ b/src/lib/components/ConfirmDialog.svelte @@ -97,46 +97,35 @@ } .btn { + display: inline-block; padding: 8px 16px; - font-size: 0.9rem; + font-size: 0.95rem; font-weight: 600; border-radius: 0; cursor: pointer; font-family: inherit; transition: all 0.2s; + border: 2px solid var(--text-color, #000000); + background-color: transparent; + color: var(--text-color, #000000); } .btn-secondary { - background: transparent; - color: var(--text-color, #000000); - border: 1px solid var(--border-color, rgba(0, 0, 0, 0.2)); + /* Inherits basic styling */ } .btn-secondary:hover { - background: rgba(0, 0, 0, 0.05); + background: var(--text-color, #000000); + color: var(--bg-color, #ffffff); } .btn-danger { - background: #dc3545; - color: white; - border: 1px solid #dc3545; + color: #d9534f; + border-color: #d9534f; } .btn-danger:hover { - background: #c82333; - border-color: #bd2130; - } - - :global(.dark) .confirm-backdrop { - background: rgba(0, 0, 0, 0.6); - } - - :global(.dark) .confirm-dialog { - background: var(--bg-color, #1a1a1a); - border-color: var(--border-color, #333333); - } - - :global(.dark) .confirm-actions { - background: rgba(255, 255, 255, 0.02); + background: #d9534f; + color: white; }