Skip to content

Instantly share code, notes, and snippets.

@rk
Created April 13, 2011 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rk/917486 to your computer and use it in GitHub Desktop.
Save rk/917486 to your computer and use it in GitHub Desktop.
A simple example for a blog article someone wrote.
// An example for:
// http://blog.rebeltix.com/2011/04/css-sass-and-how-to-improve-the-mess/
@for $i from 1 through 6 {
h#{$i} {font-size: 12pt + (14 - $i*2);}
}
@for $i from 1 through 3 {
box-level-#{$i} {background-color: #333 + ($i * #333);}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment