Embed the bggpipe "Game Shelves" export (static/games/) into a themed Hugo page. A small loader (embed.js) fetches each export page, lifts out its <main>, rewrites relative URLs, and rewires game links to ?g=<slug> so the blog chrome stays on every page; embed.css scopes the export's component styling to the embed. The export itself is untouched and stays re-exportable. Adds the menu entry and excludes badges/ from deploy. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
57 lines
3.1 KiB
CSS
57 lines
3.1 KiB
CSS
|
|
:root { --board:#faf3e3; --ink:#2a2438; --ink-soft:#6b6478; --line:#d8cdb4;
|
|
--sky:#cfe4f5; --navy:#2f3d5c; --accent:#7a4a9e;
|
|
/* on the sky background, --ink-soft misses WCAG AA (4.32:1); this
|
|
darker variant clears it — use it for any fine print outside a card */
|
|
--ink-soft-on-sky:#5d5669; }
|
|
* { box-sizing:border-box; }
|
|
body { margin:0; font:16px/1.55 system-ui, sans-serif; color:var(--ink);
|
|
background:var(--sky); }
|
|
main { max-width:72rem; margin:0 auto; padding:1.2rem; }
|
|
header.site { background:var(--navy); color:#fff; padding:.9rem 1.2rem; }
|
|
header.site a { color:#fff; text-decoration:none; font-weight:700; }
|
|
header.site .sub { color:#cfe4f5; font-size:.85rem; }
|
|
.controls { display:flex; gap:.5rem; flex-wrap:wrap; margin:1rem 0; }
|
|
.controls input[type=search] { flex:1 1 14rem; padding:.45rem .6rem;
|
|
border:2px solid var(--line); border-radius:.5rem; font:inherit; }
|
|
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(11.5rem,1fr));
|
|
gap:1rem; }
|
|
a.game { background:var(--board); border:1px solid var(--line);
|
|
border-radius:.8rem; overflow:hidden; text-decoration:none; color:inherit;
|
|
display:flex; flex-direction:column; box-shadow:0 2px 5px rgba(42,36,56,.15); }
|
|
a.game:hover, a.game:focus-visible { outline:3px solid var(--accent); }
|
|
a.game img { width:100%; aspect-ratio:1; object-fit:cover; display:block;
|
|
background:#e8ddc5; }
|
|
a.game .noart { width:100%; aspect-ratio:1; display:flex; align-items:center;
|
|
justify-content:center; font-size:3rem; font-weight:700; color:var(--navy);
|
|
background:#e8ddc5; }
|
|
a.game .info, .colophon .info { padding:.55rem .7rem .7rem; }
|
|
.colophon { background:var(--board); border:1px solid var(--line);
|
|
border-radius:.8rem; overflow:hidden; display:flex; flex-direction:column;
|
|
box-shadow:0 2px 5px rgba(42,36,56,.15); }
|
|
.colophon > img { width:100%; aspect-ratio:1; object-fit:cover; display:block;
|
|
background:#cfe4f5; }
|
|
.colophon .meta { margin:.35rem 0 0; font-size:.72rem; line-height:1.45; }
|
|
.colophon a { color:var(--accent); }
|
|
.gname { font-weight:700; }
|
|
.meta { color:var(--ink-soft); font-size:.82rem; }
|
|
main > .meta { color:var(--ink-soft-on-sky); }
|
|
.chip { display:inline-block; font-size:.7rem; border:1px solid var(--accent);
|
|
color:var(--accent); border-radius:1rem; padding:0 .5rem; }
|
|
.detail { display:flex; gap:1.4rem; flex-wrap:wrap; align-items:flex-start;
|
|
margin-top:1rem; }
|
|
.detail .art { flex:0 0 clamp(11rem,26vw,17rem); }
|
|
.detail .art img { width:100%; border-radius:.8rem; border:1px solid var(--line); }
|
|
.facts { flex:1 1 18rem; background:var(--board); border:1px solid var(--line);
|
|
border-radius:.8rem; padding:.9rem 1.1rem; }
|
|
.factrow { margin:.45rem 0; }
|
|
.factrow b { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em;
|
|
color:var(--ink-soft); margin-right:.4rem; }
|
|
.card { background:var(--board); border:1px solid var(--line);
|
|
border-radius:.8rem; padding:.9rem 1.1rem; margin-top:1rem; }
|
|
.desc { white-space:pre-wrap; }
|
|
footer { margin:2rem 0 1rem; color:var(--ink-soft-on-sky); font-size:.8rem;
|
|
text-align:center; }
|
|
footer a { color:var(--accent); }
|
|
a.pbb { font-weight:700; }
|