Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // modified linear-gradient mixin (supports ie gradient)
- @mixin simple-linear-gradient($start-color, $end-color, $start: top)
- $start: unquote($start)
- $end: opposite-position($start)
- $color-stops: color-stops($start-color, $end-color)
- @if $experimental-support-for-webkit
- background-image: -webkit-gradient(linear, grad-point($start), grad-point($end), grad-color-stops($color-stops))
- @if $experimental-support-for-mozilla
- background-image: -moz-linear-gradient($start, $color-stops)
- background-image: linear-gradient($start, $color-stops)
- @if $experimental-support-for-microsoft
- $gradient-type: 0
- @if $start == left
- $gradient-type: 1
- $value: unquote("progid:DXImageTransform.Microsoft.Gradient(enabled=true, startColorstr=#{ie-rgba($start-color)}, endColorstr=#{ie-rgba($end-color)}, gradientType=#{$gradient-type})")
- @include experimental(filter, $value, not -moz, not -webkit, not -o, -ms, not -khtml, official)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement