Duplicated screen mode: /present shows the projector view with the admin in a drawer (Gérer); both modes offered on the links page and the share tab

This commit is contained in:
2026-11-17 20:41:02 +01:00
parent cc1c46da6b
commit 450d923e78
9 changed files with 83 additions and 3 deletions
+2
View File
@@ -184,3 +184,5 @@ details.advanced { margin-top: 14px; }
details.advanced summary { font-size: .82rem; color: var(--ink-3); cursor: pointer; width: fit-content; padding: 4px 0; }
details.advanced summary:hover { color: var(--ink-2); }
details.advanced[open] summary { color: var(--ink-2); }
.mode-title { font-size: 1.05rem; margin: 22px 0 2px; }
.mode-title + .hint { margin: 0 0 8px; }
+13
View File
@@ -142,3 +142,16 @@ body.entry-q-on { --dock-qr: clamp(160px, min(46vh, 30vw), 520px); }
.s-main > section, .entry, #focus.enter *, #voters.bump { animation: none !important; }
.turnout .progress > div { transition: none; }
}
/* duplicated screen: the admin slides in over the projection, the room sees it while it's open */
.ctl {
position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(480px, 94vw); display: grid; grid-template-rows: auto 1fr;
background: var(--bg); box-shadow: -12px 0 40px rgba(28, 32, 54, .18); translate: 105% 0; transition: translate .35s cubic-bezier(.2, .7, .2, 1);
}
.ctl.open { translate: 0 0; }
.ctl-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font: 700 1rem var(--round); }
.ctl iframe { width: 100%; height: 100%; border: 0; background: var(--bg); }
/* the manage button stays reachable in full screen, faint until hovered */
:fullscreen .s-tools .ctl-btn { display: inline-flex; opacity: .3; }
:fullscreen .s-tools .ctl-btn:hover, :fullscreen .s-tools .ctl-btn:focus-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ctl { transition: none; } }