Permalink
Browse files

changed @colorStop to be unitless

  • Loading branch information...
sankage committed Aug 22, 2011
1 parent e45dbf5 commit 6145fd293141963f9581d741bc0489eb06c276f5
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/preboot.less
View
@@ -249,15 +249,15 @@
background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(@deg, @startColor, @endColor); // The standard
}
- .vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 0.5, @endColor: #c3325f) {
+ .vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
background-color: @endColor;
background-repeat: no-repeat;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
- background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop*100%, @endColor);
- background-image: -moz-linear-gradient(@startColor, @midColor @colorStop*100%, @endColor);
- background-image: -ms-linear-gradient(@startColor, @midColor @colorStop*100%, @endColor);
- background-image: -o-linear-gradient(@startColor, @midColor @colorStop*100%, @endColor);
- background-image: linear-gradient(@startColor, @midColor @colorStop*100%, @endColor);
+ background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
+ background-image: -moz-linear-gradient(@startColor, @midColor @colorStop, @endColor);
+ background-image: -ms-linear-gradient(@startColor, @midColor @colorStop, @endColor);
+ background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
+ background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
}
}

0 comments on commit 6145fd2

Please sign in to comment.