Skip to content

Instantly share code, notes, and snippets.

@winkerVSbecks
Created February 13, 2014 18:59
Show Gist options
  • Save winkerVSbecks/8981505 to your computer and use it in GitHub Desktop.
Save winkerVSbecks/8981505 to your computer and use it in GitHub Desktop.
.flex-container {
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;
-ms-flex-pack: start;
-webkit-justify-content: flex-start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
}
.flex-fixed-width(@width, @order) {
-ms-flex-order: @order;
-webkit-order: @order;
order: @order;
-webkit-flex: 0 1 @width;
-ms-flex: 0 1 @width;
flex: 0 1 @width;
-ms-flex-item-align: auto;
-webkit-align-self: auto;
align-self: auto;
}
.flex-expander(@order) {
-ms-flex-order: @order;
-webkit-order: @order;
order: @order;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-ms-flex-item-align: auto;
-webkit-align-self: auto;
align-self: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment