Last active
December 20, 2015 18:29
-
-
Save mhayes/6176569 to your computer and use it in GitHub Desktop.
Semantic grids in Foundation
This file contains hidden or 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
.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); | |
} | |
} | |
} |
This file contains hidden or 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
.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); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
v1
takes advantage of Sass 3.2.v2
works just fine, but doesn't take full advantage of Sass.