Last active
January 31, 2018 00:06
-
-
Save kidker/ffd0edcd1b0f12769e6ea1e2df46fbd1 to your computer and use it in GitHub Desktop.
Flexbox CSS MINIMAL
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 { | |
display: -webkit-box; | |
display: -webkit-flex; | |
display: -ms-flexbox; | |
display: flex; | |
-moz-box-wrap: nowrap; | |
-webkit-box-wrap: nowrap; | |
-webkit-flex-wrap: nowrap; | |
-ms-flexbox-wrap: nowrap; | |
-ms-flex-wrap: nowrap; | |
flex-wrap: nowrap; | |
} | |
.flex-none { | |
flex: none; | |
} | |
.flex-auto { | |
-webkit-box-basis: auto; | |
-webkit-flex-basis: auto; | |
-ms-flex-basis: auto; | |
flex-basis: auto; | |
-webkit-box-flex: 1; | |
/* OLD - iOS 6-, Safari 3.1-6 */ | |
-moz-box-flex: 1; | |
/* OLD - Firefox 19- */ | |
-webkit-flex: 1; | |
/* Chrome */ | |
-ms-flex: 1 0 auto; | |
/* IE 10 */ | |
flex: 1; | |
} | |
.flex-row { | |
-moz-box-direction: row; | |
-webkit-box-direction: row; | |
-webkit-box-orient: horizontal; | |
-webkit-flex-direction: row; | |
-ms-flexbox-direction: row; | |
-ms-flex-direction: row; | |
flex-direction: row; | |
} | |
.flex-col { | |
-moz-box-direction: column; | |
-webkit-box-direction: column; | |
-webkit-box-orient: vertical; | |
-webkit-flex-direction: column; | |
-ms-flexbox-direction: column; | |
-ms-flex-direction: column; | |
flex-direction: column; | |
} | |
.flex-align-between { | |
-webkit-box-align-content: space-between; | |
-webkit-align-content: space-between; | |
-ms-flex-align-content: space-between; | |
align-content: space-between; | |
} | |
.flex-align-center { | |
-webkit-box-align-content: center; | |
-webkit-align-content: center; | |
-ms-flex-align-content: center; | |
align-content: center; | |
} | |
.flex-align-start { | |
-webkit-box-align-content: flex-start; | |
-webkit-align-content: flex-start; | |
-ms-flex-align-content: flex-start; | |
align-content: flex-start; | |
} | |
.flex-align-item-start { | |
-webkit-box-align: flex-start; | |
-webkit-align-items: flex-start; | |
-moz-box-align: flex-start; | |
-ms-flex-align: flex-start; | |
align-items: flex-start; | |
} | |
.flex-align-item-center { | |
-webkit-box-align: center; | |
-webkit-align-items: center; | |
-moz-box-align: center; | |
-ms-flex-align: center; | |
align-items: center; | |
} | |
.flex-start-all { | |
-webkit-box-pack: justify; | |
-webkit-justify-content: flex-start; | |
-ms-flex-pack: justify; | |
-moz-box-pack: justify; | |
justify-content: flex-start; | |
-webkit-box-align: flex-start; | |
-webkit-align-items: flex-start; | |
-moz-box-align: flex-start; | |
-ms-flex-align: flex-start; | |
align-items: flex-start; | |
-webkit-box-align-content: flex-start; | |
-webkit-align-content: flex-start; | |
-ms-flex-align-content: flex-start; | |
align-content: flex-start; | |
} | |
.flex-align-item-stretch { | |
-webkit-box-align: stretch; | |
-webkit-align-items: stretch; | |
-moz-box-align: stretch; | |
-ms-flex-align: stretch; | |
align-items: stretch; | |
} | |
.flex-justify-between { | |
-webkit-box-pack: justify; | |
-webkit-justify-content: space-between; | |
-ms-flex-pack: justify; | |
-moz-box-pack: justify; | |
justify-content: space-between; | |
} | |
.flex-justify-center { | |
-webkit-box-pack: justify; | |
-webkit-justify-content: center; | |
-ms-flex-pack: justify; | |
-moz-box-pack: justify; | |
justify-content: center; | |
} | |
.flex-justify-start { | |
-webkit-box-pack: justify; | |
-webkit-justify-content: flex-start; | |
-ms-flex-pack: justify; | |
-moz-box-pack: justify; | |
justify-content: flex-start; | |
} | |
.flex-justify-end { | |
-webkit-box-pack: justify; | |
-webkit-justify-content: flex-end; | |
-ms-flex-pack: justify; | |
-moz-box-pack: justify; | |
justify-content: flex-end; | |
} | |
.flex-wrap { | |
-moz-box-wrap: wrap; | |
-webkit-box-wrap: wrap; | |
-webkit-flex-wrap: wrap; | |
-ms-flexbox-wrap: wrap; | |
-ms-flex-wrap: wrap; | |
flex-wrap: wrap; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment