From e9a6ad49d133ff3cb79e6ed89928e610e6719425 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Fri, 24 Apr 2026 23:55:00 +0200 Subject: [PATCH] refactor(samples/hp48): unify popup menu handling and move angle mode into keypad --- samples/hp48/index.html | 142 +++++++++++++++++++++------------------- 1 file changed, 75 insertions(+), 67 deletions(-) diff --git a/samples/hp48/index.html b/samples/hp48/index.html index 2c0f60d..a4b3bd1 100644 --- a/samples/hp48/index.html +++ b/samples/hp48/index.html @@ -109,25 +109,12 @@ pointer-events: none; } - .input-row { - display: grid; - grid-template-columns: 1fr 150px; - gap: 12px; - margin-top: 14px; - } - - input, select, button { + input, button { border-radius: 10px; border: 1px solid #000; font: inherit; } - input, select { - padding: 12px 14px; - background: #f7f7f7; - color: #111; - } - .panel { position: relative; margin-top: 14px; @@ -219,7 +206,7 @@ button:active { transform: translateY(1px); } - .constants-menu { + .popup-menu { position: absolute; top: 54px; left: 14px; @@ -234,11 +221,11 @@ box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); } - .constants-menu[hidden] { + .popup-menu[hidden] { display: none; } - .constants-menu button { + .popup-menu button { width: 100%; min-height: 40px; } @@ -257,10 +244,6 @@ padding: 16px; } - .input-row { - grid-template-columns: 1fr; - } - .keypad-labels, .keypad-wrap { gap: 8px; @@ -313,14 +296,6 @@ -
- -
-
Calculator Keys
-