Skip to content

Instantly share code, notes, and snippets.

@visnup
Created February 25, 2011 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save visnup/843425 to your computer and use it in GitHub Desktop.
Save visnup/843425 to your computer and use it in GitHub Desktop.
shadows, even with fallbacks for ie <9
=shadow($color: hsla(0, 0%, 0%, 0.4))
:-webkit-box-shadow 0px 0px 5px $color
:-moz-box-shadow 0px 0px 5px $color
:box-shadow 0px 0px 5px $color
html.ie8 &, html.ie7 &, html.ie6 &
:border solid 1px #ccc // fine, just border it with gray
// and then usable on any random element:
#portrait img
+shadow
header
nav
+shadow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment