Forked from szeidler/crossbrowser-transparency.scss
Created
October 22, 2016 05:44
-
-
Save thelebster/4775e7903d17a8ae0d1e6ba1a68d5734 to your computer and use it in GitHub Desktop.
Add's crossbrowser alpha-transparency background-color ability
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
| // Usage: @include transparent(#000, 0.6); | |
| @mixin transparent($color, $alpha) { | |
| $rgba: rgba($color, $alpha); | |
| $ie-hex-str: ie-hex-str($rgba); | |
| background-color: transparent; | |
| background-color: $rgba; | |
| filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$ie-hex-str}, endColorstr=#{$ie-hex-str}); | |
| zoom: 1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment