Skip to content

Instantly share code, notes, and snippets.

@rosemarydotworld
Created November 24, 2014 22:20
Show Gist options
  • Save rosemarydotworld/7f87bb5b2c128e9783a7 to your computer and use it in GitHub Desktop.
Save rosemarydotworld/7f87bb5b2c128e9783a7 to your computer and use it in GitHub Desktop.
Long shadow Sass function!
@function long-shadow($n, $color) {
$text-shadow: "1px 1px #{$color}";
@for $i from 2 through $n {
$new-shadow: "#{$i}px #{$i}px #{$color}";
$text-shadow: append((#{$text-shadow}), (#{$new-shadow}), comma);
}
@return $text-shadow;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment