Skip to content

Instantly share code, notes, and snippets.

@bratsun
Created October 11, 2016 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bratsun/0c919820d014bc4c0962eaca20c669bd to your computer and use it in GitHub Desktop.
Save bratsun/0c919820d014bc4c0962eaca20c669bd to your computer and use it in GitHub Desktop.
Radial gradient mixin
@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