Last active
November 25, 2016 12:37
-
-
Save kvnol/37470f6fb501b62f3aef579248c2d47b to your computer and use it in GitHub Desktop.
Sass Grid
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
$grid-gutter: 30px/2 | |
$grid-columns: 12 | |
$grid-max: 1440px // variable value | |
.row | |
margin: | |
left: auto | |
right: auto | |
[class*="col-"] | |
padding: 0 $grid-gutter | |
margin-bottom: 30px | |
@for $i from 1 through $grid-columns | |
.col-#{$i} | |
width: 100% / $grid-columns * $i | |
max-width: $grid-max / $grid-columns * $i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment