{"name":"postcss-nested","version":"6.0.0","description":"PostCSS plugin to unwrap nested rules like how Sass does it","keywords":["postcss","css","postcss-plugin","sass","nested"],"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-nested.git"},"engines":{"node":">=12.0"},"funding":{"type":"opencollective","url":"https://opencollective.com/postcss/"},"peerDependencies":{"postcss":"^8.2.14"},"dependencies":{"postcss-selector-parser":"^6.0.10"},"types":"./index.d.ts","gitHead":"bed7d2664bd97d9384e8f9cdb2f7dc85eba8142c","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested#readme","_id":"postcss-nested@6.0.0","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==","shasum":"1572f1984736578f360cffc7eb7dca69e30d1735","tarball":"http://registry-npm.ywwl.com/postcss-nested/download/postcss-nested-6.0.0.tgz","fileCount":5,"unpackedSize":14122,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCq9Xjf0KqCw+k9xI89ZDJGQJ89K8R6M8TT8i/lpDQXtgIgT0fy4DjCuxsJOkLCbAcilOizaIzXda6Z4tNsdpwLTgc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPw2iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHsg//f94nsdUYTWnbe+Ge537kypK1h0Qv08GGM9gmcwrKqfyOj8Du\r\nx9vgg1jws4O1ynAUErSn3LIylQjUOiuWXcjK8q62c3MA1Y09jSIX50BdsDEu\r\nOfCCxA+Wuup6kPVSkZFdcUEHcC8TDBzw2FPrd8Z/vOMLjIZypVVeU5+TxMpN\r\nWHrxxuO33LwctMeU8UbYoZCwz3T4Bi/EjTM365KHzFenAF9SwVaqAirq6elZ\r\nS0ePsDcUIzkpI7Us1Px7rsqAmpU6zSVic9VU7EKr+Y1+yj53/E/w4NhCY9FZ\r\nhC3Ky+/p24o8xMCDuryr1gZb8lgzNyNec0/iBvrCTLg0DXl0sDQJjMTaU2JW\r\nrSyx8JuvMFsSPl7n4qe1lfIns+xMXUXknxgDu355JJKpMhMjukqi4kq5D2KV\r\njqPRbTx5CjuTuhK4yLAsgRmCmqo7rGB/ySZxUrtx5axjH6xly674hNW5ac2+\r\nbIFhZC96zg7Zsak54PTXi32I64G3bBzT5MunNaygftpfEhjBzEfURUoMlv2s\r\n92uPOYSj/JUHl0wD7Vc7cQq3bHgSBkwAgaMzxRdYoSo49rl8aQKypXluOlOX\r\ngIydwBJVSt0/T1pB7e3R+ytelTz0WljfRqwOslb3mxCw8Y3/4r6OVI8kDwXN\r\ng6Gmdh6+vxil64KrsfoKOU52ALrDOEshZ+k=\r\n=4/OO\r\n-----END PGP SIGNATURE-----\r\n","size":5029,"noattachment":false,"key":"/postcss-nested/-/postcss-nested-6.0.0.tgz"},"_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"directories":{},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-nested_6.0.0_1665076641747_0.8465530075190066"},"_hasShrinkwrap":false,"readme":"# PostCSS Nested\n\n<img align=\"right\" width=\"135\" height=\"95\"\n     title=\"Philosopher’s stone, logo of PostCSS\"\n     src=\"https://postcss.org/logo-leftp.svg\">\n\n[PostCSS] plugin to unwrap nested rules closer to Sass syntax.\n\n```css\n.phone {\n    &_title {\n        width: 500px;\n        @media (max-width: 500px) {\n            width: auto;\n        }\n        body.is_dark & {\n            color: white;\n        }\n    }\n    img {\n        display: block;\n    }\n}\n\n.title {\n  font-size: var(--font);\n\n  @at-root html {\n      --font: 16px\n  }\n}\n```\n\nwill be processed to:\n\n```css\n.phone_title {\n    width: 500px;\n}\n@media (max-width: 500px) {\n    .phone_title {\n        width: auto;\n    }\n}\nbody.is_dark .phone_title {\n    color: white;\n}\n.phone img {\n    display: block;\n}\n\n.title {\n  font-size: var(--font);\n}\nhtml {\n  --font: 16px\n}\n```\n\nRelated plugins:\n\n* Use [`postcss-current-selector`] **after** this plugin if you want\n  to use current selector in properties or variables values.\n* Use [`postcss-nested-ancestors`] **before** this plugin if you want\n  to reference any ancestor element directly in your selectors with `^&`.\n\nAlternatives:\n\n* See also [`postcss-nesting`], which implements [CSSWG draft].\n* [`postcss-nested-props`] for nested properties like `font-size`.\n\n<a href=\"https://evilmartians.com/?utm_source=postcss-nested\">\n  <img src=\"https://evilmartians.com/badges/sponsored-by-evil-martians.svg\"\n       alt=\"Sponsored by Evil Martians\" width=\"236\" height=\"54\">\n</a>\n\n[`postcss-current-selector`]: https://github.com/komlev/postcss-current-selector\n[`postcss-nested-ancestors`]: https://github.com/toomuchdesign/postcss-nested-ancestors\n[`postcss-nested-props`]:     https://github.com/jedmao/postcss-nested-props\n[`postcss-nesting`]:          https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting\n[CSSWG draft]:              https://drafts.csswg.org/css-nesting-1/\n[PostCSS]:                  https://github.com/postcss/postcss\n\n\n## Docs\nRead full docs **[here](https://github.com/postcss/postcss-nested#readme)**.\n","publish_time":1665076641998,"_cnpm_publish_time":1665076641998,"dist-tags":{"latest":"9.0.1"}}