| index 9a30b5b..b2cc2cd 100644 |
| --- a/docs/superpowers/specs/2026-11-17-presenter-mockup.html |
| +++ b/docs/superpowers/specs/2026-11-17-presenter-mockup.html |
| @@ -3,7 +3,7 @@ |
| <head> |
| <meta charset="utf-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| -<title>Slides: the presenter window (mockup 5)</title> |
| +<title>Slides: the presenter window (mockup 6)</title> |
| <style> |
| /* The palette and the proportions are the HalfStack deck's presenter view. */ |
| :root { |
| @@ -13,7 +13,7 @@ |
| --ease: cubic-bezier(0.16, 1, 0.3, 1); |
| } |
| * { box-sizing: border-box; } |
| - html, body { margin: 0; block-size: 100%; } |
| + html, body { margin: 0; block-size: 100%; overflow: hidden; } |
| body { background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, sans-serif; -webkit-font-smoothing: antialiased; } |
| ::selection { background: rgb(255 180 84 / 0.3); color: var(--ink); } |
| * { scrollbar-width: thin; scrollbar-color: #3a3a46 transparent; } |
| @@ -23,10 +23,11 @@ |
| [hidden] { display: none !important; } |
| svg { inline-size: 20px; block-size: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; } |
| |
| - #presenter { min-block-size: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 24px 32px; padding: 16px 28px 24px; } |
| + /* The window never scrolls: four rows, and the middle one takes what is left. */ |
| + #presenter { block-size: 100dvh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 32px; padding: 16px 28px 16px; } |
| |
| /* ---- header ---- */ |
| - #phead { grid-column: 1 / 3; display: flex; align-items: center; gap: 16px; padding-block-end: 16px; border-block-end: 1px solid var(--border); position: relative; font-family: var(--mono); font-variant-numeric: tabular-nums; } |
| + #phead { grid-column: 1 / 3; grid-row: 1; margin-block-end: 20px; display: flex; align-items: center; gap: 16px; padding-block-end: 16px; border-block-end: 1px solid var(--border); position: relative; font-family: var(--mono); font-variant-numeric: tabular-nums; } |
| #ppos { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 8px; font-size: 24px; line-height: 1.2; color: var(--ink); transition: background-color 0.2s var(--ease); } |
| #ppos:hover, #ppos[aria-expanded="true"] { background: var(--raised); } |
| #ppos small { font-size: 24px; color: var(--faint); } |
| @@ -40,20 +41,20 @@ |
| .iconbtn:hover, .iconbtn[aria-expanded="true"], .iconbtn[aria-pressed="true"] { background: var(--raised); color: var(--ink); } |
| .iconbtn[aria-pressed="true"] { color: var(--accent); } |
| .pop { position: absolute; z-index: 4; inset-block-start: calc(100% + 8px); border-radius: 12px; background: var(--panel); border: 1px solid var(--border); box-shadow: 0 12px 16px rgb(0 0 0 / 0.5); font-family: system-ui, sans-serif; } |
| - #pmenu { inset-inline-end: 0; min-inline-size: 280px; padding: 8px; display: grid; gap: 2px; font-size: 17px; } |
| + #pmenu { inset-inline-end: 0; min-inline-size: 280px; max-block-size: calc(100dvh - 96px); overflow-y: auto; padding: 8px; display: grid; gap: 2px; font-size: 17px; } |
| #pmenu button { padding: 10px 14px; border-radius: 8px; text-align: start; color: var(--ink-2); } |
| #pmenu button:hover { background: var(--raised); color: var(--ink); } |
| #pmenu hr { inline-size: 100%; border: 0; border-block-start: 1px solid var(--border); margin: 4px 0; } |
| |
| /* ---- jump to any slide ---- */ |
| - #pjump { inset-inline-start: 0; inline-size: min(calc(100vw - 56px), 880px); padding: 16px; display: grid; gap: 12px; } |
| + #pjump { inset-inline-start: 0; inline-size: min(calc(100vw - 56px), 880px); max-block-size: calc(100dvh - 96px); padding: 16px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; } |
| #jfield { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); } |
| #jq { flex: 1; min-inline-size: 0; background: none; border: 0; font-size: 18px; color: var(--ink); } |
| #jq::placeholder { color: var(--muted); } |
| #jq:focus { outline: none; } |
| #jfield:focus-within { border-color: var(--accent); } |
| #jcount { font: 14px/1.5 var(--mono); color: var(--muted); } |
| - #jgrid { max-block-size: min(58vh, 520px); overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px 10px; padding: 2px; } |
| + #jgrid { min-block-size: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px 10px; padding: 2px; } |
| .jt { display: grid; gap: 6px; inline-size: 100%; min-inline-size: 0; padding: 6px; border-radius: 8px; text-align: start; color: var(--muted); font-size: 14px; line-height: 1.35; } |
| .jt > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } |
| .jt:hover { background: var(--raised); color: var(--ink); } |
| @@ -69,16 +70,19 @@ |
| .jt em { font-style: normal; color: var(--faint); } |
| |
| /* ---- left: now and next ---- */ |
| - #pleft { min-inline-size: 0; display: flex; flex-direction: column; gap: 14px; } |
| - .pframe { inline-size: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); color: var(--paper-ink); border-radius: 4px; box-shadow: 0 8px 16px rgb(0 0 0 / 0.45); flex: none; display: grid; align-content: center; gap: 6%; padding: 6% 8%; } |
| + /* The two slides share the column's height: the next one is half the size of |
| + the current one, and 104px is the step track, the label and their gaps. */ |
| + #pleft { grid-row: 3; min-inline-size: 0; min-block-size: 0; container-type: size; display: flex; flex-direction: column; gap: 14px; } |
| + #pleft > * { --now: min(100cqw, calc((100cqh - 104px) / 1.5 * 16 / 9)); } |
| + .pframe { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); color: var(--paper-ink); border-radius: 4px; box-shadow: 0 8px 16px rgb(0 0 0 / 0.45); flex: none; display: grid; align-content: center; gap: 6%; padding: 6% 8%; } |
| .pframe.blacked { background: #000; } |
| .pframe.blacked > * { visibility: hidden; } |
| .pframe h2 { margin: 0; font: 700 2.4em/1.2 Georgia, serif; text-wrap: balance; } |
| .pframe ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 0.5em; font-size: 1.25em; line-height: 1.4; } |
| .pframe li { transition: opacity 0.35s var(--ease); } |
| .pframe li.off { opacity: 0; } |
| - #pcur { font-size: clamp(11px, 1.35vw, 22px); } |
| - #pnext { inline-size: 50%; font-size: clamp(7px, 0.68vw, 12px); opacity: 0.92; } |
| + #pcur { inline-size: var(--now); font-size: calc(var(--now) / 34); } |
| + #pnext { inline-size: calc(var(--now) / 2); font-size: calc(var(--now) / 68); opacity: 0.92; } |
| #psteps { display: flex; align-items: center; gap: 14px; } |
| #ptrack { flex: 1; display: flex; gap: 6px; max-inline-size: 320px; } |
| #ptrack i { flex: 1; block-size: 6px; border-radius: 3px; background: #2c2c36; overflow: hidden; position: relative; } |
| @@ -89,8 +93,8 @@ |
| #pnext-label { display: flex; align-items: center; gap: 8px; margin-block-start: 6px; font: 16px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); } |
| |
| /* ---- right: notes ---- */ |
| - #pright { min-inline-size: 0; display: grid; grid-template-rows: minmax(0, 1fr); position: relative; } |
| - #pnotes { min-inline-size: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 60px 32px 28px; font-size: 32px; line-height: 1.45; color: var(--ink-2); } |
| + #pright { grid-row: 3; min-inline-size: 0; min-block-size: 0; display: grid; grid-template-rows: minmax(0, 1fr); position: relative; } |
| + #pnotes { min-inline-size: 0; min-block-size: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 60px 32px 28px; font-size: 32px; line-height: 1.45; color: var(--ink-2); } |
| #pnotes.scroll { overflow-y: auto; } |
| #pnotes p { margin: 0; max-inline-size: 30em; transition: color 0.3s var(--ease); } |
| #pnotes section { padding-block: 0.35em; } |
| @@ -104,12 +108,14 @@ |
| |
| /* ---- arranging ---- */ |
| .arranging .pframe, .arranging #pnotes { outline: 2px dashed var(--accent); outline-offset: 6px; resize: both; overflow: auto; cursor: move; } |
| - #parrange { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 10px; background: var(--raised); color: var(--ink-2); font-size: 17px; } |
| + #parrange { grid-column: 1 / 3; grid-row: 2; margin-block-end: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 10px; background: var(--raised); color: var(--ink-2); font-size: 17px; } |
| #parrange span { margin-inline-end: auto; } |
| #parrange button { min-block-size: 36px; padding: 6px 16px; border-radius: 8px; border: 1px solid var(--border); color: var(--ink); } |
| #parrange button:hover { background: var(--panel); } |
| - #hint { grid-column: 1 / 3; color: var(--muted); font-size: 15px; max-inline-size: 110ch; } |
| - @media (max-width: 820px) { #presenter { grid-template-columns: 1fr; } #phead, #hint, #parrange { grid-column: 1; flex-wrap: wrap; } #pelapsed { font-size: 32px; } } |
| + #hint { grid-column: 1 / 3; grid-row: 4; margin: 12px 0 0; color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } |
| + @media (max-width: 820px) { #presenter { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1.2fr) minmax(0, 1fr); row-gap: 0; padding-inline: 16px; } #phead, #parrange { grid-column: 1; flex-wrap: wrap; } #pright { grid-row: 4; margin-block-start: 12px; } #hint { display: none; } #pelapsed { font-size: 32px; } #pnotes { padding: 52px 16px 12px; } } |
| + @media (max-width: 480px) { #presenter { grid-template-rows: auto auto minmax(0, 0.8fr) minmax(0, 1.2fr); } } |
| + @media (max-height: 560px) { #hint { display: none; } #phead { margin-block-end: 12px; } } |
| @media (prefers-reduced-motion: reduce) { * { transition: none !important; } } |
| </style> |
| </head> |
| @@ -195,7 +201,7 @@ |
| const n = $('pnotes'); n.classList.toggle('scroll', mode === 'scroll'); |
| $('nfit').setAttribute('aria-pressed', String(mode === 'fit')); $('nscroll').setAttribute('aria-pressed', String(mode === 'scroll')); |
| let px = size; n.style.fontSize = px + 'px'; |
| - if (mode === 'fit') while (n.scrollHeight > n.clientHeight && px > 16) { px -= 1; n.style.fontSize = px + 'px'; } |
| + if (mode === 'fit') while (n.scrollHeight > n.clientHeight && px > 12) { px -= 1; n.style.fontSize = px + 'px'; } |
| if (mode === 'scroll') { const now = n.querySelector('.now'); if (now) now.scrollIntoView({ block: 'nearest' }); } |
| } |
| const stop = f => e => { e.stopPropagation(); f(); }; |