From 470d4e8e765356d6c8d3cd62002f1dd5be28b6e9 Mon Sep 17 00:00:00 2001 From: Marco Mooren Date: Wed, 13 May 2026 13:53:22 +0200 Subject: [PATCH] style: improve CSS formatting and organization for play gate modal and zones panel --- web/master/style.css | 135 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 107 insertions(+), 28 deletions(-) diff --git a/web/master/style.css b/web/master/style.css index 4f6a61d..adcf1ec 100644 --- a/web/master/style.css +++ b/web/master/style.css @@ -183,7 +183,7 @@ body { pointer-events: none; } -.master .np > * { +.master .np>* { position: relative; } @@ -960,36 +960,90 @@ body { font-size: 11px; text-align: center; } + /* === Click-to-start gate modal === */ .play-gate-backdrop { - position: fixed; inset: 0; - background: rgba(0,0,0,0.72); + position: fixed; + inset: 0; + background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); - display: flex; align-items: center; justify-content: center; + display: flex; + align-items: center; + justify-content: center; z-index: 9999; } + .play-gate-card { - background: #161a22; border: 1px solid #262b36; - border-radius: 20px; padding: 28px 32px; - min-width: 320px; max-width: 480px; - box-shadow: 0 18px 40px rgba(0,0,0,0.55); - text-align: center; color: #e9ecf2; + background: #161a22; + border: 1px solid #262b36; + border-radius: 20px; + padding: 28px 32px; + min-width: 320px; + max-width: 480px; + box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); + text-align: center; + color: #e9ecf2; } -.play-gate-title { margin: 0 0 8px; font-size: 20px; } -.play-gate-station { color: #ff7a3d; font-weight: 600; margin-bottom: 4px; } -.play-gate-sub { color: #8a90a0; font-size: 13px; margin-bottom: 16px; } -.play-gate-row { display: flex; gap: 12px; justify-content: center; margin-top: 18px; } -.play-gate-start, .play-gate-cancel { - padding: 10px 22px; border-radius: 14px; - border: 1px solid #262b36; background: #1f242e; color: #e9ecf2; - font-size: 15px; cursor: pointer; + +.play-gate-title { + margin: 0 0 8px; + font-size: 20px; } -.play-gate-start { background: #ff7a3d; border-color: #ff7a3d; color: #07080b; font-weight: 600; } -.play-gate-start:hover { filter: brightness(1.1); } -.play-gate-cancel:hover { background: #0e1116; } + +.play-gate-station { + color: #ff7a3d; + font-weight: 600; + margin-bottom: 4px; +} + +.play-gate-sub { + color: #8a90a0; + font-size: 13px; + margin-bottom: 16px; +} + +.play-gate-row { + display: flex; + gap: 12px; + justify-content: center; + margin-top: 18px; +} + +.play-gate-start, +.play-gate-cancel { + padding: 10px 22px; + border-radius: 14px; + border: 1px solid #262b36; + background: #1f242e; + color: #e9ecf2; + font-size: 15px; + cursor: pointer; +} + +.play-gate-start { + background: #ff7a3d; + border-color: #ff7a3d; + color: #07080b; + font-weight: 600; +} + +.play-gate-start:hover { + filter: brightness(1.1); +} + +.play-gate-cancel:hover { + background: #0e1116; +} + .play-gate-dismiss { - display: flex; gap: 8px; align-items: center; justify-content: center; - margin-top: 14px; color: #8a90a0; font-size: 12px; cursor: pointer; + display: flex; + gap: 8px; + align-items: center; + justify-content: center; + margin-top: 14px; + color: #8a90a0; + font-size: 12px; + cursor: pointer; } /* === Zones panel === */ @@ -999,14 +1053,39 @@ body { background: #0e1116; border: 1px solid #262b36; border-radius: 12px; - display: flex; flex-direction: column; gap: 6px; + display: flex; + flex-direction: column; + gap: 6px; } + .zones-label { - font-size: 11px; color: #8a90a0; text-transform: uppercase; letter-spacing: 0.1em; + font-size: 11px; + color: #8a90a0; + text-transform: uppercase; + letter-spacing: 0.1em; } + .zone-row { - display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 10px; + display: grid; + grid-template-columns: 120px 1fr 44px; + align-items: center; + gap: 10px; } -.zone-name { font-size: 13px; color: #e9ecf2; overflow: hidden; text-overflow: ellipsis; } -.zone-row input[type=range] { width: 100%; } -.zone-val { font-size: 12px; color: #8a90a0; text-align: right; font-variant-numeric: tabular-nums; } + +.zone-name { + font-size: 13px; + color: #e9ecf2; + overflow: hidden; + text-overflow: ellipsis; +} + +.zone-row input[type=range] { + width: 100%; +} + +.zone-val { + font-size: 12px; + color: #8a90a0; + text-align: right; + font-variant-numeric: tabular-nums; +} \ No newline at end of file