CI / build (push) Successful in 40s
Tiles now show the public URL and, when set, the internal URL as a second link. Label names ignore case and - versus _. Containers HODA can't fully use are listed above the tiles with the reason: labels without enable, a missing url, or an unknown label name with a suggestion (category -> group). To find labels without enable, discovery reads all containers. A "Copy labels" button copies every label as a commented template, and falls back to the copy command where the clipboard API is missing (plain http on the LAN). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
368 lines
7.7 KiB
CSS
368 lines
7.7 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
--bg: #f6f6f4;
|
|
--surface: #ffffff;
|
|
--chip: #f0efeb;
|
|
--border: #dcdbd5;
|
|
--border-strong: #a9a79e;
|
|
--text: #1d1d1b;
|
|
--muted: #64635d;
|
|
--focus: #2f6fdb;
|
|
--link: #2459b8;
|
|
--good: #1a9e3a;
|
|
--warn: #c98000;
|
|
--off: #a9a79e;
|
|
--banner-bg: #fff3d6;
|
|
--banner-text: #573a00;
|
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #161615;
|
|
--surface: #1f1f1d;
|
|
--chip: #2a2a27;
|
|
--border: #34332f;
|
|
--border-strong: #5c5b54;
|
|
--text: #ededea;
|
|
--muted: #a5a49d;
|
|
--focus: #6ea2ff;
|
|
--link: #8db6ff;
|
|
--good: #3cc35e;
|
|
--warn: #f0a92a;
|
|
--off: #6b6a63;
|
|
--banner-bg: #3a2e12;
|
|
--banner-text: #f6dca0;
|
|
}
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.glyph {
|
|
flex: none;
|
|
width: 14px;
|
|
height: 14px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.4;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
/* Header */
|
|
|
|
.top {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 16px 24px;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.title {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 650;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.actions { display: flex; align-items: center; gap: 8px; flex: 0 1 420px; }
|
|
|
|
.search { position: relative; flex: 1 1 auto; min-width: 0; }
|
|
|
|
.search input {
|
|
width: 100%;
|
|
padding: 8px 36px 8px 12px;
|
|
font: inherit;
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.search input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
|
|
|
|
.search kbd {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 8px;
|
|
transform: translateY(-50%);
|
|
padding: 1px 6px;
|
|
font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
color: var(--muted);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.search input:focus + kbd { display: none; }
|
|
|
|
@media (hover: none) {
|
|
.search kbd { display: none; }
|
|
}
|
|
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex: none;
|
|
padding: 8px 12px;
|
|
font: inherit;
|
|
font-size: 14px;
|
|
white-space: nowrap;
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button:hover { background: var(--chip); }
|
|
.button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
|
|
/* Banners and label problems */
|
|
|
|
.banners, .issues-wrap { padding: 0 24px; }
|
|
.banners:empty, .issues-wrap:empty { display: none; }
|
|
|
|
.banner {
|
|
max-width: 1440px;
|
|
margin: 16px auto 0;
|
|
padding: 10px 14px;
|
|
color: var(--banner-text);
|
|
background: var(--banner-bg);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.issues {
|
|
max-width: 1440px;
|
|
margin: 16px auto 0;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-left: 4px solid var(--warn);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.issues summary {
|
|
padding: 10px 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.issues summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 8px; }
|
|
|
|
.issue-list {
|
|
margin: 0;
|
|
padding: 0 14px 12px 32px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.issue-list li { margin: 4px 0; }
|
|
.issue-container { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
.issue-host { color: var(--muted); }
|
|
.issue-message::before { content: ": "; }
|
|
|
|
/* Groups and tiles */
|
|
|
|
.groups { max-width: 1440px; margin: 0 auto; padding: 8px 24px 40px; }
|
|
|
|
.group-name {
|
|
margin: 24px 0 10px;
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.tile {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
min-height: 72px;
|
|
padding: 12px 28px 12px 12px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
transition: border-color 0.12s, transform 0.12s;
|
|
}
|
|
|
|
.tile:hover { border-color: var(--border-strong); transform: translateY(-1px); }
|
|
.tile:has(.name:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
.tile.state-stopped { opacity: 0.5; }
|
|
|
|
.icon {
|
|
flex: none;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.letter {
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 17px;
|
|
font-weight: 650;
|
|
color: hsl(var(--hue) 45% 25%);
|
|
background: hsl(var(--hue) 70% 88%);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.letter { color: hsl(var(--hue) 70% 85%); background: hsl(var(--hue) 35% 25%); }
|
|
}
|
|
|
|
.text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
|
|
|
|
.name,
|
|
.desc,
|
|
.chip-text {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* The name is the tile's link; its ::after stretches over the whole tile. */
|
|
.name {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.name::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.name:focus-visible { outline: none; }
|
|
|
|
.desc { font-size: 13px; color: var(--muted); }
|
|
|
|
.urls { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; min-width: 0; }
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
max-width: 100%;
|
|
padding: 2px 7px 2px 5px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
background: var(--chip);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.chip .glyph { width: 12px; height: 12px; }
|
|
|
|
/* The internal link sits above the tile's stretched link, so it opens on its own. */
|
|
.chip-internal {
|
|
position: relative;
|
|
z-index: 1;
|
|
color: var(--link);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.chip-internal:hover .chip-text { text-decoration: underline; }
|
|
.chip-internal:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
|
|
|
|
.dot {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--good);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.state-unhealthy .dot { background: var(--warn); }
|
|
.state-stopped .dot { background: var(--off); }
|
|
|
|
/* Empty and no-match states */
|
|
|
|
.note { margin: 32px 0; color: var(--muted); }
|
|
|
|
.empty {
|
|
max-width: 640px;
|
|
margin: 48px auto;
|
|
padding: 24px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.empty h2 { margin: 0 0 8px; font-size: 18px; }
|
|
.empty p { margin: 0 0 16px; color: var(--muted); }
|
|
|
|
.snippet {
|
|
margin: 0 0 12px;
|
|
padding: 12px;
|
|
overflow-x: auto;
|
|
font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.top { flex-wrap: wrap; padding: 12px 16px; }
|
|
.actions { flex-basis: 100%; }
|
|
.banners, .issues-wrap { padding: 0 16px; }
|
|
.groups { padding: 4px 16px 32px; }
|
|
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
|
|
/* Icon and name on the first row, links across the whole tile below. */
|
|
.tile {
|
|
display: grid;
|
|
grid-template-columns: 32px minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 6px 10px;
|
|
min-height: 0;
|
|
padding: 10px 22px 10px 10px;
|
|
}
|
|
.text { display: contents; }
|
|
.icon { width: 32px; height: 32px; }
|
|
.urls { grid-column: 1 / -1; margin-top: 0; }
|
|
.urls.remote-only { display: none; }
|
|
.desc, .chip-remote { display: none; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.tile { transition: none; }
|
|
.tile:hover { transform: none; }
|
|
}
|