diff --git a/src/utilities/margin.scss b/src/utilities/margin.scss index 70edf3182a..4024fd4e23 100644 --- a/src/utilities/margin.scss +++ b/src/utilities/margin.scss @@ -28,15 +28,15 @@ @if ($size != 0) { /* Set a negative $size margin on top at $breakpoint */ - .mt#{$variant}-n#{$scale} { margin-top: -$size !important; } + .mt#{$variant}-n#{$scale} { margin-top: calc(-1 * $size) !important; } /* Set a negative $size margin on the bottom at $breakpoint */ - .mb#{$variant}-n#{$scale} { margin-bottom: -$size !important; } + .mb#{$variant}-n#{$scale} { margin-bottom: calc(-1 * $size) !important; } @if ($scale < length($spacer-map-rem)) { /* Set a negative $size margin on the right at $breakpoint */ - .mr#{$variant}-n#{$scale} { margin-right : -$size !important; } + .mr#{$variant}-n#{$scale} { margin-right : calc(-1 * $size) !important; } /* Set a negative $size margin on the left at $breakpoint */ - .ml#{$variant}-n#{$scale} { margin-left : -$size !important; } + .ml#{$variant}-n#{$scale} { margin-left : calc(-1 * $size) !important; } } }