Skip to content

Commit

Permalink
better board sizes V2
Browse files Browse the repository at this point in the history
  • Loading branch information
x-tr4ce committed Dec 27, 2024
1 parent a1258da commit ed9f8d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ div {
align-items: center;
display: flex;
flex-direction: column;
gap: 1vw;
gap: -1vw;
}

.game-management {
Expand Down
12 changes: 6 additions & 6 deletions public/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@
--number-rows: 7;

/* Sizes */
--board-size: 45vw; /* Default for desktop */
--board-size: 47vw; /* Default for desktop */

@media (max-width: 1024px) {
@media (max-width: 1280px) {
/* For tablets */
--board-size: 70vw;
--board-size: 60vw;

}

@media (max-width: 768px) {
@media (max-width: 1024px) {
/* For small tablets or large phones */
--board-size: 80vw;
--board-size: 85vw;

}

@media (max-width: 480px) {
@media (max-width: 768px) {
/* For mobile */
--board-size: 90vw;

Expand Down

0 comments on commit ed9f8d3

Please sign in to comment.