Last active
August 29, 2015 14:13
-
-
Save jonchretien/2ba555f91b1cdc6a12cf to your computer and use it in GitHub Desktop.
Flexbox Mixins
This file contains 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
// | |
// 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; | |
} |
This file contains 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
// | |
// 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