From: Geoff Kimball Date: Wed, 23 Dec 2015 22:54:22 +0000 (-0800) Subject: Prevent Libsass from outputting (min-width: 0em) media queries X-Git-Tag: v6.1.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1d4ca5ed424f488814ef8e18bc6c6c67066e9c2;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Prevent Libsass from outputting (min-width: 0em) media queries --- diff --git a/scss/util/_breakpoint.scss b/scss/util/_breakpoint.scss index 4235ae42f..e012cab32 100644 --- a/scss/util/_breakpoint.scss +++ b/scss/util/_breakpoint.scss @@ -74,7 +74,7 @@ $breakpoint-classes: (small medium large) !default; } // Skip media query creation if the input is "0 up" - @if $bp > 0 or $dir == 'only' or $dir == 'down' { + @if $bp > 0em or $dir == 'only' or $dir == 'down' { // `only` ranges use the format `(min-width: n) and (max-width: n)` @if $dir == 'only' { @if $named == true { @@ -102,13 +102,13 @@ $breakpoint-classes: (small medium large) !default; } // Skip media query creation if input value is exactly "0 down" but don't "small down" - @if $named or $bp > 0 { + @if $named or $bp > 0em { $str: $str + '(max-width: #{$max})'; } } // `up` ranges use the format `(min-width: n)` - @else if $bp > 0 { + @else if $bp > 0em { $str: $str + '(min-width: #{$bp})'; } }