postcss-hover

0.3.0 • Public • Published

PostCSS Hover Build Status

PostCSS plugin to remove every :hover selector. Attempts to solve this issue for shared styles built separately for different platforms.

.button {
    background: blue;
}
.button:hover {
    background: red;
}
 
// multiline selectors
.link:hover,
.link.selected {
    background: green;
}
.button {
    background: blue;
}
 
.link.selected {
    background: green;
}

Usage

postcss([ require('postcss-hover') ])

See PostCSS docs for examples for your environment.

Package Sidebar

Install

npm i postcss-hover

Weekly Downloads

52

Version

0.3.0

License

MIT

Last publish

Collaborators

  • paulfalgout
  • wesmangum