From c7eb8d7f6105a5a15a1f45b5e2be3c2d1e2204bd Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 19 Mar 2021 22:10:55 +0100 Subject: WIP: Redesign --- assets/css/_utils.scss | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'assets/css/_utils.scss') diff --git a/assets/css/_utils.scss b/assets/css/_utils.scss index 519a3a7..bca50d8 100644 --- a/assets/css/_utils.scss +++ b/assets/css/_utils.scss @@ -1,21 +1,21 @@ -.u-hidden { +@include utility('hidden') { display: none; - @each $name, $width in $breakpoints { - &\@#{$name}-down { - @media (max-width: $width) { + @each $breakpoint in map-keys($breakpoints) { + @include media('<=#{$breakpoint}') { + @include suffix('#{$breakpoint}-lo') { display: none; } } - &\@#{$name}-up { - @media (min-width: $width + 1) { + @include media('>#{$breakpoint}') { + @include suffix('#{$breakpoint}-hi') { display: none; } } } } -.u-mt0 { +@include utility('mt0') { margin-top: 0; } -- cgit v1.2.3-54-g00ecf