diff options
| author | Mark Otto <[email protected]> | 2016-12-24 18:52:45 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-12-25 14:03:50 -0800 |
| commit | bab4f1ef3c61cff12b442d8f3afd4344e7736203 (patch) | |
| tree | 0501500fe01312e949f322f4d48c81d0d2780d1a | |
| parent | 4ca1a7f0773d1892723efc09e2ccb064dde309f5 (diff) | |
| download | bootstrap-bab4f1ef3c61cff12b442d8f3afd4344e7736203.tar.xz bootstrap-bab4f1ef3c61cff12b442d8f3afd4344e7736203.zip | |
add my-auto and m-auto
| -rw-r--r-- | scss/utilities/_spacing.scss | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scss/utilities/_spacing.scss b/scss/utilities/_spacing.scss index 8750bb65b..0f4f9ef0e 100644 --- a/scss/utilities/_spacing.scss +++ b/scss/utilities/_spacing.scss @@ -44,10 +44,15 @@ // Some special margin utils @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); + .m#{$infix}-auto { margin: auto !important; } .mx#{$infix}-auto { margin-right: auto !important; margin-left: auto !important; } + .my#{$infix}-auto { + margin-top: auto !important; + margin-bottom: auto !important; + } .mt#{$infix}-auto { margin-top: auto !important; } .mr#{$infix}-auto { margin-right: auto !important; } .mb#{$infix}-auto { margin-bottom: auto !important; } |
