Phone card layout, status symbols, breadcrumbs, integration cards and server trends
Tables stack into labelled cards on a phone. Green, red and amber badges carry a check, cross or triangle as well as their colour. Pages inside a menu group show a breadcrumb, with the thing's name on a server's page. Integrations are cards with an Open button and a live status (working, failing, not checked yet, disabled). Agent-reported servers keep a short history of load, memory and disk use (migration 0019, one sample per ten minutes for 35 days) and show it as a Trends card with a days-until-full forecast for a filling disk. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
617dc1ea2f
commit
9965d94036
22 files changed
+3000
-84
No files matched your search
@@ -145,6 +145,125 @@ html[data-env] .navbar-vertical {
|
||||
background: color-mix(in srgb, currentColor 14%, transparent);
|
||||
}
|
||||
|
||||
/* ── Status badges carry a symbol as well as a colour, so red, amber and green never have to be told apart by colour alone. ── */
|
||||
.badge.bg-green-lt:not(:empty)::before,
|
||||
.badge.bg-red-lt:not(:empty)::before,
|
||||
.badge.bg-yellow-lt:not(:empty)::before {
|
||||
display: inline-block;
|
||||
margin-right: 0.35em;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.badge.bg-green-lt:not(:empty)::before {
|
||||
content: "✓";
|
||||
content: "✓" / "";
|
||||
}
|
||||
|
||||
.badge.bg-red-lt:not(:empty)::before {
|
||||
content: "✕";
|
||||
content: "✕" / "";
|
||||
}
|
||||
|
||||
.badge.bg-yellow-lt:not(:empty)::before {
|
||||
content: "▲";
|
||||
content: "▲" / "";
|
||||
font-size: 0.75em;
|
||||
vertical-align: 0.1em;
|
||||
}
|
||||
|
||||
/* ── On a phone, wide tables become a stack of cards: each row a card, each cell labelled with its column (data-label is set by useStackedTables). ── */
|
||||
@media (max-width: 767.98px) {
|
||||
.card > .table-responsive {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.card-table,
|
||||
.card-table tbody,
|
||||
.card-table tr {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.card-table thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.card-table tbody tr {
|
||||
padding: 0.5rem 0.9rem;
|
||||
border-bottom: 1px solid var(--tblr-border-color);
|
||||
}
|
||||
|
||||
.card-table tbody tr:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.card-table tbody td {
|
||||
position: relative;
|
||||
display: block;
|
||||
min-height: 1.5rem;
|
||||
padding: 0.25rem 0 0.25rem 40% !important;
|
||||
overflow-wrap: anywhere;
|
||||
text-align: left;
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.card-table tbody td[data-label]::before {
|
||||
position: absolute;
|
||||
top: 0.3rem;
|
||||
left: 0;
|
||||
width: 36%;
|
||||
padding-right: 0.5rem;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
color: var(--tblr-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
content: attr(data-label);
|
||||
}
|
||||
|
||||
/* Cells with no heading (a tick-box, the action buttons, a "nothing here" row) use the whole width. */
|
||||
.card-table tbody td:not([data-label]) {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Trends on a server's page: a label, a small line, the latest figure, and a few words about where it is heading. ── */
|
||||
.trend-row {
|
||||
display: grid;
|
||||
grid-template-columns: 9rem minmax(8rem, 14rem) 3.5rem 1fr;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.4rem 0;
|
||||
border-bottom: 1px solid var(--tblr-border-color);
|
||||
}
|
||||
|
||||
.trend-row:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.trend-now {
|
||||
font-weight: 600;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sparkline {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 2.25rem;
|
||||
color: var(--tblr-secondary);
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.trend-row {
|
||||
grid-template-columns: 1fr 3.5rem;
|
||||
}
|
||||
|
||||
.trend-row .sparkline,
|
||||
.trend-row .trend-words {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Sidebar submenus: a little tighter than Tabler's dropdown rows, so several open groups still fit on one screen. */
|
||||
.navbar-vertical .dropdown-menu .dropdown-item {
|
||||
padding-top: 0.3rem;
|
||||
|
||||
Reference in new issue
Block a user