Skip to content

Instantly share code, notes, and snippets.

@mhayes
Last active December 20, 2015 18:29
Show Gist options
  • Save mhayes/6176569 to your computer and use it in GitHub Desktop.
Save mhayes/6176569 to your computer and use it in GitHub Desktop.
Semantic grids in Foundation
.container{
@include grid-row();
.div1 {
@include grid-column(12);
@media #{$small} {
@include grid-column(4);
}
}
.div2 {
@include grid-column(12);
@media #{$small} {
@include grid-column(4);
}
}
.div3 {
@include grid-column(12);
@media #{$small} {
@include grid-column(4);
}
}
}
.container{
@include grid-row();
.div1 {
@include grid-column(12);
}
.div2 {
@include grid-column(12);
}
.div3 {
@include grid-column(12);
}
}
@media #{$small} {
.container {
.div1 {
@include grid-column(4);
}
.div2 {
@include grid-column(4);
}
.div3 {
@include grid-column(4);
}
}
}
@mhayes
Copy link
Author

mhayes commented Aug 7, 2013

Using v1 takes advantage of Sass 3.2. v2 works just fine, but doesn't take full advantage of Sass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment