gradients-rtl.less 1.6 KB

12345678910111213141516171819202122232425
  1. // RTL Gradients
  2. #gradient {
  3. // Horizontal gradient, from right to left
  4. //
  5. // Creates two color stops, start and end, by specifying a color and position for each color stop.
  6. // Color stops are not available in IE9 and below.
  7. .horizontal(@start-color: #333; @end-color: #555; @start-percent: 0%; @end-percent: 100%) {
  8. background-image: -webkit-linear-gradient(left, color-stop(@start-color @start-percent), color-stop(@end-color @end-percent)); // Safari 5.1-6, Chrome 10+
  9. background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12
  10. background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
  11. background-repeat: repeat-x;
  12. filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down
  13. }
  14. .horizontal-three-colors(@start-color: #c3325f; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #00b3ee) {
  15. background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
  16. background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
  17. background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
  18. background-repeat: no-repeat;
  19. filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
  20. }
  21. }