postcss-selector-not
PostCSS plugin to transform :not() W3C CSS level 4 pseudo class to :not() CSS level 3 selectors
Last updated 7 years ago by jonathantneal .
MIT · Repository · Bugs · Original npm
$ cnpm install postcss-selector-not 
SYNC missed versions from official npm registry.

postcss-selector-not CSS Standard Status Build Status

PostCSS plugin to transform :not() W3C CSS leve 4 pseudo class to :not() CSS level 3 selectors

http://dev.w3.org/csswg/selectors-4/#negation

Installation

$ npm install postcss-selector-not

Usage

var postcss = require("postcss")

var output = postcss()
  .use(require("postcss-selector-not"))
  .process(require("fs").readFileSync("input.css", "utf8"))
  .css

Using this input.css:

p:not(:first-child, .special) {
  color: red;
}

you will get:

p:not(:first-child):not(.special) {
  color: red;
}

Changelog

License

Current Tags

  • 6.0.1                                ...           latest (3 years ago)

5 Versions

  • 6.0.1                                ...           3 years ago
  • 5.0.0                                ...           5 years ago
  • 3.0.1                                ...           8 years ago
  • 4.0.0                                ...           7 years ago
  • 2.0.0                                ...           10 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org