Created
December 18, 2013 18:03
-
-
Save CombatCode/8026912 to your computer and use it in GitHub Desktop.
universal text-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
@function strip-unit($num) { | |
@return $num / ($num * 0 + 1); | |
} | |
@mixin text-shadow($h-shadow: 0, $v-shadow: 0, $blur: 0, $color: #ffffff) { | |
text-shadow: $h-shadow $v-shadow $blur $color; | |
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(color=#{$color},direction=90,strength=#{strip-unit($blur)})"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment