]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Ignore percentage values for compare in maps
authorRoman O <ceo.roman@gmail.com>
Fri, 8 Jun 2018 13:37:33 +0000 (16:37 +0300)
committerMark Otto <otto@github.com>
Sun, 2 Sep 2018 23:43:54 +0000 (16:43 -0700)
scss/_functions.scss

index bf8be9aee97f28439dbc8088ccdec255a4b9a569..ab2fd0ba34aa970e1de878edfcc5fcf1b5fb2f11 100644 (file)
@@ -8,7 +8,7 @@
   $prev-key: null;
   $prev-num: null;
   @each $key, $num in $map {
-    @if $prev-num == null {
+    @if $prev-num == null or unit($num) == "%" {
       // Do nothing
     } @else if not comparable($prev-num, $num) {
       @warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";