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; + } }