Skip to content

Instantly share code, notes, and snippets.

@Narnach
Created October 21, 2009 23:09
Show Gist options
  • Select an option

  • Save Narnach/215561 to your computer and use it in GitHub Desktop.

Select an option

Save Narnach/215561 to your computer and use it in GitHub Desktop.
sass: text-shadow
// 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