Skip to content

Instantly share code, notes, and snippets.

@kpuputti
Created May 6, 2013 10:24
Show Gist options
  • Save kpuputti/5524355 to your computer and use it in GitHub Desktop.
Save kpuputti/5524355 to your computer and use it in GitHub Desktop.
@mixin flexbox {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-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;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-moz-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: flex-start;
-ms-flex-line-pack: start;
align-content: flex-start;
-webkit-box-align: start;
-moz-box-align: start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
}
@mixin flex($stretch: 1) {
-webkit-box-ordinal-group: 1;
-moz-box-ordinal-group: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
-webkit-box-flex: $stretch;
-moz-box-flex: $stretch;
-webkit-flex: $stretch 1 auto;
-ms-flex: $stretch 1 auto;
flex: $stretch 1 auto;
-webkit-align-self: stretch;
-ms-flex-item-align: stretch;
align-self: stretch;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment