From b50a45aa09e504ada075f181c1747a8d968216e6 Mon Sep 17 00:00:00 2001 From: JasonMiller Date: Thu, 22 Feb 2018 17:20:44 -0500 Subject: [PATCH] decrement bp-max by 0.0001 rather than 1/16 Browser windows can be fractions of pixels wide, under certain circumstances (e.g. zoom). In these cases, it is not enough to set the max-width to the em equivalent of one pixel less. --- scss/util/_breakpoint.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scss/util/_breakpoint.scss b/scss/util/_breakpoint.scss index 05cc9dd6b..179d8557b 100644 --- a/scss/util/_breakpoint.scss +++ b/scss/util/_breakpoint.scss @@ -77,7 +77,7 @@ $breakpoint-classes: (small medium large) !default; // Convert any pixel, rem, or unitless value to em $bp: -zf-bp-to-em($bp); @if $bp-max { - $bp-max: -zf-bp-to-em($bp-max) - (1/16); + $bp-max: -zf-bp-to-em($bp-max) - 0.0001; } // Conditions to skip media query creation -- 2.47.2