]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: fix wrong function call in `breakpoint` function
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 23 Dec 2017 13:53:51 +0000 (14:53 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 23 Dec 2017 13:53:51 +0000 (14:53 +0100)
scss/util/_breakpoint.scss

index dff68f50a70b4044fa9b445fae6431f96494d4ff..ff0cf93b892bf20f672aa5246edd5e01e310363a 100644 (file)
@@ -101,13 +101,13 @@ $breakpoint-classes: (small medium large) !default;
 
   // Only 'only' and 'up' have a min limit.
   @if $dir == 'only' or $dir == 'up' {
-    $bp-min: if($hidpi, unitless($bp), -zf-bp-to-em($bp));
+    $bp-min: if($hidpi, strip-unit($bp), -zf-bp-to-em($bp));
   }
   // Only 'only' and 'down' have a max limit.
   @if $dir == 'only' or $dir == 'down' {
     // If the breakpoint is a value, use it as max limit.
     @if not $name {
-      $bp-max: if($hidpi, unitless($bp), -zf-bp-to-em($bp));
+      $bp-max: if($hidpi, strip-unit($bp), -zf-bp-to-em($bp));
     }
     // If the breakpoint is named, the max limit is the following breakpoint - 1px.
     @else if $bp-next {