Skip to content

Instantly share code, notes, and snippets.

@tomleo
Created January 29, 2015 17:10
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 tomleo/f1a6d4df63f6b4f28812 to your computer and use it in GitHub Desktop.
Save tomleo/f1a6d4df63f6b4f28812 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
//Write mixins where the pattern takes variables
@mixin transparent-backgroung($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;
}
.box {
@include transparent-backgroung(black, 0.4);
}
.box {
background-color: transparent;
background-color: rgba(0, 0, 0, 0.4);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#66000000,endColorstr=#66000000);
zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment