Created
December 15, 2016 22:28
-
-
Save yratof/537873b8fbf2b16f7b772bff34b95864 to your computer and use it in GitHub Desktop.
Using @span for grid
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
&.columns{ | |
/* Layout options */ | |
@for $i from 2 through 8 { | |
&-#{$i}{ | |
$value: 12 / $i; | |
.grid__image--item { | |
@include span( $value, 12 ); | |
&:nth-of-type(#{$i}n+#{$i}){ | |
margin-right: 0; | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment