]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
decrement bp-max by 0.0001 rather than 1/16
authorJasonMiller <jason.miller@revzilla.com>
Thu, 22 Feb 2018 22:20:44 +0000 (17:20 -0500)
committerGitHub <noreply@github.com>
Thu, 22 Feb 2018 22:20:44 +0000 (17:20 -0500)
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

index 05cc9dd6b690841d8f4d7e3ba8e359e54dc856a8..179d8557b5d38d991c27448e875640fb071183bd 100644 (file)
@@ -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