]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Solve down and only keyword issue by getting the first value
authorBrett Mason <brettsmason@gmail.com>
Sun, 28 May 2017 19:38:50 +0000 (20:38 +0100)
committerBrett Mason <brettsmason@gmail.com>
Sun, 28 May 2017 19:38:50 +0000 (20:38 +0100)
scss/util/_breakpoint.scss

index efe0ff084649876cbdd8024267b1bfc9e2140b74..58b6e384680c08d13a49bd205793b2fe54fbac34 100644 (file)
@@ -146,7 +146,7 @@ $breakpoint-classes: (small medium large) !default;
 
   // Make breakpoint size available as a variable
   $old-zf-size: $-zf-zero-breakpoint;
-  $-zf-size: $value !global;
+  $-zf-size: nth($value, 1) !global; // get the first value to account for `only` and `down` keywords
 
   // If $str is still an empty string, no media query is needed
   @if $str == '' {