Each vote can require N fresh codes read off the projector (default 3, off for rooms without a projector); voters enrolled with a paper or rescue code are exempt. Rescue codes enroll a phone without camera. Projector keeps the QR up while such a vote is open. Server pings every socket every 25s so proxies keep them open. Composer no longer closes on enter. Schema migrates existing databases.
51 lines
3.3 KiB
CSS
51 lines
3.3 KiB
CSS
body.voter { padding-bottom: env(safe-area-inset-bottom); }
|
|
body.voter h1 { font-size: 1.6rem; margin-bottom: 18px; }
|
|
.center { text-align: center; }
|
|
|
|
#v-enroll .card { padding: 28px 20px 20px; text-align: center; }
|
|
.dots { display: grid; place-items: center; margin-bottom: 14px; }
|
|
|
|
.cam { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--ink); aspect-ratio: 1; margin: 6px 0 12px; }
|
|
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.scan-msg { text-align: center; min-height: 1.4em; font-size: .9rem; margin: 0 0 12px; }
|
|
.scan-msg:empty { display: none; }
|
|
.scan-msg.bad { color: var(--bad); }
|
|
.scan-msg.ok { color: var(--ok); }
|
|
|
|
#code, #rescue-code { font: 700 1.5rem var(--round); text-align: center; letter-spacing: .12em; text-transform: uppercase; }
|
|
button.link { display: block; margin: 12px auto 0; border: none; background: none; color: var(--ink-3); font-weight: 500; text-decoration: underline; padding: 6px; }
|
|
#presence { text-align: center; }
|
|
#presence .cam { margin-top: 0; }
|
|
#presence .actions button { flex: 1; }
|
|
|
|
.enrolled-chip { margin: -8px 0 8px; }
|
|
|
|
.vq { background: var(--surface); border-radius: var(--r-card); padding: 20px; margin: 14px 0; border: 1.5px solid transparent; }
|
|
.vq.open { border-color: var(--ink); }
|
|
.vq .q-text { font: 700 1.25rem/1.3 var(--round); margin: 0 0 14px; }
|
|
.choice {
|
|
display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: 600 1.05rem var(--round);
|
|
padding: 14px 16px; margin: 8px 0; min-height: 56px; border-radius: 16px; border: 1.5px solid var(--line);
|
|
justify-content: flex-start; user-select: none; -webkit-user-select: none;
|
|
}
|
|
.choice:active { transform: scale(.985); }
|
|
.choice .mark { flex: none; width: 24px; height: 24px; border: 2px solid var(--ink-3); border-radius: 50%; display: grid; place-items: center; transition: border-color .15s; }
|
|
.choice.multi .mark { border-radius: 7px; }
|
|
.choice[aria-checked="true"] { background: var(--mark); border-color: var(--mark); }
|
|
.choice[aria-checked="true"] .mark { border-color: var(--ink); background: var(--ink); }
|
|
.choice[aria-checked="true"] .mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mark); }
|
|
.choice.multi[aria-checked="true"] .mark::after { border-radius: 2px; }
|
|
.choice.blank { color: var(--ink-2); border-style: dashed; }
|
|
.choice.blank[aria-checked="true"] { background: var(--bg); border-color: var(--ink-3); color: var(--ink); }
|
|
.vq .go { margin-top: 10px; padding: 14px; font-size: 1.05rem; }
|
|
.voted { display: flex; gap: 10px; align-items: center; font: 600 1rem var(--round); margin: 0; color: var(--ink-2); }
|
|
.voted-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mark); color: var(--ink); }
|
|
.waiting { text-align: center; padding: 36px 0; color: var(--ink-3); }
|
|
|
|
dialog { border: none; border-radius: 24px; padding: 24px; width: min(92vw, 400px); background: var(--surface); color: var(--ink); }
|
|
dialog::backdrop { background: rgba(28, 32, 54, .45); backdrop-filter: blur(2px); }
|
|
dialog[open] { animation: rise .2s ease-out; }
|
|
#confirm-choices { list-style: none; padding: 0; margin: 0 0 8px; }
|
|
#confirm-choices li { font: 700 1.2rem var(--round); background: var(--mark); border-radius: 12px; padding: 10px 14px; margin: 6px 0; }
|
|
dialog .actions button { flex: 1; }
|