Skip to content

Commit

Permalink
Merge pull request #17 from leighmackay/rgba-background-transparent
Browse files Browse the repository at this point in the history
fixes rgba ms_gradient transparency
  • Loading branch information
imsky committed Jan 23, 2014
2 parents e30506a + cf43ff9 commit 58bbfbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cssfx.js
Expand Up @@ -352,7 +352,7 @@ function props() {
//Color array
var cA = value.match(/rgba\((.*?)\)/)[1].split(",");
var hex = Math.floor(+(str_combo(cA[3])) * 255).toString(16) + rgb2hex(+str_combo(cA[0]), + str_combo(cA[1]), + str_combo(cA[2]));
new_rules.push(ms_gradient.replace("{1}", "#" + hex).replace("{2}", "#" + hex) + ";zoom:1");
new_rules.push("*background:transparent;" + ms_gradient.replace("{1}", "#" + hex).replace("{2}", "#" + hex) + ";zoom:1");
}
break;
default:
Expand Down

0 comments on commit 58bbfbf

Please sign in to comment.