Explorar o código

Merge pull request #285 from seltzlab/master

Added .boxShadow(none) mixin
Eddie Machado %!s(int64=13) %!d(string=hai) anos
pai
achega
f41ebfd2f5
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  1. 8 2
      library/less/_mixins.less

+ 8 - 2
library/less/_mixins.less

@@ -198,10 +198,16 @@ BOX SHADOW
 *********************/
 
 /* .boxShadow(0,0,4px,0,#444); */
-.boxShadow(@x: 0, @y: 0, @radius: 4px, @spread: 0, @color: rgba(0,0,0,0.5)) {
+.boxShadow(@x: 0, @y: 0, @radius: 4px, @spread: 0, @color: rgba(0,0,0,0.5)) when (isnumber(@x)) {
 	-webkit-box-shadow: @x @y @radius @spread @color;
 	   -moz-box-shadow: @x @y @radius @spread @color;
-					box-shadow: @x @y @radius @spread @color; 
+			box-shadow: @x @y @radius @spread @color; 
+}
+/* .boxShadow(none); */
+.boxShadow(@x: none) when (iskeyword(@x)) {
+	-webkit-box-shadow: @x;
+	   -moz-box-shadow: @x;
+			box-shadow: @x; 
 }
 
 /*********************