Permalink
Browse files

Updated box-shadow to be compatible with sass v3.1.0+

  • Loading branch information...
1 parent 86d6772 commit 60edfd89e52f625e5154fe8430aedcd99fecc7df Phil LaPier committed Apr 26, 2011
Showing with 10 additions and 10 deletions.
  1. +10 −10 _mixins.scss
View
@@ -4,34 +4,34 @@
border-radius: $radii;
}
-/* this hack is courtesy of gbbowers on github
- https://gist.github.com/601810 */
+// this hack is courtesy of gbbowers on github Ñ https://gist.github.com/601810
+// Updated to work with Sass v3.1.0+
@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: $shadow-1;
@if $shadow-2 {
- $full: $full + ", " + $shadow-2;
+ $full: $full, $shadow-2;
}
@if $shadow-3 {
- $full: $full + ", " + $shadow-3;
+ $full: $full, $shadow-3;
}
@if $shadow-4 {
- $full: $full + ", " + $shadow-4;
+ $full: $full, $shadow-4;
}
@if $shadow-5 {
- $full: $full + ", " + $shadow-5;
+ $full: $full, $shadow-5;
}
@if $shadow-6 {
- $full: $full + ", " + $shadow-6;
+ $full: $full, $shadow-6;
}
@if $shadow-7 {
- $full: $full + ", " + $shadow-7;
+ $full: $full, $shadow-7;
}
@if $shadow-8 {
- $full: $full + ", " + $shadow-8;
+ $full: $full, $shadow-8;
}
@if $shadow-9 {
- $full: $full + ", " + $shadow-9;
+ $full: $full, $shadow-9;
}
-moz-box-shadow: $full;

0 comments on commit 60edfd8

Please sign in to comment.