Skip to content

Commit

Permalink
fix responsive design
Browse files Browse the repository at this point in the history
  • Loading branch information
Bao Zhiyuan committed Aug 30, 2024
1 parent fafc911 commit 37b1d9c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const index = /*html*/ `
margin: 0 6rem;
}
@media (width < 996px) {
@media (max-width: 996px) {
main {
margin: 0 1rem;
}
Expand Down Expand Up @@ -94,6 +94,12 @@ const index = /*html*/ `
gap: 1rem;
}
@media (max-width: 996px) {
.buttons {
flex-direction: column;
}
}
.game-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
Expand Down Expand Up @@ -215,7 +221,7 @@ for (const game of games) {
padding: 2rem 0;
}
@media (width < 996px) {
@media (max-width: 996px) {
main {
margin: 0 1rem;
}
Expand Down

0 comments on commit 37b1d9c

Please sign in to comment.