Make the board shrink based on the height
This commit is contained in:
parent
a097fa2b88
commit
194acdaea3
1 changed files with 5 additions and 5 deletions
|
@ -3,15 +3,15 @@ div {
|
|||
}
|
||||
|
||||
.board {
|
||||
width: 84vw;
|
||||
width: min(84vw, 84vh);
|
||||
margin: 10px auto;
|
||||
outline: 1px solid black;
|
||||
}
|
||||
|
||||
.board .field {
|
||||
border: 1px solid black;
|
||||
width: 12vw;
|
||||
height: 12vw;
|
||||
width: min(12vw, 12vh);
|
||||
height: min(12vw, 12vh);
|
||||
float: left;
|
||||
}
|
||||
|
||||
|
@ -20,8 +20,8 @@ div {
|
|||
}
|
||||
|
||||
.board .field .piece {
|
||||
width: 10vw;
|
||||
height: 10vw;
|
||||
width: 95%;
|
||||
height: 95%;
|
||||
border-radius: 50%;
|
||||
margin: 1vw;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue