Permalink
Browse files

Support more vendor specific linear-gradients

  • Loading branch information...
1 parent 1ee110a commit 6ee05b36e9bc2df15eb145acab9da156fbca8d84 Phil LaPier committed Apr 23, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 public/stylesheets/sass/_linear-gradient.scss
@@ -1,5 +1,9 @@
@mixin linear-gradient ($from, $to) {
background: $from;
- background: -moz-linear-gradient(top, $from, $to);
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0, $from), color-stop(1, $to));
-}
+ background: -moz-linear-gradient(top, $from, $to); // FF3.6
+ background: -ms-linear-gradient(top, $from, $to); // IE10
+ background: -o-linear-gradient(top, $from, $to); // Opera 11.10+
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0, $from), color-stop(1, $to)); // Saf4+, Chrome
+ background: -webkit-linear-gradient(top, $from, $to); // Chrome 10+, Saf5.1+
+ background: linear-gradient(top, $from, $to);
+}

0 comments on commit 6ee05b3

Please sign in to comment.