Files
allmende/web/static/style.css
T
nilsandClaude Sonnet 5.5 e3d0c12e55 Choose even the first region in the browser; update Docker and Nix
A node now starts without any region (it only helps others connect, and
prints a hint). The owner's sign-in link leads straight to the Regions page
when none is followed, visitors get a notice instead of an empty search, and
status always lists regions as an array.

The Docker image no longer pins Bonn, the NixOS module no longer requires
regions, and the VM test now starts without any, chooses the first region
over the API and checks it survives a restart. README and the init hint
follow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
2026-11-18 10:41:10 +01:00

352 lines
11 KiB
CSS

:root {
--bg: #f7f6f2;
--surface: #ffffff;
--text: #1d2420;
--muted: #5f6b64;
--line: #dcdcd2;
--accent: #2f6b4f;
--accent-text: #ffffff;
--ok: #1f7a4d;
--ok-bg: #e3f3ea;
--bad: #b3261e;
--bad-bg: #fbe7e5;
--warn: #8a5a00;
--warn-bg: #fdf1d6;
--radius: 10px;
--maxw: 60rem;
color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #14181a;
--surface: #1c2224;
--text: #e8ece9;
--muted: #9aa7a0;
--line: #2f3a3d;
--accent: #6fbf97;
--accent-text: #0e1a14;
--ok: #6fd6a0;
--ok-bg: #173325;
--bad: #ff8a80;
--bad-bg: #3a1c1a;
--warn: #f2c15b;
--warn-bg: #3a2e12;
}
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.top, main, .foot {
max-width: var(--maxw);
margin: 0 auto;
padding-left: 16px;
padding-right: 16px;
}
.top {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 16px;
padding-top: 20px;
padding-bottom: 8px;
}
.brand {
font-size: 1.6rem;
font-weight: 700;
letter-spacing: -0.02em;
color: var(--text);
text-decoration: none;
}
.status, .muted, .hint { color: var(--muted); font-size: 0.9rem; }
.info { margin-left: 0.5rem; }
.tagline { color: var(--muted); margin: 4px 0 20px; }
.notice { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pad { padding: 16px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
/* Search form */
.filters {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
gap: 12px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 16px;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-label { font-size: 0.85rem; font-weight: 600; }
input, select {
width: 100%;
min-height: 2.5rem;
padding: 6px 10px;
font: inherit;
color: var(--text);
background: var(--bg);
border: 1px solid var(--line);
border-radius: 8px;
}
input:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible {
outline: 3px solid var(--accent);
outline-offset: 2px;
}
.actions { display: flex; gap: 8px; align-items: end; grid-column: 1 / -1; }
.btn {
min-height: 2.5rem;
padding: 6px 16px;
font: inherit;
font-weight: 600;
color: var(--text);
background: var(--surface);
border: 1px solid var(--line);
border-radius: 8px;
cursor: pointer;
}
.btn.primary { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
/* Results */
.results { margin-top: 20px; }
.cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
gap: 12px;
}
.card {
display: block;
padding: 14px 16px;
color: inherit;
text-decoration: none;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.card:hover { border-color: var(--accent); }
.card p { margin: 4px 0 0; }
.card-top { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; }
.price { font-size: 1.15rem; font-weight: 700; }
.price.big { font-size: 1.5rem; margin: 6px 0 16px; }
.facts { color: var(--muted); }
.results-foot { margin: 16px 0 32px; }
.error { color: var(--bad); }
.warn { color: var(--warn); background: var(--warn-bg); padding: 8px 12px; border-radius: 8px; }
.badge {
flex: none;
padding: 1px 8px;
font-size: 0.75rem;
font-weight: 600;
white-space: nowrap;
border-radius: 999px;
}
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.bad { color: var(--bad); background: var(--bad-bg); }
/* Detail */
.back { display: inline-block; margin: 8px 0 16px; }
.detail-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.panel {
margin: 0 0 12px;
padding: 14px 16px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.panel p { margin: 0 0 8px; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 2px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.checks { list-style: none; margin: 8px 0; padding: 0; }
.checks li { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 2px 0; }
.checks .mark { font-weight: 700; }
.checks .ok .mark { color: var(--ok); }
.checks .bad { color: var(--bad); }
details { margin-top: 8px; }
summary { cursor: pointer; }
pre {
overflow-x: auto;
padding: 12px;
font-size: 0.8rem;
background: var(--bg);
border: 1px solid var(--line);
border-radius: 8px;
}
.foot { padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 30rem) {
.detail-head { flex-direction: column; }
.kv { grid-template-columns: 1fr; }
}
/* Messages */
.nav { margin-left: auto; display: flex; gap: 16px; }
textarea {
width: 100%;
box-sizing: border-box;
padding: 8px 10px;
font: inherit;
color: var(--text);
background: var(--bg);
border: 1px solid var(--line);
border-radius: 8px;
resize: vertical;
}
textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.compose .actions { margin-top: 8px; align-items: center; }
.small { font-size: 0.85rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.thread, .convs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.msg.out { justify-self: end; border-color: var(--accent); }
.msg .who { color: var(--muted); font-size: 0.85rem; margin-bottom: 4px; }
.grant { border: 2px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin: 4px 0; }
input[readonly] { width: 100%; box-sizing: border-box; }
/* Owner inbox */
body.wide .top, body.wide main, body.wide .foot { max-width: 80rem; }
.error:empty { display: none; }
.stack { display: grid; gap: 10px; }
.stack label, .sheet label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 0.9rem; }
.stack input, .sheet input:not([type="checkbox"]), .sheet select, .sheet textarea { width: 100%; }
input[type="checkbox"] { min-height: auto; width: auto; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
.row { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.note { margin: 0 0 8px; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; }
.note.warn { color: var(--warn); background: var(--warn-bg); }
.owner { display: grid; gap: 16px; grid-template-columns: 17rem minmax(0, 1fr) minmax(0, 24rem); align-items: start; }
.pane-title { margin: 0 0 8px; font-size: 1.1rem; overflow-wrap: anywhere; }
.pick { padding: 16px; }
.olist { display: grid; gap: 8px; margin-bottom: 12px; }
.ocard {
display: grid;
gap: 4px;
min-height: 2.75rem;
padding: 12px 14px;
color: var(--text);
text-decoration: none;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.ocard.selected { border: 2px solid var(--accent); padding: 11px 13px; }
.ocard .clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.muted { color: var(--muted); background: transparent; border: 1px solid var(--line); }
/* the region picker */
.rp-chips, .rp-results { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rp-results { flex-direction: column; flex-wrap: nowrap; }
.rp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.rp-chip-x { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 8px; color: inherit; }
.rp-result { width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 6px; padding: 8px; cursor: pointer; color: inherit; font: inherit; }
.rp-result:hover, .rp-result:focus-visible { border-color: var(--line); background: var(--bg); }
.rp-cells { display: grid; gap: 6px; }
.stack label.rp-cell { flex-direction: row; align-items: center; gap: 8px; color: inherit; font-size: 1rem; }
p.ok { color: var(--ok); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip {
min-height: 2.25rem;
padding: 4px 12px;
font: inherit;
font-size: 0.9rem;
color: var(--text);
background: var(--surface);
border: 1px solid var(--line);
border-radius: 999px;
cursor: pointer;
}
.chip.on { color: var(--accent-text); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.addr { margin-bottom: 10px; }
.narrow-only { display: none; }
.owner .thread { margin-bottom: 12px; }
.owner .msg { max-width: 92%; }
.owner .msg.in { justify-self: start; }
.backdrop {
position: fixed;
inset: 0;
z-index: 10;
display: flex;
align-items: flex-end;
justify-content: center;
background: rgba(20, 24, 26, 0.55);
}
.sheet {
width: 100%;
max-width: 32rem;
max-height: 92vh;
overflow-y: auto;
padding: 16px 16px 20px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 16px 16px 0 0;
}
.sheet h2 { margin: 0; font-size: 1.1rem; }
.btn.close { min-width: 2.75rem; padding: 4px 10px; }
/* One pane at a time on a phone: the deepest one. */
@media (max-width: 60rem) {
.owner { grid-template-columns: minmax(0, 1fr); }
.owner > .pane { display: none; }
.owner.depth-1 > .pane-listings,
.owner.depth-2 > .pane-requests,
.owner.depth-3 > .pane-thread { display: block; }
.narrow-only { display: inline-block; }
}
@media (min-width: 40rem) {
.backdrop { align-items: center; }
.sheet { border-radius: var(--radius); }
}
/* Publish form */
.form { display: grid; gap: 14px; max-width: 44rem; }
.form .field label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 600; }
.form .field p { margin: 0; }
.form input:not([type="radio"]):not([type="checkbox"]), .form select, .form textarea { width: 100%; font-weight: 400; }
.form input[aria-invalid="true"], .form select[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--bad); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; font-size: 0.9rem; font-weight: 600; }
.radios { display: flex; gap: 20px; flex-wrap: wrap; }
.radios label.check { flex-direction: row; font-weight: 400; }
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.listing-bar { margin-bottom: 10px; }
.listing-bar .actions { align-items: center; flex-wrap: wrap; }