From 4af5ff74fd458c9fb8fe382f74d4d18ae19fd65f Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Mon, 2 Oct 2023 15:59:58 +0200 Subject: [PATCH] haguenau: set top section cell's margin on desktop only (#81872) --- static/haguenau/_custom.scss | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/static/haguenau/_custom.scss b/static/haguenau/_custom.scss index beb1a6f7..90cb8d74 100644 --- a/static/haguenau/_custom.scss +++ b/static/haguenau/_custom.scss @@ -307,14 +307,16 @@ main { flex: 0 0 100%; margin-top: 1rem; margin-bottom: 1rem; - div.cell { - margin-left: 0; - margin-right: 0; + @media (min-width: $mobile-limit + 1) { + div.cell { + margin-left: 0; + margin-right: 0; - &[class^='grid-'], - &[class*=' grid-'] { - padding-right: 0; - margin-right: $grid-gutter; + &[class^='grid-'], + &[class*=' grid-'] { + padding-right: 0; + margin-right: $grid-gutter; + } } } }