Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @mixin linear-gradient($fromColor, $toColor) {
- background-color: $toColor; /* Fallback Color */
- background-image: -webkit-gradient(linear, left top, left bottom, from($fromColor), to($toColor)); /* Saf4+, Chrome */
- background-image: -webkit-linear-gradient(top, $fromColor, $toColor); /* Chrome 10+, Saf5.1+, iOS 5+ */
- background-image: -moz-linear-gradient(top, $fromColor, $toColor); /* FF3.6 */
- background-image: -ms-linear-gradient(top, $fromColor, $toColor); /* IE10 */
- background-image: -o-linear-gradient(top, $fromColor, $toColor); /* Opera 11.10+ */
- background-image: linear-gradient(top, $fromColor, $toColor);
- filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#{$fromColor}', EndColorStr='#{$toColor}');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement