Skip to content

Commit

Permalink
Make sure we only get 1 column of cards on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Sep 29, 2024
1 parent 2c25b46 commit 37c5ad7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/_scss/components/article_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
}
}

.article_cards {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* This changes the number of columns based on the width of the
* screen:
*
Expand All @@ -72,12 +76,6 @@
}
}

.article_cards {
grid-template-columns: repeat(2, minmax(0, 1fr));
}



@media screen and (min-width: 1000px) {
.article_cards:not(.article_cards--1):not(.article_cards--2):not(.article_cards--4) {
grid-template-columns: repeat(3, minmax(0, 1fr));
Expand Down

2 comments on commit 37c5ad7

@alexwlchan
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://alexwlchan.net as production
🚀 Deployed on https://66f93da1cae6700097f98149--alexwlchan.netlify.app

@alexwlchan
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://alexwlchan.net as production
🚀 Deployed on https://66fa545e84cc0e01ac8ec63c--alexwlchan.netlify.app

Please sign in to comment.