postcss-background-alpha
v1.0.3
Published
PostCSS plugin to add gradient filter for IE8 to support rgba background
Downloads
67
Maintainers
Readme
PostCSS background-alpha
PostCSS PostCSS plugin to add gradient filter for IE8 to support rgba background.
/* Input example */
.foo {
background-color: rgba(0,0,0,0.5);
}
/* Output example */
.foo {
background-color: rgba(0,0,0,0.5);
-ms-filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='80000000',EndColorStr = '80000000');
}
Usage
postcss([ require('postcss-background-alpha') ])
See PostCSS docs for examples for your environment.