Screen: bigger entry qr, upright layout without overlap, center logo matches the mark

This commit is contained in:
2026-08-16 22:07:56 +01:00
parent c755ed3c5a
commit 1992397659
2 changed files with 16 additions and 8 deletions
+10 -2
View File
@@ -17,8 +17,8 @@ body.screen {
}
.qr-wrap.ring { background: transparent; padding: 0; }
.entry { display: flex; align-items: center; gap: 1.2vw; margin-top: 3vh; background: var(--surface); border-radius: 18px; padding: 1.2vh 1.2vw; width: fit-content; }
.entry canvas { width: clamp(70px, 7vw, 130px); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.entry div { display: grid; gap: .3vh; font-size: clamp(.8rem, 1.1vw, 1.2rem); color: var(--ink-2); }
.entry canvas { width: clamp(120px, min(15vw, 22vh), 280px); height: auto; aspect-ratio: 1; image-rendering: pixelated; flex: none; }
.entry div { display: grid; gap: .3vh; font-size: clamp(.8rem, 1.1vw, 1.2rem); color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.entry b { color: var(--ink); font-weight: 700; }
#qr { width: 100%; height: 100%; min-height: 0; image-rendering: pixelated; image-rendering: crisp-edges; object-fit: contain; }
.tick { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; margin: 0 1vh; }
@@ -68,5 +68,13 @@ body.screen {
@media (max-aspect-ratio: 1/1) {
.s-enroll, .s-main.split { grid-template-columns: 1fr; }
.qr-wrap { max-height: 50vh; justify-self: center; }
/* upright screen: the ring takes what the text leaves, the entry qr sits next to the steps */
.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; }
.s-steps { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 4vw; align-items: center; }
.s-steps > * { grid-column: 1; }
.s-steps .entry { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; gap: .8vh; margin: 0; padding: 1.2vh; text-align: center; }
.s-steps .entry div { font-size: clamp(.7rem, 2.2vw, 1.1rem); overflow-wrap: normal; white-space: nowrap; }
.s-steps .entry canvas { width: clamp(110px, min(30vw, 17vh), 300px); }
}
.qr-wrap.ring .tick { display: none; }