{"name":"postcss-nested","version":"4.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"},"dependencies":{"postcss":"^7.0.2","postcss-selector-parser":"^3.1.1"},"bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested#readme","_id":"postcss-nested@4.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"integrity":"sha512-pO1O4ciVsMb0NUa0Y0PsSsNg7QsVFZmRFMdjkoX1ghmprlz70W+ykZM2RhisTNVVVpTd2ITYX12HMrXVWy2DmA==","shasum":"c5d0f8d04b661d5b4cb041e7f8a668accafdfb4a","tarball":"http://registry-npm.ywwl.com/postcss-nested/download/postcss-nested-4.0.0.tgz","fileCount":5,"unpackedSize":8676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbknLxCRA9TVsSAnZWagAAFR0P/Rjo+dWcERkwWZZ1+XJi\nblRXc9q1kzEGsgh3VdtPZB2ZcCRzTYNzu7bPG4nasNwFbRbHfZGHcm4kiD3q\nmbgsLIRjfXOnmVNRNWCSgnDaOOvafbfzRIKvHezqo7NPYwiuq4rFATFw7xx7\nzK8ExF2n3HKWj6epDvXMDgjQ/3fcBNPqHM82rrKAnBdpGe7/sy1ihpB5IO5a\nYud1tYxZm44GByyfP6Lf8iAp6CHL0cyU2ggS1HkvflNRIlB6BXKAxTNrz6HQ\nwtsNDcS2qtOiRWWtnb9WeEQJ7ABmxnMDr8iCwXDtSwFHLtKH2w0uEStRZ0H+\nyZk3U22O6s8rs8uxft3DZhvNsaEZo50g44dL3u4nv9L7+U1NZm+SM6FE1ehj\n68JLX8pjaCpc/LMj7aEkZ42TYQa3RD6oRap2EDzLrSmwvrzzgto36bQTont+\nxf86xSw+5TBTjp3k7g5lzywjVvBTEKiRQS4/d7FbJc1yNN/TCmZ7kENToakn\nL7mPIPTixVn+W7N2NcVXKTtlYpbtkJg+it6xwZN7PwEpouFNm/kDOucANEVf\nfM99TGgqCjMpRBBC+UfG86beKd/0IJDVUoVbFGSo4CBU+iXGiYB1XRHtLX7c\ncm6gv+FoYeH8Js0gT8YPKseNizvUf3qP2JDnxTNkeljH15taakMjcHsmEd0W\nbgiR\r\n=AiOx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICeq/t+8Nthk26D5EZUkxu+qHrQkYpdZs1b5CAQlhlnWAiAaV4Fi/MCLWLC9FHkPgzQqxG4tyRmOImMvIjjjpkQTMQ=="}],"size":3679,"noattachment":false,"key":"/postcss-nested/-/postcss-nested-4.0.0.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-nested_4.0.0_1536324336566_0.36784019710127147"},"_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":1536324336673,"_cnpm_publish_time":1536324336673,"dist-tags":{"latest":"9.0.1"}}