From 857a8204028536fe1a6b72f42b0ebdc95b6a0386 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Thu, 17 Dec 2015 15:49:05 -0800 Subject: [PATCH] In breakpoint() function, always compare em values to em values #7587 --- scss/util/_breakpoint.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scss/util/_breakpoint.scss b/scss/util/_breakpoint.scss index c6fec75fb..51bb90469 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" 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})'; } } -- 2.47.2