1 // stylelint-disable declaration-no-important
5 @each $breakpoint in map-keys($grid-breakpoints) {
6 @include media-breakpoint-up($breakpoint) {
7 $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
9 @each $prop, $abbrev in (margin: m, padding: p) {
10 @each $size, $length in $spacers {
12 .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
13 .#{$abbrev}t#{$infix}-#{$size},
14 .#{$abbrev}y#{$infix}-#{$size} {
15 #{$prop}-top: $length !important;
17 .#{$abbrev}r#{$infix}-#{$size},
18 .#{$abbrev}x#{$infix}-#{$size} {
19 #{$prop}-right: $length !important;
21 .#{$abbrev}b#{$infix}-#{$size},
22 .#{$abbrev}y#{$infix}-#{$size} {
23 #{$prop}-bottom: $length !important;
25 .#{$abbrev}l#{$infix}-#{$size},
26 .#{$abbrev}x#{$infix}-#{$size} {
27 #{$prop}-left: $length !important;
32 // Some special margin utils
33 .m#{$infix}-auto { margin: auto !important; }
36 margin-top: auto !important;
40 margin-right: auto !important;
44 margin-bottom: auto !important;
48 margin-left: auto !important;