Created
March 10, 2015 17:14
-
-
Save jaydiablo/e68c7a09b749dd1360ac to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin img-opacity($trans) { | |
filter : alpha(opacity=($trans * 100)); | |
-ms-filter : "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{$trans * 100})"; | |
-moz-opacity : $trans; | |
-khtml-opacity : $trans; | |
opacity : $trans; | |
} | |
img { | |
@include img-opacity(.5); | |
} |
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
img { | |
filter: alpha(opacity=50); | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; | |
-moz-opacity: 0.5; | |
-khtml-opacity: 0.5; | |
opacity: 0.5; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment