Skip to content

Commit 85c2de9

Browse files
Increase size of playing board and add gridlines
1 parent 041cf11 commit 85c2de9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

style.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ body {
1616
}
1717

1818
.wrapper {
19-
width: 65vmin;
20-
height: 70vmin;
19+
width: 80vmin;
2120
display: flex;
2221
flex-direction: column;
2322
border-radius: 5px;
@@ -35,11 +34,15 @@ body {
3534

3635
.play-board {
3736
width: 100%;
38-
height: 100%;
37+
aspect-ratio: 1;
3938
display: grid;
4039
grid-template-rows: repeat(30, 1fr);
4140
grid-template-columns: repeat(30, 1fr);
4241
background-color: #212837;
42+
background-image:
43+
repeating-linear-gradient(0deg, #2a3142 0px, #2a3142 1px, transparent 1px, transparent),
44+
repeating-linear-gradient(90deg, #2a3142 0px, #2a3142 1px, transparent 1px, transparent);
45+
background-size: calc(100% / 30) calc(100% / 30);
4346
}
4447

4548
.play-board .food {

0 commit comments

Comments
 (0)