Compare commits

..

2 commits

Author SHA1 Message Date
e5fddf7a7d Align the chips properly
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-15 18:39:32 +01:00
194acdaea3 Make the board shrink based on the height 2022-12-15 18:39:11 +01:00

View file

@ -3,15 +3,18 @@ div {
} }
.board { .board {
width: 84vw; width: min(84vw, 84vh);
margin: 10px auto; margin: 10px auto;
outline: 1px solid black; outline: 1px solid black;
} }
.board .field { .board .field {
border: 1px solid black; border: 1px solid black;
width: 12vw; width: min(12vw, 12vh);
height: 12vw; height: min(12vw, 12vh);
display: flex;
align-items: center;
justify-content: center;
float: left; float: left;
} }
@ -20,10 +23,9 @@ div {
} }
.board .field .piece { .board .field .piece {
width: 10vw; width: 95%;
height: 10vw; height: 95%;
border-radius: 50%; border-radius: 50%;
margin: 1vw;
} }
.board .field .blue { .board .field .blue {