feat(ds): ListToolbar — the one list-page toolbar row

.sk-listhead [title][filters][extras] [count][tools] replaces the five
hand-rolled listhead patterns; includes a standard __select style for
secondary pickers. Codifies the placement rule in its docstring.
This commit is contained in:
Juan Denis committed 2026-08-09 03:10:23 -04:00
1 parent f2c7924493
commit b0dd554216
3 files changed
+95

No files matched your search

@@ -795,6 +795,62 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
// ------------------------------------------------------------
// ListToolbar (.sk-listhead) — the one list-page toolbar row. Replaces the
// per-page listheads (.dom-listhead, .cron-listhead, .servers-listhead…).
// [title] [filters] [extras] [count] [tools]
// ------------------------------------------------------------
.sk-listhead {
display: flex;
align-items: center;
gap: $space-3;
flex-wrap: wrap;
margin-bottom: $space-3;
&__title {
margin: 0;
font-size: 14px;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--text);
}
&__right {
display: flex;
align-items: center;
gap: $space-2;
margin-left: auto;
}
&__count {
display: inline-flex;
align-items: center;
gap: 6px;
font-family: var(--mono);
font-size: 11.5px;
color: var(--text-faint);
white-space: nowrap;
b { color: var(--text-dim); font-weight: 600; }
}
// Secondary pickers (server/group selects) that live in the toolbar.
&__select {
height: 32px;
padding: 0 $space-3;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface-2);
color: var(--text-dim);
font-size: 12.5px;
font-family: inherit;
}
@media (max-width: $breakpoint-md) {
&__right { width: 100%; margin-left: 0; }
}
}
// ------------------------------------------------------------
// wp-list chrome — the ResourceListPage list scaffold (status seg + search
// toolbar, table card, optional card grid). Restores the canonical layout