🎨 style(core): 优化管理后台卡片悬停动效与样式逻辑
* 细化卡片悬停效果,区分嵌套卡片与外层卡片的位移幅度 * 规范卡片 hover 交互,确保统一的动画曲线与过渡时间 * 修复健康卡片悬停后的位置偏移与交互反馈 * 统一列表行交互样式,移除不必要的阴影以优化视觉体验
This commit is contained in:
1 parent
728fd63741
commit
7f727d72e6
1 file changed
+10
-1
@@ -489,6 +489,12 @@ html, body, #app { background: var(--fcb-bg); color: var(--fcb-text); }
|
|||||||
border-color: transparent !important;
|
border-color: transparent !important;
|
||||||
box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important;
|
box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important;
|
||||||
}
|
}
|
||||||
|
/* Nested cards use the demo's lighter 2px lift; outer cards keep 4px. */
|
||||||
|
.theme-2026-card .theme-2026-card-hover:hover,
|
||||||
|
.theme-2026-card-hover.fcb-lifecycle-card:hover,
|
||||||
|
.theme-2026-card-hover .fcb-secondary-card:hover {
|
||||||
|
transform: translateY(-2px) !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Keep every dashboard card on the same 300ms pastel hover curve. */
|
/* Keep every dashboard card on the same 300ms pastel hover curve. */
|
||||||
.theme-2026-card-hover {
|
.theme-2026-card-hover {
|
||||||
@@ -524,15 +530,18 @@ button:not(:disabled):hover { filter: brightness(1.025); }
|
|||||||
.border-gray-100, .border-gray-200, .border-gray-300, .border-gray-600, .border-gray-700 { border-color: #d5e1e5 !important; }
|
.border-gray-100, .border-gray-200, .border-gray-300, .border-gray-600, .border-gray-700 { border-color: #d5e1e5 !important; }
|
||||||
.bg-red-600, .bg-red-500 { background-color: #d99a9c !important; }
|
.bg-red-600, .bg-red-500 { background-color: #d99a9c !important; }
|
||||||
.hover\\:bg-red-700:hover { background-color: #c9888b !important; }
|
.hover\\:bg-red-700:hover { background-color: #c9888b !important; }
|
||||||
.animate-spin-slow { animation: none !important; }
|
|
||||||
.fcb-lifecycle-row { transition: opacity 420ms cubic-bezier(.22,1,.36,1); }
|
.fcb-lifecycle-row { transition: opacity 420ms cubic-bezier(.22,1,.36,1); }
|
||||||
.fcb-lifecycle-list, .fcb-expand-content { overflow: hidden; }
|
.fcb-lifecycle-list, .fcb-expand-content { overflow: hidden; }
|
||||||
|
|
||||||
/* Final interaction overrides: no row shadow trails, visible health-card motion. */
|
/* Final interaction overrides: no row shadow trails, visible health-card motion. */
|
||||||
.fcb-health-card {
|
.fcb-health-card {
|
||||||
|
transform: translateY(0) !important;
|
||||||
transition-duration: 380ms !important;
|
transition-duration: 380ms !important;
|
||||||
transition-timing-function: ease !important;
|
transition-timing-function: ease !important;
|
||||||
}
|
}
|
||||||
|
.fcb-health-card:hover {
|
||||||
|
transform: translateY(-4px) !important;
|
||||||
|
}
|
||||||
.fcb-list-row {
|
.fcb-list-row {
|
||||||
transition: background-color 260ms ease-out !important;
|
transition: background-color 260ms ease-out !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
|
|||||||
Reference in new issue
Block a user