fix: use CSS grid for game controls to keep pill centered when next is hidden
This commit is contained in:
16
src/main.css
16
src/main.css
@@ -893,8 +893,8 @@ kbd {
|
|||||||
|
|
||||||
/* ================= GAME CONTROLS ================= */
|
/* ================= GAME CONTROLS ================= */
|
||||||
.game-controls {
|
.game-controls {
|
||||||
display: flex;
|
display: grid;
|
||||||
justify-content: space-between;
|
grid-template-columns: 1fr auto 1fr;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: var(--spacing-md);
|
padding: var(--spacing-md);
|
||||||
background: var(--panel-bg);
|
background: var(--panel-bg);
|
||||||
@@ -902,8 +902,16 @@ kbd {
|
|||||||
box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-controls.centered {
|
.game-controls #prev-btn {
|
||||||
justify-content: center;
|
justify-self: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game-controls .module-pill {
|
||||||
|
justify-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game-controls #next-btn {
|
||||||
|
justify-self: end;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================= SIDEBAR ================= */
|
/* ================= SIDEBAR ================= */
|
||||||
|
|||||||
Reference in New Issue
Block a user