Skip to content

Instantly share code, notes, and snippets.

@CombatCode
Created December 18, 2013 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CombatCode/8026912 to your computer and use it in GitHub Desktop.
Save CombatCode/8026912 to your computer and use it in GitHub Desktop.
universal text-shadow mixin
@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