Show keyboard shortcuts on presenter controls
Tooltips are useless while presenting, so the controls now show their shortcut as [V], [H], [F] and [Q]; the QR overlay hints at [Esc]. Labels of dynamic buttons live in a [data-label] span so the hint survives updates. Shortcuts are exposed via aria-keyshortcuts and hidden on touch-only devices. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
50010484be
commit
0ca36b8ec6
4 files changed
+32
-8
No files matched your search
@@ -398,6 +398,15 @@ body.present {
|
||||
.stage__controls:hover, .stage__controls:focus-within { opacity: 1; }
|
||||
.ctrl { min-width: 44px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--text); font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
|
||||
.ctrl:hover { background: rgba(255, 255, 255, .15); }
|
||||
.ctrl { gap: 6px; }
|
||||
/* Visible keyboard shortcuts – nobody hovers for tooltips during a talk. */
|
||||
.ctrl__key { font: inherit; font-size: .8em; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
|
||||
.stage__qr { position: relative; }
|
||||
.stage__qr .ctrl__key { display: block; margin-top: 2px; color: #444; text-align: center; }
|
||||
.qr-overlay__hint { font-size: 1rem !important; color: var(--muted); }
|
||||
@media (hover: none) and (pointer: coarse) {
|
||||
.ctrl__key { display: none; } /* touch devices usually have no keyboard */
|
||||
}
|
||||
.ctrl-counter { color: var(--muted); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
|
||||
|
||||
.qr-overlay { position: fixed; inset: 0; background: rgba(8, 9, 20, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: zoom-out; z-index: 10; }
|
||||
|
||||
Reference in new issue
Block a user