Skip to content

Instantly share code, notes, and snippets.

@webpapaya
Created January 5, 2014 10:43
Show Gist options
  • Save webpapaya/8266695 to your computer and use it in GitHub Desktop.
Save webpapaya/8266695 to your computer and use it in GitHub Desktop.
most awesome sass code i ever wrote for my current project food-mesh
$colorTypes: (low, medium, high, ultra-high);
@for $i from 0 to length($colorTypes) {
&.color-amount-#{unquote(nth($colorTypes, $i+1))} {
fill: mix(#19436B, #50B694, $i*length($colorTypes));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment