Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

PostCSS plugin to add gradient filter for IE8 to support rgba background.

License

Notifications You must be signed in to change notification settings

yangg/postcss-background-alpha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

PostCSS plugin to add gradient filter for IE8 to support rgba background.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages