c52404fbb9
The header ✕ sat under the iPhone status bar/notch (overlay had no safe-area padding), so there was no reachable way out without saving. Add a labeled Cancel button next to Save, and pad the header/footer for the notch + home indicator. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
116 lines
5.3 KiB
CSS
116 lines
5.3 KiB
CSS
/* Hand recorder overlay. Uses the app theme tokens (--accent, --bg-* etc.) from
|
|
style.css when mounted in index.html. For a standalone recorder.html, import those
|
|
tokens too (see :root in style.css). */
|
|
|
|
.rec-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
background: var(--bg-dark, #070707);
|
|
display: none;
|
|
flex-direction: column;
|
|
}
|
|
.rec-overlay.open { display: flex; }
|
|
|
|
.rec-root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
color: var(--text-main, #e8e8e8);
|
|
font-family: var(--font-console, ui-monospace, monospace);
|
|
}
|
|
|
|
.rec-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 14px;
|
|
padding-top: calc(12px + env(safe-area-inset-top)); /* clear the notch/status bar */
|
|
border-bottom: 1px solid var(--border, #2a1d12);
|
|
}
|
|
.rec-title { font-weight: 700; color: var(--accent, #ff7a00); }
|
|
.rec-meta { color: var(--text-fade, #8a8a8a); font-size: .82rem; flex: 1; }
|
|
.rec-x {
|
|
background: none; border: 1px solid var(--border, #2a1d12); color: var(--text-fade, #8a8a8a);
|
|
border-radius: 8px; width: 34px; height: 34px; font-size: 1rem;
|
|
}
|
|
|
|
.rec-body { flex: 1; overflow-y: auto; padding: 12px 14px 20px; -webkit-overflow-scrolling: touch; }
|
|
.rec-sec { margin-bottom: 18px; }
|
|
.rec-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; color: var(--text-fade, #8a8a8a); margin-bottom: 6px; }
|
|
.rec-dim { color: var(--text-fade, #8a8a8a); font-size: .85rem; }
|
|
|
|
.rec-pos-row { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.rec-pos {
|
|
min-width: 44px; padding: 9px 10px; border-radius: 9px;
|
|
background: var(--bg-elev, #0e0e0e); color: var(--text-main, #e8e8e8);
|
|
border: 1px solid var(--border, #2a1d12); font-size: .82rem; font-weight: 600;
|
|
}
|
|
.rec-pos.on { background: var(--accent, #ff7a00); color: #111; border-color: var(--accent, #ff7a00); }
|
|
.rec-pos.add { color: var(--text-fade, #8a8a8a); border-style: dashed; }
|
|
|
|
.rec-hero-cards { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
|
|
|
|
.rec-seats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
|
|
.rec-seat { display: flex; align-items: center; gap: 8px; }
|
|
.rec-seat-pos { min-width: 42px; font-weight: 700; color: var(--gold, #ffb347); }
|
|
.rec-name {
|
|
flex: 1; min-width: 0; padding: 8px 9px; border-radius: 8px;
|
|
background: var(--bg-elev, #0e0e0e); border: 1px solid var(--border, #2a1d12);
|
|
color: var(--text-main, #e8e8e8); font-family: inherit; font-size: .85rem;
|
|
}
|
|
.rec-rm { background: none; border: none; color: var(--text-fade, #8a8a8a); font-size: .9rem; padding: 4px; }
|
|
|
|
/* typed card entry */
|
|
.rec-field { display: block; margin-top: 10px; }
|
|
.rec-cards {
|
|
width: 100%; padding: 10px 11px; border-radius: 8px;
|
|
background: var(--bg-elev, #0e0e0e); border: 1px solid var(--border, #2a1d12);
|
|
color: var(--text-main, #e8e8e8); font-family: inherit; font-size: .95rem;
|
|
letter-spacing: 1px; box-sizing: border-box;
|
|
}
|
|
.rec-cards.sm { width: 88px; flex: none; padding: 8px 9px; font-size: .85rem; }
|
|
|
|
.rec-street-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
|
|
.rec-tab {
|
|
flex: 1; padding: 9px 6px; border-radius: 9px; font-size: .78rem; font-weight: 600;
|
|
background: var(--bg-elev, #0e0e0e); color: var(--text-main, #e8e8e8); border: 1px solid var(--border, #2a1d12);
|
|
}
|
|
.rec-tab.on { background: var(--accent, #ff7a00); color: #111; border-color: var(--accent, #ff7a00); }
|
|
|
|
.rec-act-add { display: flex; gap: 6px; margin: 8px 0; }
|
|
.rec-sel, .rec-num {
|
|
padding: 9px 8px; border-radius: 8px; background: var(--bg-elev, #0e0e0e);
|
|
border: 1px solid var(--border, #2a1d12); color: var(--text-main, #e8e8e8);
|
|
font-family: inherit; font-size: .85rem; min-width: 0;
|
|
}
|
|
.rec-sel { flex: 1; }
|
|
.rec-num { width: 70px; }
|
|
.rec-add-act { padding: 9px 12px; border-radius: 8px; background: var(--border-bright, #4a2f15); color: #fff; border: none; font-weight: 600; }
|
|
.rec-result { display: flex; gap: 12px; }
|
|
.rec-result label { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; color: var(--text-fade, #8a8a8a); }
|
|
|
|
.rec-log { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
|
|
.rec-ln { font-size: .82rem; color: var(--text-main, #e8e8e8); }
|
|
.rec-ln.brd { display: flex; gap: 4px; align-items: center; color: var(--text-fade, #8a8a8a); }
|
|
.rec-ln b { color: var(--accent, #ff7a00); font-weight: 700; }
|
|
|
|
.rec-foot {
|
|
display: flex; gap: 10px;
|
|
padding: 12px 14px;
|
|
padding-bottom: calc(12px + env(safe-area-inset-bottom));
|
|
border-top: 1px solid var(--border, #2a1d12);
|
|
}
|
|
.rec-save { flex: 1; padding: 14px; border-radius: 10px; background: var(--accent, #ff7a00); color: #111; border: none; font-weight: 700; font-size: 1rem; }
|
|
.rec-save:disabled { opacity: .6; }
|
|
.rec-cancel { padding: 14px 18px; border-radius: 10px; background: var(--bg-elev, #0e0e0e); color: var(--text-fade, #8a8a8a); border: 1px solid var(--border, #2a1d12); font-weight: 600; font-size: 1rem; }
|
|
|
|
.rec-undo { background: none; border: none; color: var(--text-fade, #8a8a8a); font-size: .75rem; padding: 0 4px; }
|
|
|
|
/* The Record tab swaps in for Mind in the bottom bar, but only in poker (cash) mode.
|
|
body.cash-mode is toggled on mode change in index.html. */
|
|
#tabbar .tab-rec { display: none; }
|
|
body.cash-mode #tabbar .tab-rec { display: flex; }
|
|
body.cash-mode #tabbar .tab-mind { display: none; }
|
|
#tabbar .tab-rec .ti { color: var(--accent, #ff7a00); filter: none; }
|