mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Improve layout
This commit is contained in:
parent
fff2c342ff
commit
c0dc3f44eb
@ -3,7 +3,7 @@
|
|||||||
grid-gap: $base-spacing;
|
grid-gap: $base-spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-aspect-ratio: 10/11) {
|
@media (min-aspect-ratio: 9/11) {
|
||||||
.game-grid {
|
.game-grid {
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"board game-info"
|
"board game-info"
|
||||||
@ -11,9 +11,13 @@
|
|||||||
grid-template-columns: min-content 1fr;
|
grid-template-columns: min-content 1fr;
|
||||||
grid-template-rows: min-content 1fr;
|
grid-template-rows: min-content 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
max-width: 120vmin;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-aspect-ratio: 10/11) {
|
@media (max-aspect-ratio: 9/11) {
|
||||||
.game-grid {
|
.game-grid {
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"game-info"
|
"game-info"
|
||||||
@ -22,3 +26,15 @@
|
|||||||
grid-template-rows: min-content min-content min-content;
|
grid-template-rows: min-content min-content min-content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-height: 960px), (max-width: 768px) {
|
||||||
|
html {
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-height: 480px), (max-width: 400px) {
|
||||||
|
html {
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -30,12 +30,17 @@ $colours: "black" "white";
|
|||||||
$pieces: king queen bishop knight rook pawn;
|
$pieces: king queen bishop knight rook pawn;
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--board-size: 90vmin;
|
--board-size: 64vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-aspect-ratio: 10/11) {
|
@media (min-aspect-ratio: 14/11) {
|
||||||
:root {
|
:root {
|
||||||
--board-size: 80vmin;
|
--board-size: 80vmin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-aspect-ratio: 9/11) {
|
||||||
|
:root {
|
||||||
|
--board-size: 90vmin;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user