Last active
August 29, 2015 14:12
-
-
Save zolitch/54b97bb32519dbe7ad78 to your computer and use it in GitHub Desktop.
Background image with overlay in one declaration
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
.darken { | |
background-image: | |
linear-gradient( | |
rgba(0, 0, 0, 0.5), | |
rgba(0, 0, 0, 0.5) | |
), | |
url(image.jpg); | |
} | |
/* | |
Also see: http://dabblet.com/gist/a8be0d5d5731023f9c1a for color blend option. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment