postcss-hover

PostCSS plugin to remove every :hover selector

Usage no npm install needed!

<script type="module">
  import postcssHover from 'https://cdn.skypack.dev/postcss-hover';
</script>

README

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.