]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
disable assert assending check if the previous unit was a percentual value (#28400)
authormspae <mspae@users.noreply.github.com>
Tue, 5 Mar 2019 10:47:48 +0000 (11:47 +0100)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 5 Mar 2019 10:47:48 +0000 (12:47 +0200)
scss/_functions.scss

index d2cc91d57a6650f9ab2f5d3ae17de0fb55b1e29b..41e99ec7615a397f4a1b3b40abbb19301511d0b8 100644 (file)
@@ -8,7 +8,7 @@
   $prev-key: null;
   $prev-num: null;
   @each $key, $num in $map {
-    @if $prev-num == null or unit($num) == "%" {
+    @if $prev-num == null or unit($num) == "%" or unit($prev-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}' !";