feat: align admin dashboard cards with epteam

This commit is contained in:
fromme committed 2026-11-13 12:03:39 +01:00
1 parent 558e45fe5f
commit df564c30ae
4 files changed
+78 -14

No files matched your search

+37
View File
@@ -273,6 +273,43 @@
@apply border-b last:border-b-0;
}
/*
* Lists of entries in a card, as on a dashboard (components/dashboard/): one line per entry, the
* whole line is the link or button, its parts separated by a dot, the last part cut off with "…".
*/
.entry-list {
@apply divide-y divide-line;
}
.entry-list > li {
@apply py-2 first:pt-0 last:pb-0;
}
/* a work queue that would otherwise grow the card without limit; keep it rare, it scrolls awkwardly on phones */
.entry-list--scroll {
@apply max-h-64 overflow-y-auto pr-3;
}
.entry-link {
@apply flex w-full min-w-0 items-center gap-1.5 text-left text-ink no-underline;
}
:is(a, button).entry-link {
@apply hover:text-brand;
}
.entry-link > * {
@apply shrink-0 whitespace-nowrap;
}
.entry-link > :last-child {
@apply min-w-0 shrink truncate;
}
.entry-link > .entry-dot {
@apply text-muted;
}
/* notices (_partials/_alert.html.twig): light, with a coloured bar on the left */
.notice {
@apply border-l-4 px-4 py-2;