From 768ccd4f66e8ec081b93a625a7b76e81ad64bf2c Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Mon, 13 Nov 2023 09:22:48 +0100
Subject: [PATCH] refacto

---
 assets/sass/_theme/blocks/persons.sass | 30 +++++++++++---------------
 1 file changed, 13 insertions(+), 17 deletions(-)

diff --git a/assets/sass/_theme/blocks/persons.sass b/assets/sass/_theme/blocks/persons.sass
index f8954528..f568d9a3 100644
--- a/assets/sass/_theme/blocks/persons.sass
+++ b/assets/sass/_theme/blocks/persons.sass
@@ -1,34 +1,30 @@
+@mixin person-avatar-end
+    justify-content: space-between
+    gap: $spacing1
+    .avatar
+        margin-right: 0
+        order: 1
+        width: col(3)
+    .description
+        margin-top: 0
+
 .block-persons
     @include in-page-with-sidebar
         &:not(.block-with-long-text)
             .persons
                 @include grid(2, xl)
                 .person
-                    justify-content: space-between
-                    gap: $spacing1
-                .avatar
-                    margin-right: 0
-                    order: 1
-                    width: col(3)
-                .description
-                    margin-top: 0
+                    @include person-avatar-end
         .persons
             @include grid(1, sm)
             row-gap: $spacing0
             @include media-breakpoint-between(desktop, xl)
                 .person
-                    justify-content: space-between
-                    gap: $spacing1
-                .avatar
-                    margin-right: 0
-                    order: 1
-                    width: col(3)
-                .description
-                    margin-top: 0
+                    @include person-avatar-end
         article
             flex-direction: row
+            gap: col(1, 8)
             .avatar
-                margin-right: $spacing1
                 @include media-breakpoint-up(md)
                     width: calc(#{col(1, 4)} + #{$grid-gutter})
             .description
-- 
GitLab