Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.