Skip to content

Instantly share code, notes, and snippets.

@mucsher
Last active December 10, 2015 18:38
Show Gist options
  • Save mucsher/4475908 to your computer and use it in GitHub Desktop.
Save mucsher/4475908 to your computer and use it in GitHub Desktop.
Functions Less: Backgroud Opacity Fix ie7
// Background Transparent
@bgOpacity: "../img/bg/opacity/";
#bg-opacity {
.black(@opacity){
background: url(~"@{bgOpacity}black-opacity-@{opacity}.png") repeat 0 0 transprent;
}
.white(@opacity) {
background: url(~"@{bgOpacity}white-opacity-@{opacity}.png") repeat 0 0 transprent;
}
}
#bg-opacity > .black(10);
#bg-opacity > .white(20);
// NOTE: create the image files by path "../img/bg/opacity/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment