Split justifyContent into separate plugin

This commit is contained in:
Adam Wathan 2019-02-26 10:17:26 -05:00
parent 04163056f6
commit ad282c6d8a
4 changed files with 27 additions and 15 deletions

View file

@ -2,21 +2,6 @@ export default function({ variants }) {
return function({ addUtilities }) {
addUtilities(
{
'.justify-start': {
'justify-content': 'flex-start',
},
'.justify-end': {
'justify-content': 'flex-end',
},
'.justify-center': {
'justify-content': 'center',
},
'.justify-between': {
'justify-content': 'space-between',
},
'.justify-around': {
'justify-content': 'space-around',
},
'.content-center': {
'align-content': 'center',
},

View file

@ -0,0 +1,24 @@
export default function({ variants }) {
return function({ addUtilities }) {
addUtilities(
{
'.justify-start': {
'justify-content': 'flex-start',
},
'.justify-end': {
'justify-content': 'flex-end',
},
'.justify-center': {
'justify-content': 'center',
},
'.justify-between': {
'justify-content': 'space-between',
},
'.justify-around': {
'justify-content': 'space-around',
},
},
variants
)
}
}