From 13eeec711930cb496191e7332dbb13189ad50a0a Mon Sep 17 00:00:00 2001 From: "Adriano (daitarn)" Date: Sat, 24 Oct 2026 14:41:25 +0200 Subject: [PATCH] Acquisizione: pagina, attributo hidden rispettato, indicatori su una riga, mirino a 2 px (#87) Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Jbf7qKuxsnAVjxthRy7dnB --- scripts/calibrazione_pagina.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/calibrazione_pagina.py b/scripts/calibrazione_pagina.py index 9cb0935..fbb7aee 100644 --- a/scripts/calibrazione_pagina.py +++ b/scripts/calibrazione_pagina.py @@ -22,6 +22,7 @@ PAGINA = r""" :root { --sfondo: #0f172a; --pannello: #1e293b; --bordo: #334155; --accento: #3b82f6; --testo: #e2e8f0; --secondario: #94a3b8; --errore: #f87171; --ok: #4ade80; --avviso: #fbbf24; } * { box-sizing: border-box; } + [hidden] { display: none !important; } /* #87: vale anche dove il CSS imposta display */ body { font-family: "Segoe UI", system-ui, sans-serif; margin: 0; background: var(--sfondo); color: var(--testo); } main { max-width: 1500px; margin: 0 auto; padding: 14px; } h1 { font-size: 1.35rem; margin: 0 0 12px; } @@ -57,10 +58,10 @@ PAGINA = r""" .cornice { position: relative; display: inline-block; line-height: 0; max-width: 100%; } .cornice img { max-width: 100%; max-height: calc(100vh - 330px); min-height: 200px; border: 0; margin: 0; } #mirino { position: absolute; inset: 0; pointer-events: none; - background: linear-gradient(#fbbf24, #fbbf24) center / 1px 100% no-repeat, - linear-gradient(#fbbf24, #fbbf24) center / 100% 1px no-repeat; opacity: .85; } + background: linear-gradient(#fbbf24, #fbbf24) center / 2px 100% no-repeat, + linear-gradient(#fbbf24, #fbbf24) center / 100% 2px no-repeat; opacity: .85; } #vuoto { padding: 30px 16px; color: var(--secondario); text-align: center; } - .indicatori { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; } + .indicatori { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; } .indicatore { background: var(--sfondo); border: 1px solid var(--bordo); border-radius: 6px; padding: 8px 10px; } .indicatore .nome { font-size: .78rem; color: var(--secondario); } .indicatore .valore { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }