Socket
Book a DemoInstallSign in
Socket

postcss-link-colors

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-link-colors

PostCSS plugin for normal, hover, active, visited, focus link colors

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Helper function for link states

Install

With npm do:

npm install postcss-link-colors --save

Example

var postcss = require('postcss');

var css = 'a{ linkColors: red, blue, green, yellow, purple; }';
console.log(postcss([ require('postcss-link-colors') ]).process(css).css);

// => 'a{ color: red; } a:focus{ color:  purple; } a:active{ color:  yellow; } a:visited{ color:  green; } a:hover{ color:  blue; }'

You can also pass the classes in via opts.classes. See the tests for an example.

Similar projects

Contributing

Pull requests are welcome. If you send a PR or want to maintain the module, I'll grant you repo access and publishing rights for npm.

License

MIT © Steffen Müller

Keywords

postcss

FAQs

Package last updated on 02 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts