Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
4f855136
Commit
4f855136
authored
8 years ago
by
Mark Otto
Committed by
Mark Otto
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
responsive auto margin classes
parent
f99d1796
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/utilities/_spacing.scss
+13
-8
scss/utilities/_spacing.scss
with
13 additions
and
8 deletions
+13
-8
scss/utilities/_spacing.scss
+
13
-
8
View file @
4f855136
...
...
@@ -15,14 +15,6 @@
// Margin and Padding
.mx-auto
{
margin-right
:
auto
!
important
;
margin-left
:
auto
!
important
;
}
.mr-auto
{
margin-right
:
auto
!
important
;
}
.ml-auto
{
margin-left
:
auto
!
important
;
}
@each
$breakpoint
in
map-keys
(
$grid-breakpoints
)
{
@each
$prop
,
$abbrev
in
(
margin
:
m
,
padding
:
p
)
{
@each
$size
,
$lengths
in
$spacers
{
...
...
@@ -48,6 +40,19 @@
}
}
}
// Some special margin utils
@include
media-breakpoint-up
(
$breakpoint
)
{
$infix
:
breakpoint-infix
(
$breakpoint
,
$grid-breakpoints
);
.mx
#{
$infix
}
-auto
{
margin-right
:
auto
!
important
;
margin-left
:
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
;
}
}
}
// Positioning
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment