The mixin names and their values correspond to the official draft.
display
justify-content
align-items
align-self
align-content
order
flex
flex-grow
flex-shrink
flex-basis
flex-direction
flex-wrap
flex-flow
In Firefox < 22 you need to add the following snippet to every element that
you set display: flex
.
/*
* Legacy Firefox implementation treats all flex containers
* as inline-block elements.
*/
@-moz-document url-prefix() {
#selector {
width: 100%;
-moz-box-sizing: border-box;
}
}
- Official W3C Editor's Draft
- Centering Elements with Flexbox from Smashing Magazine