Created
November 30, 2015 12:03
-
-
Save cimmanon/a7e8c7623a4bd6bb3769 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
<div |
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.14) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin transparency($opacity){ | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=($opacity * 100))"; | |
filter: alpha(opacity=($opacity * 100)); | |
-moz-opacity: $opacity; | |
-khtml-opacity: $opacity; | |
opacity: $opacity; | |
} | |
.foo { | |
@include transparency(0.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
.foo { | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=($opacity * 100))"; | |
filter: alpha(opacity=50); | |
-moz-opacity: 0.5; | |
-khtml-opacity: 0.5; | |
opacity: 0.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
<div |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment