From 196901ae56dbdcef0af916f75a5e541f31fc5aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Midb=C3=B8e?= Date: Fri, 20 Mar 2020 13:57:25 +0100 Subject: [PATCH] Better nesting of styling for button-container. --- src/styles/global.scss | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/styles/global.scss b/src/styles/global.scss index 638f3b8..57e3251 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -74,13 +74,15 @@ body { margin-right: 2rem; } - @include mobile &:not(.row) { - flex-direction: column; - align-items: center; + @include mobile { + &:not(.row) { + flex-direction: column; + align-items: center; - > *:not(:last-child) { - margin-right: unset; - margin-bottom: .75rem; + > *:not(:last-child) { + margin-right: unset; + margin-bottom: .75rem; + } } } }