Camera app scan: the big qr rotates every 3 s and one scan with the phone's camera app enrolls or validates a vote (10 s), for browsers with the camera blocked; qr stays big beside the ring during a vote, step by step help on the phone
This commit is contained in:
@@ -36,7 +36,7 @@ body.entry-big { --dock-qr: clamp(180px, min(58vh, 34vw), 640px); }
|
||||
body.entry-big .entry { top: 50%; bottom: auto; right: max(4vw, calc((50vw - var(--dock-qr)) / 2 - 2vw)); translate: 0 -46%; padding: 2vh; gap: 1.2vh; }
|
||||
body.entry-big .entry div { font-size: clamp(.9rem, 1.4vw, 1.6rem); }
|
||||
body.entry-big .s-main:not(.split) .s-steps { visibility: hidden; }
|
||||
body.entry-q-on { --dock-qr: clamp(160px, min(46vh, 30vw), 520px); }
|
||||
body.entry-q-on { --dock-qr: clamp(160px, min(52vh, 32vw), 580px); }
|
||||
/* width 0 + min-width 100%: a long question wraps to the qr's width instead of widening the block */
|
||||
.entry-q { display: grid; gap: .6vh; padding-bottom: 1vh; margin-bottom: .4vh; border-bottom: 2px solid var(--bg); width: 0; min-width: 100%; }
|
||||
.entry-q b { font: 700 clamp(1rem, 1.7vw, 2rem) var(--round); color: var(--ink); line-height: 1.15; }
|
||||
|
||||
@@ -82,3 +82,13 @@ dialog .actions button { flex: 1; }
|
||||
border: 0; color: #fff; background: rgba(20, 22, 36, .55); font: 700 .95rem var(--round);
|
||||
-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
|
||||
}
|
||||
|
||||
/* the phone's own camera app reads the projector qr when the browser can't use the camera */
|
||||
.cam-alt { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; font-size: .9rem; color: var(--ink-2); text-align: left; }
|
||||
.cam-alt .icon { flex: none; }
|
||||
.cam-alt.solo { flex-direction: column; gap: 12px; margin: 4px 0 18px; color: var(--ink); }
|
||||
.cam-alt.solo .icon { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--mark); stroke-width: 1.8; }
|
||||
.cam-alt.solo b { font: 700 1.25rem/1.25 var(--round); text-align: center; }
|
||||
.cam-alt.solo ol { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 10px; font: 600 1rem/1.35 var(--round); }
|
||||
.cam-alt.solo li { counter-increment: st; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
|
||||
.cam-alt.solo li::before { content: counter(st); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 700; font-size: .9rem; }
|
||||
|
||||
Reference in New Issue
Block a user