⚡️ refactor(core): 优化样式过渡动画属性

* 精确指定 health-card 过渡属性,移除全属性通用过渡
* 移除 list-row 的 transform 属性以优化过渡逻辑
* 限制 transition 作用范围,提升渲染性能
This commit is contained in:
orion committed 2026-09-11 16:05:46 +08:00
1 parent 95167d6b99
commit a57969a84a
1 file changed
+2 -2
+2 -2
View File
@@ -114,9 +114,9 @@ textarea {
background: #2f414a !important; background: #2f414a !important;
box-shadow: -6px -6px 16px rgba(69,88,99,.4), 6px 6px 16px rgba(10,18,23,.45) !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 { transform: translateY(0) !important; transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease, border-color 300ms ease, opacity 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-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 { transition: background-color 300ms ease, box-shadow 300ms ease, border-color 300ms ease, opacity 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; } .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 .fcb-list-row:hover { background: #2f414a !important; }