Permalink
Browse files

add gradient mixin

  • Loading branch information...
linus committed May 7, 2011
1 parent 70c6698 commit 422c5413d937665459f421623f20b508b0240a16
Showing with 10 additions and 0 deletions.
  1. +10 −0 mixins/gradient.styl
View
@@ -0,0 +1,10 @@
+gradient(direction = 'vertical', from, to, width = 1, height = 100)
+ gradient_image = gradient_image(direction, from, to, width, height)
+ background-image gradient_image
+ background-image gradient_image, -webkit-gradient(linear, left top, left bottom, from(from), to(to))
+ background-image gradient_image, -webkit-linear-gradient(top, from, to)
+ background-image gradient_image, -moz-linear-gradient(top, from, to)
+ background-image gradient_image, -ms-linear-gradient(top, from, to)
+ background-image gradient_image, -o-linear-gradient(top, from, to)
+ background-image gradient_image, linear-gradient(top, from, to)
+

0 comments on commit 422c541

Please sign in to comment.