Home-screen web app; phone layout; reload on deploy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-18 14:31:41 +01:00
parent 9058039eb7
commit 14b4c07208
8 changed files with 121 additions and 25 deletions

View file

@ -24,7 +24,7 @@ body {
font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--xp); }
#app { display: flex; min-height: 100vh; }
@ -125,8 +125,8 @@ main { padding: 24px; max-width: 1200px; width: 100%; }
.section-title { margin: 26px 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
.cols { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
@ -264,7 +264,7 @@ table.parts td:last-child { text-align: right; font-variant-numeric: tabular-num
.welcome { max-width: 760px; }
.welcome h2 { font-size: 26px; margin: 0 0 6px; }
.classes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin: 16px 0; }
.classes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); margin: 16px 0; }
.class-card {
text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
padding: 14px; display: flex; gap: 12px;
@ -275,7 +275,7 @@ table.parts td:last-child { text-align: right; font-variant-numeric: tabular-num
/* --- toasts and modal ------------------------------------------------- */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 30; }
#toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.toast {
background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px;
font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); animation: rise .2s ease-out;
@ -294,12 +294,36 @@ table.parts td:last-child { text-align: right; font-variant-numeric: tabular-num
#scrim { display: none; }
@media (max-width: 900px) {
#side { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
#app.open #side { transform: none; }
/* A drawer pinned to the screen edges (not 100vh, which iOS sizes for the
largest viewport) that keeps its scrolling to itself. */
#side {
position: fixed; left: 0; top: 0; bottom: 0; height: auto; z-index: 20;
width: min(280px, 85vw);
transform: translateX(-100%); transition: transform .2s;
overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
padding-top: env(safe-area-inset-top);
padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
#app.open #side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
#app.open #scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, .5); }
html.menu-open, html.menu-open body { overflow: hidden; }
.menu-btn { display: block; }
#top { padding: 10px 16px; flex-wrap: wrap; }
main { padding: 16px; }
#top { padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); flex-wrap: wrap; gap: 8px; }
#top h1 { flex: 1 1 auto; }
main { padding: 16px max(16px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.cols, .bank-wrap { grid-template-columns: 1fr; }
.chip.act .label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.chip { max-width: 100%; }
.chip.act .label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
#toasts { left: 16px; right: 16px; }
.stats { grid-template-columns: repeat(2, 1fr); }
.skill-head { flex-wrap: wrap; }
.skill-head .info { flex-basis: 60%; }
.slots { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.levels { grid-template-columns: repeat(2, 1fr); }
/* iOS zooms into any input under 16px when it's focused. */
input[type=text], input[type=number], textarea, select { font-size: 16px; }
}
@media (pointer: coarse) {
.nav { padding: 11px 18px; }
.btn.sm { padding: 6px 11px; }
}