]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
In breakpoint() function, always compare em values to em values #7587
authorGeoff Kimball <geoff@zurb.com>
Thu, 17 Dec 2015 23:49:05 +0000 (15:49 -0800)
committerGeoff Kimball <geoff@zurb.com>
Thu, 17 Dec 2015 23:49:05 +0000 (15:49 -0800)
scss/util/_breakpoint.scss

index c6fec75fb8a0ac7cefcf031b0128b58204d7b59f..51bb9046965138ba2a4d03bb66b694b1fa8c5f5d 100644 (file)
@@ -74,7 +74,7 @@ $breakpoint-classes: (small medium large) !default;
   }
 
   // Skip media query creation if the input is "0 up" or "0 down"
-  @if $bp > 0 or $dir == 'only' {
+  @if $bp > 0em or $dir == 'only' {
     // `only` ranges use the format `(min-width: n) and (max-width: n)`
     @if $dir == 'only' {
       @if $named == true {
@@ -105,7 +105,7 @@ $breakpoint-classes: (small medium large) !default;
     }
 
     // `up` ranges use the format `(min-width: n)`
-    @else if strip-unit($bp) > 0 {
+    @else if $bp > 0em {
       $str: $str + '(min-width: #{$bp})';
     }
   }