Skip to content

Instantly share code, notes, and snippets.

@psyrendust
Created December 10, 2012 22:50
Show Gist options
  • Save psyrendust/4254059 to your computer and use it in GitHub Desktop.
Save psyrendust/4254059 to your computer and use it in GitHub Desktop.
SASS mixins
@mixin opacity($val) {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=" $val * 100 ")"; /* IE 8 */
filter: alpha(opacity= $val * 100); /* IE 5-7 */
-khtml-opacity: $val; /* Safari 1.x (pre WebKit) */
-moz-opacity: $val; /* Firefox < 0.9 */
opacity: $val; /* FF 0.9+, Safari 2+, Chrome 1+, Opera 9+, IE 9+, iOS 3+, Android 2.2+) */
zoom: 1; /* gives the object layout */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment