Permalink
Browse files

Updated box-shadow mixin to support variable arguments

  • Loading branch information...
1 parent 15ced75 commit 9b6ccb97b0562ce7008c841cae8012d15ccb7a47 Phil LaPier committed Sep 11, 2012
Showing with 2 additions and 11 deletions.
  1. +2 −11 app/assets/stylesheets/css3/_box-shadow.scss
@@ -1,12 +1,3 @@
-// Box-Shadow Mixin Requires Sass v3.1.1+
-@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);
-
- @include prefixer(box-shadow, $full, webkit, not moz);
+@mixin box-shadow ($shadows...) {
+ @include prefixer(box-shadow, $shadows, webkit, not moz);
}

0 comments on commit 9b6ccb9

Please sign in to comment.