Skip to content

Instantly share code, notes, and snippets.

@phylaxis
Created September 4, 2012 20:30
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 phylaxis/3626112 to your computer and use it in GitHub Desktop.
Save phylaxis/3626112 to your computer and use it in GitHub Desktop.
/* @include box-shadow(5px, 5px, 10px, #000); */
@mixin box-shadow($shadow-1,
$shadow-2: false, $shadow-3: false,
$shadow-4: false, $shadow-5: false,
$shadow-6: false, $shadow-7: false,
$shadow-8: false, $shadow-9: false) {
$full: compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9);
-webkit-box-shadow: $full;
-moz-box-shadow: $full;
box-shadow: $full;
}​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment