From 5d7ba82f6a69415e6961edd9961bf5c9bdece77e Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet@mmibordeaux.com>
Date: Wed, 3 Aug 2022 10:23:57 +0200
Subject: [PATCH] Grid posts

---
 assets/sass/_theme/sections/posts.sass | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/assets/sass/_theme/sections/posts.sass b/assets/sass/_theme/sections/posts.sass
index 9aa446ce..36aa5a7c 100644
--- a/assets/sass/_theme/sections/posts.sass
+++ b/assets/sass/_theme/sections/posts.sass
@@ -27,17 +27,22 @@
                 margin-bottom: $spacing3
                 padding-bottom: $spacing3
                 .post
-                    @include grid(4, md)
+                    @include grid(12, md)
                     flex-direction: row
-                    div:first-child
-                        width: col(24)
+                    div:not(.media)
+                        grid-column: 4/13
+                        p,
+                        a
+                            max-width: col(8)
                     time 
                         font-size: $h5-size
                         position: absolute
                         right: 0
                         top: 0
                     .media
+                        grid-column: 1/4
                         margin: 0
+                        
     @else 
         .posts
             @include grid(1)
-- 
GitLab