Created
May 7, 2015 21:33
-
-
Save davidicus/ccfd85c581f1dafcc9fa to your computer and use it in GitHub Desktop.
Long shadow mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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