diff options
| author | Mark Otto <[email protected]> | 2016-09-08 22:15:34 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-09-08 22:15:34 -0700 |
| commit | ae784c9521101c391ecc98e906ddf18e6aeb459b (patch) | |
| tree | 8b23edb818070df2f966dec16c174fedcc7bf0ec | |
| parent | 076a950442371a8c0a974fa6478efb20a69527b7 (diff) | |
| download | bootstrap-ae784c9521101c391ecc98e906ddf18e6aeb459b.tar.xz bootstrap-ae784c9521101c391ecc98e906ddf18e6aeb459b.zip | |
Rename margin and padding utilities from .{property}-{side} to .{property}{side} without the extra dash
| -rw-r--r-- | scss/utilities/_spacing.scss | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scss/utilities/_spacing.scss b/scss/utilities/_spacing.scss index b7ff044b6..c81a6aa88 100644 --- a/scss/utilities/_spacing.scss +++ b/scss/utilities/_spacing.scss @@ -4,7 +4,7 @@ // Margin and Padding -.m-x-auto { +.mx-auto { margin-right: auto !important; margin-left: auto !important; } @@ -14,18 +14,18 @@ $length-x: map-get($lengths, x); $length-y: map-get($lengths, y); - .#{$abbrev}-a-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides - .#{$abbrev}-t-#{$size} { #{$prop}-top: $length-y !important; } - .#{$abbrev}-r-#{$size} { #{$prop}-right: $length-x !important; } - .#{$abbrev}-b-#{$size} { #{$prop}-bottom: $length-y !important; } - .#{$abbrev}-l-#{$size} { #{$prop}-left: $length-x !important; } + .#{$abbrev}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides + .#{$abbrev}t-#{$size} { #{$prop}-top: $length-y !important; } + .#{$abbrev}r-#{$size} { #{$prop}-right: $length-x !important; } + .#{$abbrev}b-#{$size} { #{$prop}-bottom: $length-y !important; } + .#{$abbrev}l-#{$size} { #{$prop}-left: $length-x !important; } // Axes - .#{$abbrev}-x-#{$size} { + .#{$abbrev}x-#{$size} { #{$prop}-right: $length-x !important; #{$prop}-left: $length-x !important; } - .#{$abbrev}-y-#{$size} { + .#{$abbrev}y-#{$size} { #{$prop}-top: $length-y !important; #{$prop}-bottom: $length-y !important; } |
