{"name":"postcss-nested","version":"5.0.2","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":">=10.0"},"funding":{"type":"opencollective","url":"https://opencollective.com/postcss/"},"peerDependencies":{"postcss":"^8.1.5"},"dependencies":{"postcss-selector-parser":"^6.0.4"},"bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested#readme","_id":"postcss-nested@5.0.2","_nodeVersion":"15.2.1","_npmVersion":"7.0.8","dist":{"integrity":"sha512-ddUGffzocy13jyKzl172kd7IY3puSbGLYDh2UgryYoQWHcpHkOecR6lDnIMgnu+TRVOPajIBqIX9si8a2oRfNg==","shasum":"0a5b3865c86435bf0e0bf26d05ac53ba5b9597b9","tarball":"http://registry-npm.ywwl.com/postcss-nested/download/postcss-nested-5.0.2.tgz","fileCount":6,"unpackedSize":13172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyFoACRA9TVsSAnZWagAAWLkP/j0/PrAbnEJRP30cr7qW\nGXPCQbNu40m18TtBnho92wSfkK0QImq4H2WuKY6264tgK5KzLm6BBlP+ooNU\nyN8/FluxPsn5HY8HwAFFw1ZFju8j/zppVL8dQkiVqdloq1lsM6NW7G6qCnCW\njkDHNw9xnDO8csUKUM604c1ssLCcJopVnhDFx1T9hjdZ4wrgfo3xqzTbs7K5\niHa9AvxnVPym6xjQEcpjKjWB/g3NW4wlgWwo7wgvozpEc3x1gE99s1fiuTI2\n3oPyPBXt+7G1uzgNWoWySNBmKAYWedVO0kZ8Zc8e/NfFpyrtjBr41Ni8CNWa\nSh2nI02GiWko1JTlhzTk6q5dL65En9bLk9pjAaMHJPcOLQ6zxKBJnuRR0sIR\n4s4LM3V5EmlIeDDLyHu/Wpo0OfeoCB22wKTWEU0CkK2jmWb1Ys4z3MxmFZxF\nA8Si2taEpU7Ypw+UIIg5slNav/2yS+oFI4/NI6ezVu112b5AoG4xF/6PWsCO\nuAe56Ns3upBX3pbQdMbyG2UcS4T54Wg49kUecVVxCa2NwMioYAeMJV4ivjC5\ntZ4aCxmME9l6LR/jRt6c0Qqxq3OGPOOascBekuIbbxb3FPzJCWZAS86MfsC2\nnQtOf+tnfjWzN3X+44q8Mnxo4OGNIjNMIg05uQrfrz2zh6PpLnUq6yjFuwq1\nAab2\r\n=O4h8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/1Y2PJiIYpyLyItEoxPHpDZ6KAEMb5P0Ug8jdtEUyVAiEAuj5HoOrcnCOXYEuvTvyF/DisvSB0vX8X7K8fuNkZyQw="}],"size":4884,"noattachment":false,"key":"/postcss-nested/-/postcss-nested-5.0.2.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_5.0.2_1606965760440_0.7109301324074198"},"_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":1606965760604,"_cnpm_publish_time":1606965760604,"dist-tags":{"latest":"9.0.1"}}