aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormspae <[email protected]>2019-03-05 11:47:48 +0100
committerXhmikosR <[email protected]>2019-03-05 12:47:48 +0200
commit7626f8b17d59fcb65b1f3e9f5ea4f4c8522d3f40 (patch)
treed17ed6686d0ed870c214a8b970e60e669495492b
parentc8361e2adf5a4d22d7ecd347d8b53a3d2c1f3af3 (diff)
downloadbootstrap-7626f8b17d59fcb65b1f3e9f5ea4f4c8522d3f40.tar.xz
bootstrap-7626f8b17d59fcb65b1f3e9f5ea4f4c8522d3f40.zip
disable assert assending check if the previous unit was a percentual value (#28400)
-rw-r--r--scss/_functions.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss
index d2cc91d57..41e99ec76 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 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}' !";