postcss-nested 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/index.js +4 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
title="Philosopher’s stone, logo of PostCSS"
|
|
5
5
|
src="https://postcss.org/logo-leftp.svg">
|
|
6
6
|
|
|
7
|
-
[PostCSS] plugin to unwrap nested rules
|
|
7
|
+
[PostCSS] plugin to unwrap nested rules closer to Sass syntax.
|
|
8
8
|
|
|
9
9
|
```css
|
|
10
10
|
.phone {
|
|
@@ -59,8 +59,6 @@ html {
|
|
|
59
59
|
|
|
60
60
|
Related plugins:
|
|
61
61
|
|
|
62
|
-
* Use [`postcss-atroot`] for `@at-root` at-rule to move nested child
|
|
63
|
-
to the CSS root.
|
|
64
62
|
* Use [`postcss-current-selector`] **after** this plugin if you want
|
|
65
63
|
to use current selector in properties or variables values.
|
|
66
64
|
* Use [`postcss-nested-ancestors`] **before** this plugin if you want
|
|
@@ -68,8 +66,7 @@ Related plugins:
|
|
|
68
66
|
|
|
69
67
|
Alternatives:
|
|
70
68
|
|
|
71
|
-
* See also [`postcss-nesting`], which implements [CSSWG draft]
|
|
72
|
-
(requires the `&` and introduces `@nest`).
|
|
69
|
+
* See also [`postcss-nesting`], which implements [CSSWG draft].
|
|
73
70
|
* [`postcss-nested-props`] for nested properties like `font-size`.
|
|
74
71
|
|
|
75
72
|
<a href="https://evilmartians.com/?utm_source=postcss-nested">
|
|
@@ -77,7 +74,6 @@ Alternatives:
|
|
|
77
74
|
alt="Sponsored by Evil Martians" width="236" height="54">
|
|
78
75
|
</a>
|
|
79
76
|
|
|
80
|
-
[`postcss-atroot`]: https://github.com/OEvgeny/postcss-atroot
|
|
81
77
|
[`postcss-current-selector`]: https://github.com/komlev/postcss-current-selector
|
|
82
78
|
[`postcss-nested-ancestors`]: https://github.com/toomuchdesign/postcss-nested-ancestors
|
|
83
79
|
[`postcss-nested-props`]: https://github.com/jedmao/postcss-nested-props
|
|
@@ -87,4 +83,4 @@ Alternatives:
|
|
|
87
83
|
|
|
88
84
|
|
|
89
85
|
## Docs
|
|
90
|
-
Read
|
|
86
|
+
Read full docs **[here](https://github.com/postcss/postcss-nested#readme)**.
|
package/index.js
CHANGED
|
@@ -268,7 +268,10 @@ function normalizeRootRule(rule) {
|
|
|
268
268
|
const hasRootRule = Symbol('hasRootRule')
|
|
269
269
|
|
|
270
270
|
module.exports = (opts = {}) => {
|
|
271
|
-
let bubble = atruleNames(
|
|
271
|
+
let bubble = atruleNames(
|
|
272
|
+
['media', 'supports', 'layer', 'container'],
|
|
273
|
+
opts.bubble
|
|
274
|
+
)
|
|
272
275
|
let atruleChilds = createFnAtruleChilds(bubble)
|
|
273
276
|
let unwrap = atruleNames(
|
|
274
277
|
[
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-nested",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "PostCSS plugin to unwrap nested rules like how Sass does it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postcss",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"postcss": "^8.2.14"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"postcss-selector-parser": "^6.0.
|
|
26
|
+
"postcss-selector-parser": "^6.0.11"
|
|
27
27
|
}
|
|
28
28
|
}
|