Created
October 23, 2012 18:45
-
-
Save Ricardo-Diaz/3940721 to your computer and use it in GitHub Desktop.
CSS: Gradients
This file contains hidden or 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
Gradients | |
/* Light Gradient */ | |
.gradient-light-linear { | |
background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0)); | |
} | |
/* Dark Gradient */ | |
.gradient-dark-linear { | |
background-image: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,0)); | |
} | |
/* Light Gradient circle */ | |
.gradient-light-radial { | |
background-image: radial-gradient(center 0, circle farthest-corner, rgba(255,255,255,0.4), rgba(255,255,255,0)); | |
} | |
/* Dark Gradient circle */ | |
.gradient-dark-radial { | |
background-image: radial-gradient(center 0, circle farthest-corner, rgba(0,0,0,0.15), rgba(0,0,0,0)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment