Big entry qr beside the ring as an admin option (corner again once a question is up); admin lists questions newest first, open vote on top
This commit is contained in:
@@ -30,6 +30,12 @@ body.split-on { --dock-qr: clamp(130px, min(26vh, 19vw), 380px); }
|
||||
.entry div { display: grid; gap: .2vh; font-size: clamp(.7rem, .95vw, 1rem); color: var(--ink-2); overflow-wrap: break-word; }
|
||||
.entry b { color: var(--ink); font-weight: 700; }
|
||||
body.has-entry .s-main:not(.split) .s-steps, body.has-entry .s-main.split #focus { padding-bottom: var(--dock-h); }
|
||||
/* big mode: the entry qr takes the right column beside the ring, the steps give it the room.
|
||||
translate, not transform: the entrance animation owns transform */
|
||||
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; }
|
||||
/* the ring loop resizes the canvas bitmap every frame: its intrinsic size must not feed the layout,
|
||||
or safari widens the column, which grows the bitmap, which widens the column... */
|
||||
#qr { width: 100%; height: 100%; min-width: 0; min-height: 0; contain: size; image-rendering: pixelated; image-rendering: crisp-edges; object-fit: contain; }
|
||||
@@ -95,6 +101,10 @@ body.has-entry .s-main:not(.split) .s-steps, body.has-entry .s-main.split #focus
|
||||
.s-main:not(.split) .s-enroll { grid-template-rows: minmax(0, 1fr) auto; gap: 3vh; height: 100%; }
|
||||
.s-main:not(.split) .qr-wrap { height: 100%; width: auto; max-width: 100%; max-height: none; }
|
||||
body.has-entry .s-main:not(.split) .s-steps { padding-bottom: 0; padding-right: calc(var(--dock-qr) + 6vw); }
|
||||
/* no room beside the ring on an upright screen: the big qr stays a (bigger) corner one */
|
||||
body.entry-big { --dock-qr: clamp(140px, min(26vh, 40vw), 400px); }
|
||||
body.entry-big .entry { top: auto; bottom: 1.5vh; right: 1.2vw; translate: none; }
|
||||
body.entry-big .s-main:not(.split) .s-steps { visibility: visible; }
|
||||
/* upright + question: ring and title share one row above the question */
|
||||
.s-main.split .s-enroll { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; height: auto; align-items: center; justify-items: stretch; }
|
||||
.s-main.split .qr-wrap { height: auto; width: 100%; max-height: 38vh; justify-self: center; }
|
||||
|
||||
Reference in New Issue
Block a user