Simplify margin auto utilities
This commit is contained in:
parent
ca366ee12d
commit
8dfe5189fa
3 changed files with 151 additions and 175 deletions
|
|
@ -97,31 +97,6 @@ export default function({ padding, margin, negativeMargin }) {
|
|||
return _.flatten([
|
||||
definePadding(padding),
|
||||
defineMargin(margin),
|
||||
defineClasses({
|
||||
'mt-auto': {
|
||||
'margin-top': 'auto',
|
||||
},
|
||||
'mr-auto': {
|
||||
'margin-right': 'auto',
|
||||
},
|
||||
'mb-auto': {
|
||||
'margin-bottom': 'auto',
|
||||
},
|
||||
'ml-auto': {
|
||||
'margin-left': 'auto',
|
||||
},
|
||||
'mx-auto': {
|
||||
'margin-left': 'auto',
|
||||
'margin-right': 'auto',
|
||||
},
|
||||
'my-auto': {
|
||||
'margin-top': 'auto',
|
||||
'margin-bottom': 'auto',
|
||||
},
|
||||
'm-auto': {
|
||||
margin: 'auto',
|
||||
},
|
||||
}),
|
||||
defineNegativeMargin(negativeMargin),
|
||||
])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue