Skip to content

Instantly share code, notes, and snippets.

@SaraSoueidan
Created July 26, 2013 18:17
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 SaraSoueidan/6091033 to your computer and use it in GitHub Desktop.
Save SaraSoueidan/6091033 to your computer and use it in GitHub Desktop.
Sass mixin for long shadow (src: http://codepen.io/danieltott/pen/AjKay)
@function makelongshadow($color) {
$val: 0px 0px $color;
@for $i from 1 through 200 {
$val: #{$val}, #{$i}px #{$i}px #{$color};
}
@return $val;
}
/*usage*/
@mixin longshadow($color) {
text-shadow: makelongshadow($color);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment