Project files

This commit is contained in:
2023-11-09 18:47:11 +01:00
parent 695abe054b
commit c415135aae
8554 changed files with 858111 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
# 5.0.0 - 2021-01-31
- Added: Support for PostCSS v8.
# 4.0.1 - 2020-12-18
- Fixed: error when attribute selector containing :not ([#17](https://github.com/postcss/postcss-selector-not/pull/17))
# 4.0.0 - 2018-09-17
- Added: compatibility with postcss v7.x
- Added: compatibility with node v6.x
# 3.0.1 - 2017-05-15
- Fixed: incorrect export ([#8](https://github.com/postcss/postcss-selector-not/issues/8))
# 3.0.0 - 2017-05-11
- Added: compatibility with postcss v6.x
# 2.0.0 - 2015-08-25
- Removed: compatibility with postcss v4.x
- Added: compatibility with postcss v5.x
# 1.2.1 - 2015-06-16
- Fixed: selector was updated as an array, which is wrong.
# 1.2.0 - 2015-06-16
- Fixed: spec has been previously misinterpreted and now transform correctly
`:not()` level 4 to collapsed level 3
([#1](https://github.com/postcss/postcss-selector-not/issues/1))
- Removed: `lineBreak` option (useless now)
# 1.1.0 - 2015-06-13
- Added: `lineBreak` option
# 1.0.2 - 2015-06-13
- Fixed: support of pseudo classes that use parenthesis
# 1.0.1 - 2015-04-30
- Fixed: the module now works in non babel environments
# 1.0.0 - 2015-04-30
✨ First release

View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2017 Maxime Thirouin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,37 @@
# postcss-selector-not [![CSS Standard Status](https://cssdb.org/badge/not-pseudo-class.svg)](https://cssdb.org/#not-pseudo-class) [![Build Status](https://travis-ci.org/postcss/postcss-selector-not.svg?branch=master)](https://travis-ci.org/postcss/postcss-selector-not)
> PostCSS plugin to transform `:not()` W3C CSS level 4 pseudo class to :not() CSS level 3 selectors
http://dev.w3.org/csswg/selectors-4/#negation
[!['Can I use' table](https://caniuse.bitsofco.de/image/css-not-sel-list.png)](https://caniuse.com/#feat=css-not-sel-list)
## Installation
```console
$ npm install postcss postcss-selector-not
```
## Usage
Using this `input.css`:
```css
p:not(:first-child, .special) {
color: red;
}
```
you will get:
```css
p:not(:first-child):not(.special) {
color: red;
}
```
---
## [Changelog](CHANGELOG.md)
## [License](LICENSE)

View File

@@ -0,0 +1,44 @@
{
"name": "postcss-selector-not",
"version": "5.0.0",
"description": "PostCSS plugin to transform :not() W3C CSS level 4 pseudo class to :not() CSS level 3 selectors",
"keywords": [
"postcss",
"postcss-plugin",
"selectors",
"selector",
"Not"
],
"author": "Maxime Thirouin",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/postcss/postcss-selector-not.git"
},
"main": "dist/index.js",
"files": [
"dist"
],
"dependencies": {
"balanced-match": "^1.0.0"
},
"peerDependencies": {
"postcss": "^8.1.0"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/cli": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@babel/register": "^7.11.5",
"eslint": "^7.9.0",
"postcss": "^8.1.0",
"tape": "^5.0.1"
},
"scripts": {
"lint": "eslint ./src/*.js ./test/*.js",
"tape": "tape -r @babel/register test/*.js",
"test": "npm run lint && npm run babelify && npm run tape",
"babelify": "babel src --out-dir dist",
"prepublishOnly": "npm run babelify"
}
}