PostCSS flex-alias
PostCSS plugin easily write flex
Click on the Documentation to learn more
Explain
display: flex-[flex-flow
][justify-content
][align-items
][align-content
]
flex-flow
x
: row nowrapy
: column nowrapw
: row wrapm
: column warp
justify-content
s
: flex-starta
: space-aroundb
: space-betweenc
: centere
: flex-end
align-items
s
: flex-startb
: baselinec
: centere
: flex-endh
: stretch
align-content
s
: flex-starta
: space-aroundb
: space-betweenc
: centere
: flex-end
Example
.foo {
display: flex-xcc;
}
.foo {
display: flex;
justify-content: center;
align-items: center;
}
.foo {
display: flex-wbc;
}
.foo {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
Usage
postcss([ require('postcss-flex-alias') ])
plugins: {
'postcss-flex-alias': {}
}
See PostCSS docs for examples for your environment.