Skip to content

Instantly share code, notes, and snippets.

@davidicus
Created May 7, 2015 21:33
Show Gist options
  • Save davidicus/ccfd85c581f1dafcc9fa to your computer and use it in GitHub Desktop.
Save davidicus/ccfd85c581f1dafcc9fa to your computer and use it in GitHub Desktop.
Long shadow mixin
@mixin long-shadow-text ($distance, $blur, $color) {
$shadows: null;
$color: darken($color, 10);
$blur: $blur + px;
@for$i from 0 through $distance {
$dist: $i + px;
$shadows: append($shadows, ($dist $dist $blur $color), comma);
}
text-shadow: $shadows;
}
.long-shadow {
@include long-shadow-text(500, 0, #e0e0e0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment