]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Unit unitless(..) when needed 7133/head
authorHugo Giraudel <hugo.giraudel@gmail.com>
Sun, 22 Nov 2015 22:40:13 +0000 (23:40 +0100)
committerHugo Giraudel <hugo.giraudel@gmail.com>
Sun, 22 Nov 2015 22:40:13 +0000 (23:40 +0100)
scss/util/_unit.scss

index 1c889396ed6307326ed1d1e61a70301f773ebccd..b26dd062f117173c32cb95b926e17872e8ecf804 100644 (file)
@@ -46,7 +46,7 @@ $rem-base: 16px !default;
 // Converts a unitless, pixel, or rem value to em, for use in breakpoints.
 @function -zf-bp-to-em($value) {
   // Pixel and unitless values are converted to rems
-  @if unit($value) == 'px' or unit($value) == '' {
+  @if unit($value) == 'px' or unitless($value) {
     $value: rem-calc($value);
   }