Skip to content

Instantly share code, notes, and snippets.

@ulope
Forked from idan/interpolation.scss
Created October 15, 2012 14:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ulope/3892661 to your computer and use it in GitHub Desktop.
Save ulope/3892661 to your computer and use it in GitHub Desktop.
Works with this changes
$colors: rgb(202,0,32), rgb(244,165,130), rgb(247,247,247), rgb(146,197,222), rgb(5,113,176);
@mixin choropleth($bucket) {
.RdBu .q#{$bucket}-5 {
$base-fill: nth($colors, $bucket);
fill: $base-fill;
&:hover {
fill: darken($base-fill, 10%);
}
}
}
@include choropleth(1);
@include choropleth(2);
@include choropleth(3);
@include choropleth(4);
@include choropleth(5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment