From: JasonMiller Date: Thu, 22 Feb 2018 22:20:44 +0000 (-0500) Subject: decrement bp-max by 0.0001 rather than 1/16 X-Git-Tag: v6.6.0~3^2~255^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b50a45aa0;p=thirdparty%2Ffoundation%2Ffoundation-sites.git 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. --- 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