From f90dd5584411b99a0c5d5720149e2c65619f2b5a Mon Sep 17 00:00:00 2001 From: Arne Brasseur Date: Wed, 2 Oct 2024 13:34:27 -0400 Subject: [PATCH] Revert "Remove the grid layout" This reverts commit 984b68c23741e254a5ec5c6843f862f6a3262852. --- src/co/gaiwan/compass/html/sessions.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/co/gaiwan/compass/html/sessions.clj b/src/co/gaiwan/compass/html/sessions.clj index 3a48a0c..b102bb2 100644 --- a/src/co/gaiwan/compass/html/sessions.clj +++ b/src/co/gaiwan/compass/html/sessions.clj @@ -338,7 +338,10 @@ (o/defstyled session-list :section#sessions [:.sessions :grid :gap-3 - {:grid-template-columns "repeat(1, 1fr)"}] + {:grid-template-columns "repeat(1, 1fr)"} + [:at-media {:min-width "40rem"} {:grid-template-columns "repeat(1, 1fr)"}] + [:at-media {:min-width "60rem"} {:grid-template-columns "repeat(2, 1fr)"}] + #_[:at-media {:min-width "80rem"} {:grid-template-columns "repeat(3, 1fr)"}]] [:>h2 :mb-4 :mt-7 {:font-size t/--font-size-3} ["&:first-child" :mt-0]