interplane.Get Omega
Read in your language

hive-view

aien-dev/hive-view

Brought by drakestapleton

branch main Branches Tags History

hive-view / web / app.css

94 lines · 7120 bytes Raw Blame History
1/* hive-view styling. Static presentation only: every page is drawn by the Omega server and the
2 browser runs no script (the CSP allows none). Terminal colours come from /palette.css. */
3:root {
4 --bg: #0f1115; --panel: #171a21; --line: #2a2f3a; --fg: #d7dae0; --muted: #8a919e;
5 --ok: #3fb950; --warn: #d29922; --bad: #f85149; --accent: #58a6ff;
6 --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
7}
8* { box-sizing: border-box; }
9html, body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
10body.frame { background: var(--panel); padding: .1rem; }
11a { color: var(--accent); }
12.top { position: sticky; top: 0; z-index: 5; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
13 padding: .4rem .8rem; background: #0b0d11; border-bottom: 1px solid var(--line); }
14.top h1 { font-size: 1.05rem; margin: 0 .4rem 0 0; }
15.back { text-decoration: none; }
16.note { margin: .5rem .8rem; font-size: .8rem; color: var(--muted); }
17.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; margin: .6rem .8rem; min-width: 0; }
18.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
19.cols > .panel { margin-right: .4rem; }
20h2 { font-size: 1rem; margin: 0 0 .3rem; } h2 a { font-size: .8rem; font-weight: 400; margin-left: .6rem; }
21h3 { font-size: .9rem; margin: .4rem 0 .2rem; color: var(--muted); }
22iframe { display: block; width: 100%; border: 0; background: var(--panel); }
23.fstatus { width: 34rem; max-width: 100%; height: 2rem; }
24.fqueen { height: 60vh; }
25.ftiles { height: 30rem; }
26.fhermes { height: 18rem; } .fleads { height: 22rem; }
27.fmach { height: 40rem; }
28.fboard { height: 55vh; }
29.fent { height: 26rem; }
30.fbig { height: 72vh; }
31.muted { color: var(--muted); }
32.badge { padding: .1rem .5rem; border-radius: 1rem; font-size: .8rem; border: 1px solid var(--line); margin-right: .4rem; }
33.badge.live { color: var(--ok); border-color: var(--ok); }
34.badge.down { color: var(--bad); border-color: var(--bad); }
35.age { font-size: .78rem; color: var(--muted); white-space: nowrap; font-weight: 400; }
36.age.stale { color: var(--warn); font-weight: 600; } .age.down { color: var(--bad); font-weight: 600; }
37/* A panel document that is still on screen after its refresh time plus a margin was not replaced:
38 the banner appears by itself, with no script. */
39.lost { position: fixed; top: 0; left: 0; right: 0; z-index: 9; visibility: hidden; padding: .3rem .5rem;
40 background: #3a1d1d; color: #ffd7d5; border-bottom: 1px solid var(--bad); font-weight: 600; font-size: .8rem; }
41.l8 { animation: lostshow 0s linear 8s forwards; }
42.l12 { animation: lostshow 0s linear 12s forwards; }
43.l35 { animation: lostshow 0s linear 35s forwards; }
44@keyframes lostshow { to { visibility: visible; } }
45pre { margin: 0; font-family: var(--mono); }
46.term { background: #000; color: #ccc; padding: .4rem; border-radius: 4px; overflow: auto; font-size: 12px; line-height: 1.25; white-space: pre; }
47.term.big { min-height: 12rem; }
48.phead { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; font-size: .85rem; margin-bottom: .2rem; }
49.phead .name { font-weight: 600; }
50.ptitle, .pstatus { font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
51.tile { display: block; color: var(--fg); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: .4rem;
52 background: #11141a; margin: 0 0 .5rem; min-width: 0; }
53.tile:hover { border-color: var(--accent); }
54.tile .head { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
55.tile .name { font-weight: 600; } .tile .meta { font-size: .75rem; color: var(--muted); }
56.tile .term { font-size: 9px; max-height: 13rem; overflow: hidden; }
57body.frame:has(> a.tile) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: .5rem; align-content: start; }
58body.frame:has(> a.tile) > .tile { margin: 0; }
59.send { margin: .5rem 0 0; display: grid; gap: .35rem; }
60.send .target { font-size: .78rem; color: var(--muted); }
61.send .row { display: flex; gap: .4rem; flex-wrap: wrap; }
62.send .text { flex: 1 1 20rem; min-width: 0; padding: .55rem; font: 14px var(--mono); background: #0b0d11; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; }
63.send .text:focus { outline: 2px solid var(--accent); }
64button { background: #222834; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: .4rem .8rem; font: inherit; cursor: pointer; min-height: 2.4rem; }
65button:hover { border-color: var(--accent); }
66.msg { margin: .5rem .8rem; padding: .5rem .7rem; border-radius: 6px; font-weight: 600; }
67.msg.ok { background: #12301b; color: #b7f5c4; border: 1px solid var(--ok); }
68.msg.bad { background: #3a1d1d; color: #ffd7d5; border: 1px solid var(--bad); }
69.filter { display: flex; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 .4rem; font-size: .85rem; }
70.filter select, .filter input { background: #0b0d11; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: .3rem; font: inherit; min-height: 2.2rem; }
71.kv { display: grid; grid-template-columns: max-content 1fr; gap: .15rem .7rem; font-size: .85rem; }
72.kv .k { color: var(--muted); } .kv .v { font-family: var(--mono); word-break: break-word; min-width: 0; }
73.kv .full, .v.full { grid-column: 1 / -1; font-family: var(--mono); font-size: .8rem; word-break: break-word; border-bottom: 1px dashed var(--line); padding: .15rem 0; }
74.err { color: var(--bad); font-weight: 600; }
75.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .2rem 0; }
76.chip { border: 1px solid var(--line); border-radius: 1rem; padding: .05rem .55rem; font-size: .8rem; }
77.chip.running { border-color: var(--ok); color: var(--ok); } .chip.blocked { border-color: var(--bad); color: var(--bad); }
78.card { font-size: .82rem; padding: .2rem 0; border-bottom: 1px dashed var(--line); word-break: break-word; }
79.card code { color: var(--accent); }
80ol.board { list-style: none; margin: 0; padding: 0; font: 12px/1.35 var(--mono); }
81ol.board li { padding: .2rem 0; border-bottom: 1px solid #20242d; word-break: break-word; white-space: pre-wrap; }
82.ts { color: var(--muted); } .lane { color: var(--accent); font-weight: 600; }
83.entry { border-bottom: 1px solid var(--line); padding: .3rem 0; }
84.entry h4 { margin: 0 0 .2rem; font-size: .85rem; }
85.entry pre, body.frame > pre:not(.term) { white-space: pre-wrap; word-break: break-word; font-size: 12px; color: #c4c8cf; }
86/* SGR attributes; colours are .fN / .bN in /palette.css */
87.B { font-weight: 700; } .D { opacity: .7; } .I { font-style: italic; } .U { text-decoration: underline; }
88@media (max-width: 640px) {
89 .panel { margin: .4rem; padding: .4rem; }
90 .fqueen { height: 50vh; } .ftiles { height: 26rem; }
91 .term { font-size: 10px; } .tile .term { font-size: 8px; max-height: 9rem; }
92 .kv { grid-template-columns: 1fr; } .kv .k { margin-top: .3rem; }
93 .fstatus { height: 3.2rem; }
94}