Socket
Socket
Sign inDemoInstall

postcss-selector-not

Package Overview
Dependencies
6
Maintainers
1
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 leve 4 pseudo class to :not() CSS level 3 selectors


Version published
Maintainers
1
Install size
0.987 MB
Created

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 13 Jun 2015

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