mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Merge branch 'patch-1' of https://github.com/garhbod/bootstrap into garhbod-patch-1
This commit is contained in:
commit
f6b4945f1e
@ -30,6 +30,31 @@
|
||||
}
|
||||
|
||||
// Some special margin utils
|
||||
|
||||
// Negative margins i.e. mb-n1 is the inverse or negative of mb-1
|
||||
@each $prop, $abbrev in (margin: m) {
|
||||
@each $size, $length in $spacers {
|
||||
|
||||
.#{$abbrev}#{$infix}-n#{$size} { #{$prop}: -$length !important; }
|
||||
.#{$abbrev}t#{$infix}-n#{$size},
|
||||
.#{$abbrev}y#{$infix}-n#{$size} {
|
||||
#{$prop}-top: -$length !important;
|
||||
}
|
||||
.#{$abbrev}r#{$infix}-n#{$size},
|
||||
.#{$abbrev}x#{$infix}-n#{$size} {
|
||||
#{$prop}-right: -$length !important;
|
||||
}
|
||||
.#{$abbrev}b#{$infix}-n#{$size},
|
||||
.#{$abbrev}y#{$infix}-n#{$size} {
|
||||
#{$prop}-bottom: -$length !important;
|
||||
}
|
||||
.#{$abbrev}l#{$infix}-n#{$size},
|
||||
.#{$abbrev}x#{$infix}-n#{$size} {
|
||||
#{$prop}-left: -$length !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.m#{$infix}-auto { margin: auto !important; }
|
||||
.mt#{$infix}-auto,
|
||||
.my#{$infix}-auto {
|
||||
|
Loading…
x
Reference in New Issue
Block a user