]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix -zf-get-bp-value to still support number case but not break in case of nonsense...
authorKevin Ball <kmball11@gmail.com>
Wed, 31 May 2017 21:26:41 +0000 (14:26 -0700)
committerKevin Ball <kmball11@gmail.com>
Wed, 31 May 2017 21:26:50 +0000 (14:26 -0700)
scss/util/_breakpoint.scss

index 375df40db2e2205712dfa03d0abdd45db248d461..63e7d70c48a9c39ac7cdf1757f4789eded95064b 100644 (file)
@@ -284,7 +284,11 @@ $breakpoint-classes: (small medium large) !default;
 
   // Check if the breakpoint name exists globally
   @if not map-has-key($breakpoints, $value) {
-    $value: -zf-closest-named-breakpoint($value);
+    @if type-of($value) == 'number' {
+      $value: -zf-closest-named-breakpoint($value);
+    } @else {
+      @return null;
+    }
   }
   // Check if the breakpoint name exists in the local config map
   @else if map-has-key($map, $value) {