Created
October 21, 2009 23:09
-
-
Save Narnach/215561 to your computer and use it in GitHub Desktop.
sass: text-shadow
This file contains hidden or 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
| // Apply a CSS text-shadow cross-browser. | |
| // There is one todo/gotcha: the direction is hardcoded to towards the bottom-right for IE, but that's good enough for my use case. | |
| // Usage example: +text-shadow(#333, 1px, 1px, 1) | |
| =text-shadow(!color, !x, !y, !blur) | |
| :text-shadow= !color !x !y "#{!blur}px" | |
| :-ms-filter "progid:DXImageTransform.Microsoft.Shadow(Color=#{!color},Direction=135,Strength=#{!blur})" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment