From 1c4defe2959058dc95eb75e7120cd95e497e8d37 Mon Sep 17 00:00:00 2001 From: Orion Date: Fri, 11 Sep 2026 11:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style(core):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=AE=A1=E7=90=86=E9=9D=A2=E6=9D=BF=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E4=B8=8E=E5=88=97=E8=A1=A8=E9=A1=B9=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 为健康卡片添加悬浮放大及阴影交互效果 * 为列表项行添加过渡动画及悬浮样式增强 * 统一前端交互动效时长与视觉反馈体验 --- src/assets/style/main.css | 5 +++++ src/views/manage/DashboardView.vue | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/assets/style/main.css b/src/assets/style/main.css index 9b9ea38..049df4a 100644 --- a/src/assets/style/main.css +++ b/src/assets/style/main.css @@ -114,6 +114,11 @@ textarea { background: #2f414a !important; box-shadow: -6px -6px 16px rgba(69,88,99,.4), 6px 6px 16px rgba(10,18,23,.45) !important; } +.fcb-health-card { transition: all 300ms ease !important; } +.fcb-health-card:hover { transform: translateY(-4px) !important; background: #f0f4f8 !important; box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important; } +.fcb-list-row { transition: all 300ms ease !important; } +.fcb-list-row:hover { background: #f0f4f8 !important; box-shadow: inset 0 0 0 1px rgba(183,208,210,.7), 0 8px 18px rgba(163,177,198,.25) !important; } +.dark .fcb-list-row:hover { background: #2f414a !important; } .dark .theme-2026-card { border-color: rgba(68, 86, 94, 0.82); diff --git a/src/views/manage/DashboardView.vue b/src/views/manage/DashboardView.vue index cfcbad5..c3a1cbc 100644 --- a/src/views/manage/DashboardView.vue +++ b/src/views/manage/DashboardView.vue @@ -129,7 +129,7 @@ v-for="action in healthActions" :key="action.key" type="button" - class="theme-2026-card-hover group flex min-h-20 flex-col justify-between rounded-[20px] border p-3 text-left shadow-sm transition-all duration-200 hover:shadow-md sm:min-h-24 sm:rounded-[30px] sm:p-4" + class="fcb-health-card theme-2026-card-hover group flex min-h-20 flex-col justify-between rounded-[20px] border p-3 text-left shadow-sm transition-all duration-300 hover:shadow-md sm:min-h-24 sm:rounded-[30px] sm:p-4" :class="getHealthActionClass(action.tone)" @click="openHealthQueue(action.health)" > @@ -372,6 +372,7 @@