Hand-added votes per question (paper, show of hands): counted in the turnout and shown hatched orange at the end of each result bar, kept apart from phone ballots

This commit is contained in:
2026-11-17 14:42:54 +01:00
parent ad6c3c6f57
commit c924107f1d
11 changed files with 164 additions and 32 deletions
+9 -6
View File
@@ -54,15 +54,18 @@
.share-row > div:first-child { display: grid; }
.share-row .muted { font-size: .85rem; }
#composer { border: none; border-radius: 24px; padding: 24px; width: min(94vw, 560px); background: var(--surface); color: var(--ink); }
#composer::backdrop { background: rgba(28, 32, 54, .45); backdrop-filter: blur(2px); }
#composer[open] { animation: rise .2s ease-out; }
#composer h2 { font-size: 1.3rem; }
#composer, #extra-dlg { border: none; border-radius: 24px; padding: 24px; width: min(94vw, 560px); background: var(--surface); color: var(--ink); }
#composer::backdrop, #extra-dlg::backdrop { background: rgba(28, 32, 54, .45); backdrop-filter: blur(2px); }
#composer[open], #extra-dlg[open] { animation: rise .2s ease-out; }
#composer h2, #extra-dlg h2 { font-size: 1.3rem; }
.spacer { flex: 1; }
@media (max-width: 560px) {
.summary-row > * { flex: 1 1 auto; }
#composer .actions button { flex: 1 1 100%; }
#composer .spacer { display: none; }
#composer .actions button, #extra-dlg .actions button { flex: 1 1 100%; }
#composer .spacer, #extra-dlg .spacer { display: none; }
}
#q-opts { min-height: 132px; }
.extra-row { margin: 8px 0; display: grid; grid-template-columns: 1fr 110px; gap: 12px; align-items: center; font-weight: 600; }
.extra-row input { text-align: right; }
+8
View File
@@ -116,6 +116,11 @@ button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.bar-label { overflow-wrap: anywhere; }
.bar-track { height: 12px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ink-3); border-radius: 99px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
/* one bar = phone ballots then hand-added votes, hatched orange */
.bar-stack { height: 100%; display: flex; border-radius: 99px; overflow: hidden; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar-stack > div { flex: 1 1 0; border-radius: 0; height: 100%; }
.bar-extra, .progress > .p-extra { background: repeating-linear-gradient(-45deg, #f08a24 0 5px, #f9c58f 5px 10px); }
.extra-note { color: #b85e0b; font-weight: 600; }
.bar-row.lead .bar-fill { background: var(--mark); }
.bar-row.lead .bar-label { font-weight: 700; }
.bar-num { font: 700 1rem var(--round); min-width: 80px; text-align: right; }
@@ -124,6 +129,9 @@ button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.progress { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress > div { height: 100%; background: var(--ink); border-radius: 99px; transition: width .3s; }
.progress { display: flex; }
.progress > .p-extra { border-radius: 0 99px 99px 0; }
.progress > div:not(:last-child) { border-radius: 99px 0 0 99px; }
.ring { display: block; overflow: visible; }
.ring .seg, .ring .fill { fill: none; stroke-linecap: round; }
+1 -1
View File
@@ -134,7 +134,7 @@ body.entry-q-on { --dock-qr: clamp(160px, min(46vh, 30vw), 520px); }
#focus.enter :is(.opts li, .bar-row):nth-child(4) { animation-delay: .26s; }
#focus.enter :is(.opts li, .bar-row):nth-child(n+5) { animation-delay: .32s; }
#focus.enter .turnout, #focus.enter .results-foot, #focus.enter .status { animation: s-in .45s .3s cubic-bezier(.2, .7, .2, 1) both; }
#focus.enter .bar-fill { transform-origin: left; animation: s-grow .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
#focus.enter .bar-stack { transform-origin: left; animation: s-grow .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
.turnout .progress > div { transition: width .5s cubic-bezier(.2, .7, .2, 1); }
#voters { display: inline-block; }
#voters.bump { animation: s-bump .35s ease; }