Permalink
Browse files

Allow a ColorStop in horizontal gradients

  • Loading branch information...
1 parent f3fa655 commit 9e414c042e975b504f4837fa9000204081c2b6a3 @jayj committed Oct 12, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 less/mixins.less
View
@@ -245,12 +245,12 @@
// Gradients
// --------------------------------------------------
#gradient {
- .horizontal(@startColor: #555, @endColor: #333) {
+ .horizontal(@startColor: #555, @endColor: #333, @colorStop: 100%) {
background-color: @endColor;
- background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+
- background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
- background-image: linear-gradient(left, @startColor, @endColor); // The standard
+ background-image: -moz-linear-gradient(left, @startColor @colorStop, @endColor); // FF 3.6+
+ background-image: -webkit-linear-gradient(left, @startColor @colorStop, @endColor); // Safari 5.1+, Chrome 10+
+ background-image: -o-linear-gradient(left, @startColor @colorStop, @endColor); // Opera 11.10
+ background-image: linear-gradient(left, @startColor @colorStop, @endColor); // The standard
background-repeat: repeat-x;
}

0 comments on commit 9e414c0

Please sign in to comment.