Files
ArchyHCL/site/style.css
T
ssmithxandClaude Sonnet 5 a22a9c9826
Build and validate / build (push) Successful in 1m38s
Initial scaffold: ArchyHCL, a community hardware compatibility list for Archipelago
Modeled on three researched precedents (see README): OpenWrt's Table of
Hardware for the browsable sortable/filterable table UX, postmarketOS's
working/community/testing tiers for the status field (collapsed to
working/partial/broken here), and RaspiBlitz's scattered GitHub-issues
approach as a negative example to avoid — hence structured YAML report
files validated against a JSON Schema instead of free-text issue threads.

- data/reports/*.yml + data/schema.json: one file per report, schema
  requires `issues` whenever status is partial/broken
- scripts/build.py: validates every report and builds site/data.json,
  fails loudly on bad data (same idea as archy's own
  validate-app-manifest.sh)
- site/: plain HTML/CSS/JS, no framework or build step, fetches data.json
  client-side — search, filter by status/form-factor, sortable columns,
  click a row for issues/notes detail
- .github/ISSUE_TEMPLATE/hardware-report.yml: structured submission path
  for contributors who don't want to touch git directly
- .gitea/workflows/ci.yml: runs the build/validate step on push and PRs

Not yet deployed anywhere — see README's Deployment section.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 11:32:58 +00:00

141 lines
2.6 KiB
CSS

:root {
--bg: #0a0e12;
--panel: #10161c;
--border: #223038;
--text: #d8e4e8;
--muted: #7f97a0;
--accent: #00fff2;
--accent-dim: #00b3a8;
--working: #33d17a;
--partial: #f5b23c;
--broken: #f0506e;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: ui-monospace, "SF Mono", Consolas, monospace;
line-height: 1.5;
}
header, main, footer {
max-width: 1100px;
margin: 0 auto;
padding: 1.5rem;
}
h1 {
color: var(--accent);
letter-spacing: 0.08em;
margin-bottom: 0.25rem;
}
a { color: var(--accent-dim); }
a:hover { color: var(--accent); }
header p { color: var(--muted); max-width: 70ch; }
header .cta { color: var(--text); }
.controls {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
margin-bottom: 1rem;
}
#search {
flex: 1 1 260px;
min-width: 200px;
}
input, select {
background: var(--panel);
border: 1px solid var(--border);
color: var(--text);
padding: 0.5rem 0.7rem;
border-radius: 4px;
font-family: inherit;
font-size: 0.9rem;
}
input:focus, select:focus {
outline: none;
border-color: var(--accent-dim);
}
.count { color: var(--muted); font-size: 0.85rem; margin-left: auto; }
table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
thead th {
text-align: left;
padding: 0.6rem 0.7rem;
border-bottom: 2px solid var(--border);
color: var(--muted);
cursor: pointer;
user-select: none;
white-space: nowrap;
}
thead th:hover { color: var(--accent); }
tbody tr {
border-bottom: 1px solid var(--border);
}
tbody tr:hover { background: var(--panel); }
tbody tr.expandable { cursor: pointer; }
td {
padding: 0.6rem 0.7rem;
vertical-align: top;
}
.badge {
display: inline-block;
padding: 0.15rem 0.5rem;
border-radius: 3px;
font-size: 0.75rem;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.badge.working { background: rgba(51, 209, 122, 0.15); color: var(--working); }
.badge.partial { background: rgba(245, 178, 60, 0.15); color: var(--partial); }
.badge.broken { background: rgba(240, 80, 110, 0.15); color: var(--broken); }
.detail-row td {
background: var(--panel);
color: var(--muted);
white-space: pre-wrap;
font-size: 0.82rem;
padding: 0.8rem 1.2rem;
}
.detail-row strong { color: var(--text); }
.empty { color: var(--muted); text-align: center; padding: 2rem; }
footer {
color: var(--muted);
font-size: 0.8rem;
border-top: 1px solid var(--border);
margin-top: 2rem;
}
footer code {
background: var(--panel);
padding: 0.1rem 0.35rem;
border-radius: 3px;
}