Skip to content

Instantly share code, notes, and snippets.

@shodoi
Created January 16, 2012 18:41
Show Gist options
  • Select an option

  • Save shodoi/1622256 to your computer and use it in GitHub Desktop.

Select an option

Save shodoi/1622256 to your computer and use it in GitHub Desktop.
SCSSの@forサンプル。Sassオンラインエディタとローカルで出力の挙動が異なるような。
.hoge {
@for $i from 0 through 10 {
li-#{$i + 1} {
margin: #{50 * $i}px;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment