Skip to content

Instantly share code, notes, and snippets.

@aristretto
Created April 23, 2014 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aristretto/11232406 to your computer and use it in GitHub Desktop.
Save aristretto/11232406 to your computer and use it in GitHub Desktop.
sass - mixin - transparent background color with IE support
@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