Reopen a closed vote until its results are shown; check mark in the center mark and on the phone; vote title during enrollment; projector opens in a window
This commit is contained in:
@@ -50,3 +50,22 @@ 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; }
|
||||
|
||||
/* confirmation after enrolling or voting: the projector's mark, its check drawing in */
|
||||
.celebrate {
|
||||
position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px;
|
||||
background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink);
|
||||
animation: cel-in .3s ease both;
|
||||
}
|
||||
.celebrate svg { width: 132px; height: 132px; animation: cel-pop .5s cubic-bezier(.2, .9, .3, 1.25) both; }
|
||||
.celebrate .tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cel-tick .45s .25s cubic-bezier(.3, .7, .2, 1) forwards; }
|
||||
.celebrate p { margin: 0; font: 700 1.3rem var(--round); animation: cel-in .4s .35s ease both; }
|
||||
.celebrate.out { animation: cel-out .4s ease forwards; }
|
||||
@keyframes cel-in { from { opacity: 0; } }
|
||||
@keyframes cel-out { to { opacity: 0; } }
|
||||
@keyframes cel-pop { from { transform: scale(.6) rotate(-40deg); opacity: 0; } }
|
||||
@keyframes cel-tick { to { stroke-dashoffset: 0; } }
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.celebrate, .celebrate svg, .celebrate p { animation: none; }
|
||||
.celebrate .tick { animation: none; stroke-dashoffset: 0; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user