From 37c5ad721b4833de04e13ce07cd15e340ef1dfab Mon Sep 17 00:00:00 2001 From: Alex Chan Date: Sun, 29 Sep 2024 12:41:53 +0100 Subject: [PATCH] Make sure we only get 1 column of cards on mobile --- src/_scss/components/article_cards.scss | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/_scss/components/article_cards.scss b/src/_scss/components/article_cards.scss index bcf394732..6423abda9 100644 --- a/src/_scss/components/article_cards.scss +++ b/src/_scss/components/article_cards.scss @@ -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: * @@ -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));