postcss-background-alpha

1.0.3 • Public • Published

PostCSS background-alpha Build Status

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.

Package Sidebar

Install

npm i postcss-background-alpha

Weekly Downloads

20

Version

1.0.3

License

MIT

Last publish

Collaborators

  • brook