Socket
Socket
Sign inDemoInstall

postcss-selector-not

Package Overview
Dependencies
10
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    postcss-selector-not

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


Version published
Weekly downloads
5.5M
decreased by-9.51%
Maintainers
3
Install size
1.50 MB
Created
Weekly downloads
 

Readme

Source

postcss-selector-not 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), p:not(.special) {
  color: red;
}

Changelog

License

Keywords

FAQs

Last updated on 15 May 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc