iter(g63): card 支持标题操作区、底部操作区与悬停态

This commit is contained in:
HIsheR
2026-10-26 12:28:56 +08:00
parent fd1de1a5c8
commit 835967e507
7 changed files with 125 additions and 11 deletions
+39 -1
View File
@@ -58,11 +58,41 @@
border-radius: var(--ua-radius-lg);
background: var(--ua-color-surface);
}
.ua-card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--ua-space-2);
margin-bottom: var(--ua-space-3);
}
.ua-card-title {
margin: 0 0 var(--ua-space-3);
margin: 0;
font-size: var(--ua-font-size-lg);
font-weight: 500;
}
.ua-card-extra {
display: inline-flex;
align-items: center;
gap: var(--ua-space-1);
}
.ua-card-foot {
display: flex;
justify-content: flex-end;
gap: var(--ua-space-1);
margin-top: var(--ua-space-3);
padding-top: var(--ua-space-2);
border-top: 1px solid var(--ua-color-border);
}
.ua-card-borderless {
border: none;
}
.ua-card-hoverable {
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ua-card-hoverable:hover {
transform: translateY(-2px);
box-shadow: 0 10px 24px color-mix(in srgb, var(--ua-color-text) 14%, transparent);
}
.ua-table table {
width: 100%;
border-collapse: collapse;
@@ -3394,3 +3424,11 @@ button.ua-step-dot:hover {
.ua-tree-row .ua-tree-box {
margin-right: 2px;
}
@media (prefers-reduced-motion: reduce) {
.ua-card-hoverable {
transition: none;
}
.ua-card-hoverable:hover {
transform: none;
}
}