forked from daren.hsu/line_push
update
This commit is contained in:
+5
-1
@@ -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
@@ -1,9 +1,11 @@
|
||||
# postcss-selector-not [](https://cssdb.org/#not-pseudo-class) [](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
|
||||
|
||||
[](https://caniuse.com/#feat=css-not-sel-list)
|
||||
|
||||
## Installation
|
||||
|
||||
```console
|
||||
|
||||
+5
@@ -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
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user