Sha256: 5fa91b05a279a6330af43fd47fb6d0fec7b03ce209bde8ad0273cf89d32b4ac1
Contents?: true
Size: 1.64 KB
Versions: 4
Compression:
Stored size: 1.64 KB
Contents
// Margin and Padding @each $breakpoint in map-keys($grid-breakpoints) { @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); @each $prop, $abbrev in (margin: m, padding: p) { @each $size, $lengths in $spacers { $length-x: map-get($lengths, x); $length-y: map-get($lengths, y); .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length-y $length-x !important; } .#{$abbrev}t#{$infix}-#{$size} { #{$prop}-top: $length-y !important; } .#{$abbrev}r#{$infix}-#{$size} { #{$prop}-right: $length-x !important; } .#{$abbrev}b#{$infix}-#{$size} { #{$prop}-bottom: $length-y !important; } .#{$abbrev}l#{$infix}-#{$size} { #{$prop}-left: $length-x !important; } .#{$abbrev}x#{$infix}-#{$size} { #{$prop}-right: $length-x !important; #{$prop}-left: $length-x !important; } .#{$abbrev}y#{$infix}-#{$size} { #{$prop}-top: $length-y !important; #{$prop}-bottom: $length-y !important; } } } // Some special margin utils .m#{$infix}-auto { margin: auto !important; } .mt#{$infix}-auto { margin-top: auto !important; } .mr#{$infix}-auto { margin-right: auto !important; } .mb#{$infix}-auto { margin-bottom: auto !important; } .ml#{$infix}-auto { margin-left: auto !important; } .mx#{$infix}-auto { margin-right: auto !important; margin-left: auto !important; } .my#{$infix}-auto { margin-top: auto !important; margin-bottom: auto !important; } } }
Version data entries
4 entries across 4 versions & 1 rubygems