{"name":"postcss-nested","version":"5.0.1","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.0"},"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.1","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ZHNSAoHrMtbEzjq+Qs4R0gHijpXc6F1YUv4TGmGaz7rtfMvVJBbu5hMOH+CrhEaljQpEmx5N/P8i1pXTkbVAmg==","shasum":"e7a77f7a806a09c8de0f2c163d8e3d09f00f3139","tarball":"http://registry-npm.ywwl.com/postcss-nested/download/postcss-nested-5.0.1.tgz","fileCount":6,"unpackedSize":13228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfb+IACRA9TVsSAnZWagAAEc0QAJjXmalApFZkz+Zbam8S\nlIISM+r7UuWl0SHKyvYMqJZg/MS4wwogeCYGfr5JUyV4oJXuegRovM60NZKH\n9dx3SMwjJwphakkpQusx7TI479Tkk/19fTIGBM0fT5WGC0AOlDT9daI7bUxQ\n1nY0mz9g4A+7Q485TdzuMX88QI/uKErDqsoVaYBT3zD/u1+9lg0IP7sM88hn\nO4wVqX9PBYLxB4O7XYKVgD8e4g2Da8uqnA2XUoMCX/cO6Cl0z7yRVS952xyM\nX0nzwV96WqHJ4RT/UVD/fFwClXW4sGNM10bMuq3ElESSK/4b4WIU5t3nI+nv\nMJ2PBfnL1+bS934hE4n+3Ju+3hOYwFLHAtlcnkeQATgyRttP2Ko9rY/yumQ4\nQL1qJxcEqT8wcEkcGmDrVJ8tzPfTq/f05oYo0Yq/vVSZdFyxU+DDL0H2XGBV\nXKMtYD97y4uT5Y2+YDRWue+ebFsLT9G2OFy5BQ1P88nsiaaLmk8nuoTESwZi\nXJvVKS4dpV6RT0/pjYnTYewLWHRw9I3nHxnNUJhceXPWDuGXNWKZFb5qr1EQ\nHzQJD+ynVa65fbL1LbYk9vr6RW3dkrSwhAU/D8I3j9kOVEhn8JdynSyuznn2\nynomCKybhLJunIIztKVEtbw8y/8UDBD/UVSpeE1D8Dlq+l7ScLS8XDO93Oz4\nz3lK\r\n=oHr3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGc9k4Q0TsJ32ahDB2rl6krD5NbJzs5SpMcSleZ4QzfZAiEAzyosg+xgU53UUoh8brRcF+SoTdQS1Ml7exnvbcpPkvs="}],"size":4887,"noattachment":false,"key":"/postcss-nested/-/postcss-nested-5.0.1.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-nested_5.0.1_1601167871626_0.7843121145038436"},"_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":1601167871840,"_cnpm_publish_time":1601167871840,"dist-tags":{"latest":"9.0.1"}}