Promoted 14 new tokens (--accent-hover, --signal-{good,bad,warn}-hover,
--accent-bright, --thumb-black, --overlay, --shadow, --ease-out-{quart,expo},
--dur-{fast,normal,slide}, --z-topbar) and substituted every raw oklch /
cubic-bezier / hardcoded z-index occurrence in the 12 primitive files.
cubic-bezier appearances dropped from 8 files to 0 (only in tokens.css).
Bundle byte count: 138 KB -> 139 KB. Visual regression: zero (smoke page
still renders identically).
50 lines
1.3 KiB
CSS
50 lines
1.3 KiB
CSS
/* list-row.css ─ table-like row, NOT a card. For containers/users/tokens. */
|
|
|
|
.wd-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.wd-list-row {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
height: 44px;
|
|
padding: 0 16px;
|
|
border-bottom: 1px solid var(--border-faint);
|
|
transition: background-color var(--dur-fast) var(--ease-out-quart);
|
|
}
|
|
.wd-list-row:hover { background: var(--bg-hover); }
|
|
.wd-list-row.is-selected { background: var(--bg-surface); }
|
|
.wd-list-row.is-selected::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 4px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 4px;
|
|
height: 8px;
|
|
border-radius: 2px;
|
|
background: var(--accent);
|
|
}
|
|
|
|
.wd-list-cell {
|
|
font: 400 13px/1 var(--font);
|
|
color: var(--text-primary);
|
|
}
|
|
.wd-list-cell--name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
|
|
.wd-list-cell--meta { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 12px; }
|
|
.wd-list-cell--actions { margin-left: auto; display: flex; gap: 6px; }
|
|
|
|
.wd-list-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
height: 36px;
|
|
padding: 0 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
font: 600 11px/1 var(--font);
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--text-tertiary);
|
|
}
|