How can I create a mixin that will work with CSS gradiants?

k3ops

New Member
I have the following in my code:\[code\] background: -moz-linear-gradient( top, white, #e5e5e5 88%, #d8d8d8 ); background: -webkit-gradient( linear, left top, left bottom, from(white), to(#d8d8d8), color-stop(0.88, #e5e5e5) );\[/code\]and \[code\]background: -moz-linear-gradient( top, #8b8b8b, #a9a9a9 10%, #bdbdbd 30%, #bfbfbf);background: -webkit-gradient( linear, left top, left bottom, from(#8b8b8b), to(#bfbfbf), color-stop(0.1, #a9a9a9), color-stop(0.3, #bdbdbd));\[/code\]I would like to implement these as a mixin and use less. However it seems like I would need two mixins for this. Can someone explain how I could do this and whattwo mixins to do this would look like. Sorry if this question is a bit simple butI just started using mixins and I am trying to understand the way to code them.
 
Back
Top