Browse Source

Update library/less/_mixins.less

Added .boxShadow(none) mixin
Antonino Caccamo 13 năm trước cách đây
mục cha
commit
0d48ab7777
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  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(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;
 	-webkit-box-shadow: @x @y @radius @spread @color;
 	   -moz-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; 
 }
 }
 
 
 /*********************
 /*********************