This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
# 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
@@ -5,7 +9,7 @@
# 3.0.1 - 2017-05-15
- Fixed: incorrect export ([#69](https://github.com/postcss/postcss-selector-not/issues/8))
- Fixed: incorrect export ([#8](https://github.com/postcss/postcss-selector-not/issues/8))
# 3.0.0 - 2017-05-11
+3 -1
View File
@@ -1,9 +1,11 @@
# 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 leve 4 pseudo class to :not() CSS level 3 selectors
> 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
+5
View File
@@ -23,6 +23,11 @@ function explodeSelector(pseudoClass, selector) {
if (selector && position > -1) {
var pre = selector.slice(0, position);
var matches = (0, _balancedMatch2.default)("(", ")", selector.slice(position));
if (!matches) {
return selector;
}
var bodySelectors = matches.body ? _list2.default.comma(matches.body).map(function (s) {
return explodeSelector(pseudoClass, s);
}).join(`)${pseudoClass}(`) : "";
+12 -12
View File
@@ -1,32 +1,32 @@
{
"_args": [
[
"postcss-selector-not@4.0.0",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"postcss-selector-not@4.0.1",
"/home/node/nuxt"
]
],
"_from": "postcss-selector-not@4.0.0",
"_id": "postcss-selector-not@4.0.0",
"_from": "postcss-selector-not@4.0.1",
"_id": "postcss-selector-not@4.0.1",
"_inBundle": false,
"_integrity": "sha512-W+bkBZRhqJaYN8XAnbbZPLWMvZD1wKTu0UxtFKdhtGjWYmxhkUneoeOhRJKdAE5V7ZTlnbHfCR+6bNwK9e1dTQ==",
"_integrity": "sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==",
"_location": "/postcss-selector-not",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "postcss-selector-not@4.0.0",
"raw": "postcss-selector-not@4.0.1",
"name": "postcss-selector-not",
"escapedName": "postcss-selector-not",
"rawSpec": "4.0.0",
"rawSpec": "4.0.1",
"saveSpec": null,
"fetchSpec": "4.0.0"
"fetchSpec": "4.0.1"
},
"_requiredBy": [
"/postcss-preset-env"
],
"_resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.0.tgz",
"_spec": "4.0.0",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.1.tgz",
"_spec": "4.0.1",
"_where": "/home/node/nuxt",
"author": {
"name": "Maxime Thirouin"
},
@@ -71,5 +71,5 @@
"tape": "tape -r babel-register test/*.js",
"test": "npm run lint && npm run babelify && npm run tape"
},
"version": "4.0.0"
"version": "4.0.1"
}