From: k-utsumi Date: Thu, 24 Jun 2021 07:57:47 +0000 (+0900) Subject: 🐛 Enable `0.x` with negative margins @ v4 (#33593) X-Git-Tag: v4.6.1~44 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=086c0bfc25cc1dcd1365f192453992e9188876b8;p=thirdparty%2Fbootstrap.git 🐛 Enable `0.x` with negative margins @ v4 (#33593) * 🐛 Enable `0.x` with negative margins @ v4 I set it as below, but no negative margin was added. `$spacers: (0\.5: ($spacer * .125));` After investigating, it seems that `0 \ .5` is also evaluated as 0. So I changed it to string comparison. HTML example: `` * 💚 Clear CI errors --- diff --git a/scss/utilities/_spacing.scss b/scss/utilities/_spacing.scss index 351136790a..3e98581a94 100644 --- a/scss/utilities/_spacing.scss +++ b/scss/utilities/_spacing.scss @@ -30,7 +30,7 @@ // Negative margins (e.g., where `.mb-n1` is negative version of `.mb-1`) @each $size, $length in $spacers { - @if $size != 0 { + @if "#{$size}" != "0" { .m#{$infix}-n#{$size} { margin: -$length !important; } .mt#{$infix}-n#{$size}, .my#{$infix}-n#{$size} {