Created
October 11, 2016 10:03
-
-
Save bratsun/0c919820d014bc4c0962eaca20c669bd to your computer and use it in GitHub Desktop.
Radial gradient mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin radial-gradient($from, $to) { | |
background: -moz-radial-gradient(center, circle cover, $from 0%, $to 100%); | |
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, $from), color-stop(100%, $to)); | |
background: -webkit-radial-gradient(center, circle cover, $from 0%, $to 100%); | |
background: -o-radial-gradient(center, circle cover, $from 0%, $to 100%); | |
background: -ms-radial-gradient(center, circle cover, $from 0%, $to 100%); | |
background: radial-gradient(center, circle cover, $from 0%, $to 100%); | |
background-color: $from; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment