Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add gradient mixin

  • Loading branch information...
commit 422c5413d937665459f421623f20b508b0240a16 1 parent 70c6698
@linus linus authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 mixins/gradient.styl
View
10 mixins/gradient.styl
@@ -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)
+
Please sign in to comment.
Something went wrong with that request. Please try again.