{"name":"postcss-nested","version":"5.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":">=10.0"},"peerDependencies":{"postcss":"^8.0.3"},"dependencies":{"postcss-selector-parser":"^6.0.2"},"bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested#readme","_id":"postcss-nested@5.0.0","_nodeVersion":"14.10.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jQVUwMOkDJPHyY1o3bxLErHnxIFsO3yDgdDsL/rjSkUHrWNdtNGhP50O0P+vUjEwPo+ekCRhLXTe8TziARoS0w==","shasum":"0d05bb93578ec42919bdbda7d4eb419d5f58fe07","tarball":"http://registry-npm.ywwl.com/postcss-nested/download/postcss-nested-5.0.0.tgz","fileCount":6,"unpackedSize":13061,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYRhxCRA9TVsSAnZWagAAsDgQAJ407JF8SMhUJYUdec4k\nZTSOsFNtXv0M+0H1oGiTSKEzIzPxCjue+TAtjR9ZWBpEQNArfxLoVVLwBffn\n08Ed9lpcohTiMfeT+hQKiVQIsZ7koe3TZ3/BmEe+3Z6X2OhSYjDQAcMURPNt\nZQL52qFFWzC7UmSzooHi5XQ6tQB+tSkRsKPME6fsKb+LYXHy1qFx+BAXIl7/\nEG7ACmM1zHKR0D/LRzTWp8YQ/SIIusrlfzM9Pdr6kOjeSueW2esPvhejN/zh\nukvnM7nd41zG2Udg18WK68YW01Tzz24L7hKWaymlmi/CzJX/ipfYSEInwZCu\nNsiciOqN2tElz9QvNButUHG2GTcLMMgbZQLf2X+o92HrATKGIt7R+IRJmJm1\njXvZA8hi+4nKm9q9YtVfHeS798HD4yYcpLWOVBSnb/4mxC+FyBcio0tWhjoM\nfbNlxbbhbQ8MYhqtMyYkKWKa83Il/SkPCzowL2jEAcLdhJKGI4Qs6DtydFlW\nKqbWRHNQVHIag7GsjXSTHaXVS3p+toWr3Pr590OsYUFyf7udE8vfAQosZ9xe\nliu8bYvKNnG7d/ToR/7NdOKkezkDKGeEmC9kjTox9vqD5DWlmDsknp2undth\naqnY2Lqi0+FfFY3ALl7K31KPYYvwB1nfG4B2Uya1+ZVd8o+sr2LnwAMMhVMW\nIvaW\r\n=40BJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXkSsdKOHGX6jfivqj4fPTY0GFhy8T6QuzXbkqVJ5tswIhALdFPUz28Crog/yQISfLk9kEGpsh5MuER9OxpYDW3lkS"}],"size":4823,"noattachment":false,"key":"/postcss-nested/-/postcss-nested-5.0.0.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.0_1600198768727_0.7316421015220007"},"_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":1600198768875,"_cnpm_publish_time":1600198768875,"dist-tags":{"latest":"9.0.1"}}