Refine responsive game layout

agent/zcode/gameplay-issue-1
darcy 4 weeks ago
parent c1bb6ee77c
commit ae2f342434

@ -192,9 +192,9 @@ h1 {
.stage-wrap { .stage-wrap {
position: relative; position: relative;
width: 100%; width: min(100%, max(420px, calc((100vh - 320px) * 4 / 3)));
aspect-ratio: 4 / 3; aspect-ratio: 4 / 3;
max-height: calc(100vh - 185px); margin: 0 auto;
min-height: 280px; min-height: 280px;
overflow: hidden; overflow: hidden;
border: 2px solid var(--line-bright); border: 2px solid var(--line-bright);
@ -319,6 +319,7 @@ kbd {
} }
.stage-wrap { .stage-wrap {
width: 100%;
max-height: none; max-height: none;
} }
} }
@ -345,11 +346,18 @@ kbd {
min-height: 52px; min-height: 52px;
} }
.controls {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.controls div { .controls div {
width: 100%; width: auto;
min-width: 0;
} }
.controls .action-group { .controls .action-group {
grid-column: 1 / -1;
grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: repeat(3, minmax(0, 1fr));
} }

Loading…
Cancel
Save