包详细信息

rework-hex-alpha

ianstormtaylor7.5kMIT1.0.0

Convert hex colors with alpha values into their RGBA equivalents for more browser support.

rework, color, hex, alpha

自述文件

rework-hex-alpha

Convert hex colors with alpha values into their RGBA equivalents for more browser support.

Installation

$ npm install rework-hex-alpha

Example

var hex = require('rework-hex-alpha');

rework(css)
  .use(hex)
  .toString();

API

In your CSS, use 4-digit or 8-digit hex colors with alpha channels as if they were already supported in all browsers:

h2 {
  color: #9d9c;
}

p {
  color: #9823f8a9;
}

License

MIT

更新日志

1.0.0 - March 14, 2013

  • add media query support

0.0.3 - December 17, 2013

  • fix bug matching 6-digit hex colors

0.0.2 - December 16, 2013

  • add slicing logic

0.0.1 - December 15, 2013

:sparkles: