Skip to content

Instantly share code, notes, and snippets.

@pbredenberg
Created June 1, 2015 18:56
Show Gist options
  • Save pbredenberg/7a03224dad932f860f12 to your computer and use it in GitHub Desktop.
Save pbredenberg/7a03224dad932f860f12 to your computer and use it in GitHub Desktop.
flex grid mixin
@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