Last active
August 29, 2015 14:05
-
-
Save drocarmo/f34a6952478c7ebb8398 to your computer and use it in GitHub Desktop.
Mixin that adds opacity to a HEX value variable in a project
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 background-opacity($color, $opacity: .3) { | |
background: $color; | |
background: rgba($color, $opacity); | |
} | |
// Use case | |
@include background-opacity($color-white, .7); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment