Dimmed buttons say why; the directory fits at 200% zoom (#507)

Checked against the style guide's design half:

- Dimmed, not removed: the page already dims rather than hides, but a
  dimmed toolbar button kept its usual tooltip, so it looked broken.
  dim() sets the reason (Choose an item first, Open a feed to
  unsubscribe from it, Nothing to play in this item) and gives the
  usual tooltip back. The player's play-button sync leaves a dimmed one
  alone, and syncTools asks it to repaint so a playing item still says
  Pause. The admin page's Save says nothing has changed yet.
- 200% zoom on a 320 px screen (160 CSS px): the app and admin page fit;
  the directory scrolled sideways, its name on one line, its header form
  beside it, its category grid at a 180 px minimum and the chart's words.
  Now its name wraps, the form takes its own line, the grid's minimum is
  the width, and long words break.
- Tap targets at 320 px: the directory's tabs, chips, button and search
  box were 35-39 px, now 40; the page's checkbox rows were 26 px, now
  40. The admin switches are iOS's 51x31 inside a taller row.
- The directory's hovers sit inside (hover:hover).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
This commit is contained in:
2026-12-02 12:22:22 -05:00
parent 19f9790eef
commit 3de955c52a
14 changed files with 53 additions and 27 deletions

View File

@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- On a phone the directory's pages fit at 200% zoom without scrolling sideways, its tabs, buttons and search box are 40 px to tap, and a link does not stay underlined after a tap (#507).
- An episode its feed gives no title is named by the opening of its text or else its file's name, where it had none (#502).
- Its checks of YouTube channels go one at a time, two seconds apart, since YouTube refuses many asked together (#386).
- Its JSON log lines no longer carry their span, once on its own and again in a list, which said nothing the line's own fields did not (#363).

View File

@@ -6,7 +6,7 @@
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
@media (hover:hover){a:hover{text-decoration:underline}}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
header{display:flex;align-items:center;gap:16px;padding:12px 20px;background:var(--panel);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1}
.brand{display:flex;align-items:center;gap:10px;color:var(--fg);font-weight:700;font-size:17px;white-space:nowrap}
@@ -29,21 +29,21 @@ h3{font-size:17px;margin:28px 0 8px}
/* A grid item is as wide as its content unless told otherwise, and a long title then runs off the page. */
.chart li,.tile{min-width:0}
.chart a{display:flex;align-items:center;gap:12px;padding:8px;border-radius:10px;color:var(--fg)}
.chart a:hover{background:var(--panel);text-decoration:none}
@media (hover:hover){.chart a:hover{background:var(--panel);text-decoration:none}}
.no{width:22px;text-align:right;color:var(--faint);font-variant-numeric:tabular-nums;flex:none}
.txt{display:flex;flex-direction:column;min-width:0}
.txt b,.tile b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
small{color:var(--dim);font-size:13px}
.cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr));gap:12px}
.cat{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:12px;background:var(--panel);border:1px solid var(--line);color:var(--fg)}
.cat:hover{border-color:var(--accent);text-decoration:none}
@media (hover:hover){.cat:hover{border-color:var(--accent);text-decoration:none}}
.tabs,.pills{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
.tabs a,.pills a{padding:6px 14px;border-radius:999px;background:var(--panel);border:1px solid var(--line);color:var(--fg);font-size:14px}
.tabs a[aria-current],.pills a[aria-current]{background:var(--accent);border-color:var(--accent);color:var(--ink)}
.pills a[aria-current] small{color:inherit}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px 14px}
.tile{display:flex;flex-direction:column;gap:4px;min-width:0;color:var(--fg)}
.tile:hover{text-decoration:none}.tile:hover b{text-decoration:underline}
@media (hover:hover){.tile:hover{text-decoration:none}.tile:hover b{text-decoration:underline}}
.show{display:flex;gap:24px;align-items:flex-end;margin-top:8px}
.meta{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.meta h2{margin:0;font-size:28px;line-height:1.15;overflow-wrap:anywhere}
@@ -58,9 +58,17 @@ button{font:inherit;font-weight:600;padding:8px 16px;border-radius:10px;border:0
article{padding:12px 0;border-bottom:1px solid var(--line);max-width:80ch}
article p{margin:4px 0;color:var(--dim)}
@media (max-width:600px){
header{padding:10px 16px;gap:10px}
header{padding:10px 16px;gap:10px;flex-wrap:wrap}
/* Under the name rather than squeezed beside it: at 200% zoom the two did not fit (#507). */
header form{flex:1 1 100%}
/* 40 px to tap, as the style guide asks of a phone (#507). */
.tabs a,.pills a{padding:9px 14px}
button,input{padding-top:10px;padding-bottom:10px}
.brand span,.brand{font-size:15px}
main{padding:16px}
/* Its name may take two lines: on one, it ran past the edge at 200% zoom (#507). */
.brand{white-space:normal}
/* A word too long for the line breaks rather than pushing the page sideways at 200% zoom (#507). */
main{padding:16px;overflow-wrap:anywhere}
.show{flex-direction:column;align-items:flex-start;gap:14px}
.art.lg{width:140px}
.tiles{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:14px 10px}