aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman O <[email protected]>2018-06-08 16:37:33 +0300
committerMark Otto <[email protected]>2018-09-02 16:43:54 -0700
commitfad49e710ed2a447b4ae983d2093db0ba583a6da (patch)
tree7fdb341a91fbd818fa38a4f41a608f9f3a8182a0
parent97eea3b2bfc5f6d1a3e680ee07b1274247610bb0 (diff)
downloadbootstrap-fad49e710ed2a447b4ae983d2093db0ba583a6da.tar.xz
bootstrap-fad49e710ed2a447b4ae983d2093db0ba583a6da.zip
Ignore percentage values for compare in maps
-rw-r--r--scss/_functions.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss
index bf8be9aee..ab2fd0ba3 100644
--- a/scss/_functions.scss
+++ b/scss/_functions.scss
@@ -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}' !";