From e255f5aaaa7ce3363a3029693dccb85cb352eeca Mon Sep 17 00:00:00 2001 From: Orion Date: Mon, 14 Sep 2026 11:02:45 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(core):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=97=E8=A1=A8=E8=A1=8C=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BA=A4=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 | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/src/assets/style/main.css b/src/assets/style/main.css index e2d00d2..18afccd 100644 --- a/src/assets/style/main.css +++ b/src/assets/style/main.css @@ -114,8 +114,6 @@ 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 { transform: translateY(0) !important; transition: transform 380ms ease, box-shadow 380ms ease, background-color 380ms ease, border-color 380ms ease, opacity 380ms 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: background-color 260ms ease-out, box-shadow 260ms ease-out, border-color 260ms ease-out !important; } .fcb-list-row:hover { background: #dcebed !important; box-shadow: inset 0 0 0 2px rgba(113,152,166,.42), 0 8px 18px rgba(115,139,151,.28) !important; } .dark .fcb-list-row:hover { background: #2f414a !important; } @@ -450,7 +448,7 @@ body { background: var(--fcb-surface); } box-shadow: 0 16px 34px rgba(112, 137, 151, .22), -8px -8px 20px rgba(255,255,255,.78) !important; } button, a { -webkit-tap-highlight-color: transparent; } -button:not(:disabled), a { transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease !important; } +button:not(:disabled):not(.fcb-health-card), a { transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease !important; } .fcb-lifecycle-list { overflow: visible; will-change: height; } .fcb-lifecycle-row { will-change: opacity; } .fcb-lifecycle-card { transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important; } @@ -533,15 +531,7 @@ button:not(:disabled):hover { filter: brightness(1.025); } .fcb-lifecycle-row { transition: opacity 420ms cubic-bezier(.22,1,.36,1); } .fcb-lifecycle-list, .fcb-expand-content { overflow: hidden; } -/* Final interaction overrides: no row shadow trails, visible health-card motion. */ -.fcb-health-card { - transform: translateY(0) !important; - transition-duration: 380ms !important; - transition-timing-function: ease !important; -} -.fcb-health-card:hover { - transform: translateY(-4px) !important; -} +/* List highlighting stays inside the hovered row. */ .fcb-list-row { transition: background-color 260ms ease-out !important; box-shadow: none !important; @@ -556,10 +546,10 @@ button:not(:disabled):hover { filter: brightness(1.025); } .fcb-health-card:hover { transform: translateY(-2px) !important; } -.fcb-health-card { - transition: transform 420ms cubic-bezier(.22, 1, .36, 1), - box-shadow 420ms ease, - background-color 420ms ease, - border-color 420ms ease, - opacity 420ms ease !important; + +/* Health buttons inherit the same transition as adjacent cards. */ +@media (prefers-reduced-motion: reduce) { + .theme-2026-card .fcb-health-card:hover { + transform: none !important; + } }