Created
June 1, 2015 18:56
-
-
Save pbredenberg/7a03224dad932f860f12 to your computer and use it in GitHub Desktop.
flex grid mixin
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
@mixin flex-grid($columns) { | |
@include flexbox(); | |
@include flex-flow(row nowrap); | |
@if ($columns = 2) { | |
& > .flex-grid--element { | |
@include flex(1 0 50%); | |
} | |
} | |
} | |
.flex-grid { | |
@include flex-grid(2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment