Skip to content

Instantly share code, notes, and snippets.

@crswll
Created July 25, 2014 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crswll/ae41cc24d1d61911c0d6 to your computer and use it in GitHub Desktop.
Save crswll/ae41cc24d1d61911c0d6 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
@mixin mega-blocks ($columns) {
$counter: 0;
body: $counter;
@each $row in $columns {
@for $i from 0 through ( $row - 1 ) {
$counter: $counter + 1;
&:nth-child($counter) {
foo: $row;
}
}
}
}
.pattern-foo {
@include mega-blocks(2 3 2 4);
}
Invalid CSS after " &:nth-child(": expected ")", was "$counter) {"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment