use bootstrap 5 for UI, compact UI
This commit is contained in:
1 parent
37910e410b
commit
ee2a29cb36
18 files changed
+284
-161
No files matched your search
@@ -1,59 +1,106 @@
|
||||
/* Small additions Pico's classless build doesn't cover: color-coded state
|
||||
badges, the error banner, and a compact stat-tile grid for the overview
|
||||
page. Everything else relies on Pico's classless defaults. */
|
||||
/* Compact-density overrides on top of Bootstrap 5 (vendor/bootstrap.min.css)
|
||||
— Bootstrap's own *-sm utilities (table-sm, btn-sm, form-control-sm) do
|
||||
most of the work in the templates themselves; this file only adds what
|
||||
Bootstrap doesn't ship: a "cancelled" badge color, and a few global
|
||||
density knobs (smaller base font, tighter heading/section spacing) so
|
||||
more of the queue/config tables fit on screen without scrolling. */
|
||||
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 0.15rem 0.55rem;
|
||||
border-radius: 999px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
white-space: nowrap;
|
||||
body {
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
.badge-queued { background: #e2e8f0; color: #334155; }
|
||||
.badge-inprogress { background: #dbeafe; color: #1d4ed8; }
|
||||
.badge-pass { background: #dcfce7; color: #15803d; }
|
||||
.badge-partial { background: #ffedd5; color: #c2410c; }
|
||||
.badge-fail { background: #fee2e2; color: #b91c1c; }
|
||||
.badge-cancelled { background: #ede9fe; color: #6d28d9; }
|
||||
.badge-idle { background: #dcfce7; color: #15803d; }
|
||||
.badge-unreachable { background: #fee2e2; color: #b91c1c; }
|
||||
.badge-unregistered { background: #e2e8f0; color: #334155; }
|
||||
|
||||
.stat-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
|
||||
gap: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
.stat-tile {
|
||||
border: 1px solid var(--pico-muted-border-color, #ddd);
|
||||
border-radius: 0.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
text-align: center;
|
||||
h2 {
|
||||
font-size: 1.05rem;
|
||||
margin-top: 1.25rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.stat-tile .value { display: block; font-size: 1.6rem; font-weight: 700; }
|
||||
.stat-tile .label { display: block; font-size: 0.8rem; opacity: 0.75; }
|
||||
|
||||
#error-banner:empty { display: none; }
|
||||
.error-banner {
|
||||
padding: 0.6rem 1rem;
|
||||
margin-bottom: 1rem;
|
||||
border-radius: 0.4rem;
|
||||
.navbar {
|
||||
padding-top: 0.35rem;
|
||||
padding-bottom: 0.35rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.error-banner-client { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
|
||||
.error-banner-server { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
|
||||
.navbar-brand {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.nav-link {
|
||||
padding-top: 0.25rem !important;
|
||||
padding-bottom: 0.25rem !important;
|
||||
}
|
||||
|
||||
nav.dashboard-nav ul { display: flex; gap: 1.25rem; list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
|
||||
nav.dashboard-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
|
||||
/* Bootstrap ships pass/fail-adjacent colors (success/warning/danger) but
|
||||
nothing for "administrator explicitly stopped this" — give cancelled
|
||||
its own recognizable hue rather than overloading danger/secondary. */
|
||||
.bg-cancelled {
|
||||
background-color: #6d28d9 !important;
|
||||
}
|
||||
|
||||
.actions-cell { white-space: nowrap; }
|
||||
.actions-cell button { margin-right: 0.35rem; font-size: 0.85rem; padding: 0.25rem 0.6rem; }
|
||||
.actions-cell button.secondary { --pico-primary-background: #64748b; }
|
||||
.actions-cell button.contrast { --pico-primary-background: #b91c1c; }
|
||||
.badge {
|
||||
font-weight: 600;
|
||||
font-size: 0.75em;
|
||||
}
|
||||
|
||||
table.compact th, table.compact td { padding: 0.4rem 0.6rem; }
|
||||
.stat-card {
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
.stat-card .value {
|
||||
display: block;
|
||||
font-size: 1.35rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.stat-card .label {
|
||||
display: block;
|
||||
font-size: 0.72rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
.muted { opacity: 0.65; font-size: 0.85rem; }
|
||||
.table > :not(caption) > * > * {
|
||||
padding-top: 0.35rem;
|
||||
padding-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.actions-cell {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.actions-cell .btn {
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
.actions-cell .btn:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--bs-secondary-color);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.inline-form {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
align-items: center;
|
||||
}
|
||||
.inline-form .form-control,
|
||||
.inline-form textarea.form-control {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#error-banner:empty {
|
||||
display: none;
|
||||
}
|
||||
#error-banner .alert {
|
||||
padding: 0.5rem 0.9rem;
|
||||
margin-bottom: 1rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
main {
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
Reference in new issue
Block a user