Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save seven-phases-max/a5332d9c6eec58ba14b7 to your computer and use it in GitHub Desktop.

Select an option

Save seven-phases-max/a5332d9c6eec58ba14b7 to your computer and use it in GitHub Desktop.
.generate-something(4);
.generate-something(@i) when (@i > 0) {
// just invoke next iteration *before* styles
// so the styles output when the loop is unwinded
// and the whole thing works in reverse:
.generate-something((@i - 1));
.something-@{i} {
left: (@i * 1%);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment