@mixin background-gradient($from, $to){ background-color: $to; background-repeat: repeat-x; background-image: -khtml-gradient(linear, left top, left bottom, from($from), to($to)); background-image: -moz-linear-gradient(top, $from, $to); background-image: -ms-linear-gradient(top, $from, $to); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $from), color-stop(100%, $to)); background-image: -webkit-linear-gradient(top, $from, $to); background-image: -o-linear-gradient(top, $from, $to); background-image: linear-gradient(top, $from, $to); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$from}, endColorstr=#{$to}, GradientType=0); }