Split flexDirection into its own plugin
This commit is contained in:
parent
10106e2edc
commit
ad4f7739bb
4 changed files with 24 additions and 12 deletions
21
src/plugins/flexDirection.js
Normal file
21
src/plugins/flexDirection.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
export default function({ variants }) {
|
||||
return function({ addUtilities }) {
|
||||
addUtilities(
|
||||
{
|
||||
'.flex-row': {
|
||||
'flex-direction': 'row',
|
||||
},
|
||||
'.flex-row-reverse': {
|
||||
'flex-direction': 'row-reverse',
|
||||
},
|
||||
'.flex-col': {
|
||||
'flex-direction': 'column',
|
||||
},
|
||||
'.flex-col-reverse': {
|
||||
'flex-direction': 'column-reverse',
|
||||
},
|
||||
},
|
||||
variants
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -2,18 +2,6 @@ export default function({ variants }) {
|
|||
return function({ addUtilities }) {
|
||||
addUtilities(
|
||||
{
|
||||
'.flex-row': {
|
||||
'flex-direction': 'row',
|
||||
},
|
||||
'.flex-row-reverse': {
|
||||
'flex-direction': 'row-reverse',
|
||||
},
|
||||
'.flex-col': {
|
||||
'flex-direction': 'column',
|
||||
},
|
||||
'.flex-col-reverse': {
|
||||
'flex-direction': 'column-reverse',
|
||||
},
|
||||
'.flex-wrap': {
|
||||
'flex-wrap': 'wrap',
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue