@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}' !";
}@elseif$prev-num>=$num{
@warn"Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
// Variables should follow the `$component-state-property-size` formula for
// Variables should follow the `$component-state-property-size` formula for
// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
// Table of Contents
// Table of Contents
//
//
// Colors
// Colors
...
@@ -44,51 +43,6 @@
...
@@ -44,51 +43,6 @@
// Close
// Close
// Code
// Code
@mixin_assert-ascending($map,$map-name){
$prev-key:null;
$prev-num:null;
@each$key,$numin$map{
@if$prev-num==null{
// Do nothing
}@elseifnotcomparable($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}' !";
}@elseif$prev-num>=$num{
@warn"Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";