From 0b55ebce7f600d4e243aa22424c42fb2e8850a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Wed, 30 Sep 2026 15:39:50 -0300 Subject: [PATCH] style: the Site at 80% on computers, and seconds instead of "quase pronto" The text sizes were chosen looking at the Site with the browser at 80%; at 100% everything felt too big. On screens 1100 px and wider the Site is now drawn at 80% (CSS zoom); phones and tablets keep their sizes. The time left while reading a large file shows the seconds under 10 s ("faltam 7 s") instead of "quase pronto". Co-Authored-By: Claude Opus 5.5 --- web/site-config.js | 2 +- web/site-v2.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/web/site-config.js b/web/site-config.js index 155cb80..4220a1d 100644 --- a/web/site-config.js +++ b/web/site-config.js @@ -136,7 +136,7 @@ const faixaEnvio=bytes=>bytes/ENVIO_RAPIDO<60 ? 'até '+duracao(bytes/ENVIO_LENT function faltaLeitura(l){ if(!l || !(l.p>0.02)) return 'calculando o tempo…'; const s=(Date.now()-l.inicio)/1000*(1-l.p)/l.p; - return s<10 ? 'quase pronto' : s<60 ? 'faltam cerca de '+Math.ceil(s/5)*5+' s' : 'faltam cerca de '+duracao(s); + return s<10 ? 'faltam '+Math.max(1,Math.ceil(s))+' s' : s<60 ? 'faltam cerca de '+Math.ceil(s/5)*5+' s' : 'faltam cerca de '+duracao(s); } const larguraFilme=()=>MODOS[modo].larg; // cobrança proporcional: arredonda para cima em 10 cm · 2,75 m vira 2,80 m diff --git a/web/site-v2.css b/web/site-v2.css index 7502e71..16a5059 100644 --- a/web/site-v2.css +++ b/web/site-v2.css @@ -487,3 +487,8 @@ html:is([data-rota="pagamento"],[data-rota="pix"]) .pagGrid{display:grid;grid-te .art2 .atalhos .tm.on{border-color:var(--verde);background:var(--verde-fundo);color:var(--verde)} .art2 .dica{margin-top:4px} .rep .l1 .novaT{margin-right:auto} + +/* On a computer the Site is drawn at 80%: the sizes above were chosen looking + at it that way, and at 100% everything felt too big. Phones and tablets + keep their own sizes. */ +@media (min-width:1100px){html{zoom:.8}}