Last active
August 24, 2020 16:05
-
-
Save FFKL/1b286ecde44e859c1c151ee90b74bf7f to your computer and use it in GitHub Desktop.
Color overlay with background image. `scale-color` - scss function. `$color` - predefined scss variable
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
div { | |
background: linear-gradient(0deg, scale-color($color, $alpha: -15%), scale-color($color, $alpha: -15%)), url(/assets/images/example.jpg) center / cover; | |
} | |
// or | |
div { | |
box-shadow: inset 0 0 0 200vw scale-color($accent-blue-color, $alpha: -15%); | |
background: url(/assets/images/example.jpg) center / cover; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment