Skip to content

Instantly share code, notes, and snippets.

@jonchretien
Last active August 29, 2015 14:13
Show Gist options
  • Save jonchretien/2ba555f91b1cdc6a12cf to your computer and use it in GitHub Desktop.
Save jonchretien/2ba555f91b1cdc6a12cf to your computer and use it in GitHub Desktop.
Flexbox Mixins
//
// Mixins: Flexbox
// --------------------------------------------------
.flex() {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.flex-justify(@justifyStyle) {
-webkit-justify-content: @justifyStyle;
-ms-justify-content: @justifyStyle;
justify-content: @justifyStyle;
}
.flex-align-items(@alignStyle) {
-webkit-align-items: @alignStyle;
-ms-align-items: @alignStyle;
align-items: @alignStyle;
}
//
// Mixins: Flexbox
// --------------------------------------------------
@mixin flex() {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
@mixin flex-justify($justifyStyle) {
-webkit-justify-content: $justifyStyle;
-ms-justify-content: $justifyStyle;
justify-content: $justifyStyle;
}
@mixin flex-align-items($alignStyle) {
-webkit-align-items: $alignStyle;
-ms-align-items: $alignStyle;
align-items: $alignStyle;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment