Skip to content

Commit

Permalink
fix negative utils
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank committed Nov 17, 2022
1 parent 2f6ca34 commit 98e74bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utilities/margin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}

Expand Down

0 comments on commit 98e74bc

Please sign in to comment.