Last active
August 29, 2015 14:09
-
-
Save siggiarni/be50e115a83a15711a9b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.flex-container { | |
/* Display */ | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
display: flex; | |
/* Direction */ | |
-webkit-box-direction: normal; | |
-moz-box-direction: normal; | |
-webkit-box-orient: horizontal; | |
-moz-box-orient: horizontal; | |
-webkit-flex-direction: row; | |
-ms-flex-direction: row; | |
flex-direction: row; | |
/* Wrap */ | |
-webkit-flex-wrap: wrap; | |
-ms-flex-wrap: wrap; | |
flex-wrap: wrap; | |
/* Justify */ | |
-webkit-box-pack: start; | |
-moz-box-pack: start; | |
-webkit-justify-content: flex-start; | |
-ms-flex-pack: start; | |
justify-content: flex-start; | |
/* Align content */ | |
-webkit-align-content: stretch; | |
-ms-flex-line-pack: stretch; | |
align-content: stretch; | |
/* Align items */ | |
-webkit-box-align: start; | |
-moz-box-align: start; | |
-webkit-align-items: flex-start; | |
-ms-flex-align: start; | |
align-items: flex-start; | |
} | |
.flex-item { | |
/* Order */ | |
-webkit-box-ordinal-group: 1; | |
-moz-box-ordinal-group: 1; | |
-webkit-order: 0; | |
-ms-flex-order: 0; | |
order: 0; | |
/* | |
Flex shorthand | |
- flex-grow | |
- flex-shrink | |
- flex-basis | |
*/ | |
-webkit-box-flex: 1; | |
-moz-box-flex: 1; | |
-webkit-flex: 1 0 auto; | |
-ms-flex: 1 0 auto; | |
flex: 1 0 auto; | |
/* Align self */ | |
-webkit-align-self: auto; | |
-ms-flex-item-align: auto; | |
align-self: auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment