diff options
Diffstat (limited to 'assets/css/_utils.scss')
-rw-r--r-- | assets/css/_utils.scss | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/assets/css/_utils.scss b/assets/css/_utils.scss index bf7e213..036a87e 100644 --- a/assets/css/_utils.scss +++ b/assets/css/_utils.scss | |||
@@ -1,15 +1,17 @@ | |||
1 | .u-hidden { | 1 | .u-hidden { |
2 | display: none; | 2 | display: none; |
3 | 3 | ||
4 | &\@sm-down { | 4 | @each $name, $width in $breakpoints { |
5 | @media (max-width: $breakpoint-sm) { | 5 | &\@#{$name}-down { |
6 | display: none; | 6 | @media (max-width: $width) { |
7 | } | 7 | display: none; |
8 | } | ||
8 | } | 9 | } |
9 | 10 | ||
10 | &\@sm-up { | 11 | &\@#{$name}-up { |
11 | @media (min-width: $breakpoint-sm + 1) { | 12 | @media (min-width: $width + 1) { |
12 | display: none; | 13 | display: none; |
13 | } | 14 | } |
14 | } | 15 | } |
16 | } | ||
15 | } | 17 | } |