Skip to content
This repository
Browse code

Allow transparent fallback color for linear and radial-gradient mixins

  • Loading branch information...
commit b4099827a44413e5faafedf9a687d4b24dc945e5 1 parent b00d334
authored February 17, 2012
2  app/assets/stylesheets/css3/_linear-gradient.scss
@@ -20,7 +20,7 @@
20 20
   $fallback-color: nth($G1, 1);
21 21
 
22 22
   // If $fallback is a color use that color as the fallback color
23  
-  @if type-of($fallback) == color {
  23
+  @if (type-of($fallback) == color) or ($fallback == "transparent") {
24 24
     $fallback-color: $fallback;
25 25
   }
26 26
 
2  app/assets/stylesheets/css3/_radial-gradient.scss
@@ -13,7 +13,7 @@
13 13
   $fallback-color: nth($G1, 1);
14 14
 
15 15
   // If $fallback is a color use that color as the fallback color
16  
-  @if type-of($fallback) == color {
  16
+  @if (type-of($fallback) == color) or ($fallback == "transparent") {
17 17
     $fallback-color: $fallback;
18 18
   }
19 19
 

0 notes on commit b409982

Please sign in to comment.
Something went wrong with that request. Please try again.