From 91d455e3aecceb88f0afd3a3df713f8ca1378c22 Mon Sep 17 00:00:00 2001 From: Felix Scholze Date: Sun, 26 Jun 2022 15:09:22 +0200 Subject: [PATCH] fix: rule order --- mixins/_element.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mixins/_element.scss b/mixins/_element.scss index 3bbdf4d..2eb2a89 100644 --- a/mixins/_element.scss +++ b/mixins/_element.scss @@ -15,9 +15,6 @@ $line-color: #000, $line-width: 2px ) { - display: flex; - align-items: center; - @if meta.type-of($line-color) != color { @error '❌ ===> #{$line-color} is not a color.'; } @@ -27,6 +24,10 @@ @if meta.type-of($line-width) != number { @error '❌ ===> #{$line-width} is not a number.'; } + + display: flex; + align-items: center; + @content; &::before,