Skip to content

Instantly share code, notes, and snippets.

@idan
Created July 13, 2014 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idan/1daa7dc9fd2a3afbed43 to your computer and use it in GitHub Desktop.
Save idan/1daa7dc9fd2a3afbed43 to your computer and use it in GitHub Desktop.
d3 styling
.d3Content {
fill: none;
.area {
fill: #eee;
stroke: none;
&.light { fill: transparentize($light, 0.7); }
&.dark { fill: transparentize($dark, 0.7); }
&.crit { fill: transparentize($crit, 0.5); }
}
.line {
stroke: #eee;
stroke-width: 1;
&.light { stroke: $light; }
&.dark { stroke: $dark; }
&.crit { stroke: $crit; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment