From a695a5cf1f00c77413381c35a876c60a0990b9b5 Mon Sep 17 00:00:00 2001 From: MiguelCarino Date: Sat, 24 Oct 2026 21:43:46 -0600 Subject: [PATCH] Use the shared key legend and touch section in help The help dialog's key list is .kbd-grid and its touch section .touch-only; the local modal-head and pause-button workarounds are gone. --- build.js | 16 +++++----------- carino-ui.css | 23 +++++++++++++++++++++++ index.html | 16 +++++----------- 3 files changed, 33 insertions(+), 22 deletions(-) diff --git a/build.js b/build.js index ea7b9e1..c6f9b85 100644 --- a/build.js +++ b/build.js @@ -368,15 +368,9 @@ ${BASELINE} for good after one play and never reappears on resize or fullscreen change. */ @keyframes hint { 0% { opacity: 0 } 12% { opacity: .6 } 70% { opacity: .6 } 100% { opacity: 0 } } @media (prefers-reduced-motion: reduce) { #hint { animation-duration: 14s } } - /* The help overlay: Branding's modal; the touch section shows on coarse pointers only. */ - .cc-keys { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; align-items: center; - margin: 12px 0 0; font-family: var(--mono); font-size: var(--fs-btn); color: var(--text-muted); } - .cc-keys dt { white-space: nowrap; } - .cc-keys dd { margin: 0; text-transform: uppercase; letter-spacing: .06em; } - .cc-touch { display: none; margin: 14px 0 0; } - .modal-head > div:first-child { flex: 1; } - @media (pointer: coarse) { .cc-touch { display: block; } } - #ccPause[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-faint); } + /* The help overlay: Branding's modal, .kbd-grid key list and .touch-only touch section. */ + .cc-keys { margin: 12px 0 0; } + .cc-touch { margin: 14px 0 0; } @@ -396,11 +390,11 @@ ${BASELINE}