{"name":"postcss-nested","version":"8.0.0","keywords":["css","nested","postcss","postcss-plugin","sass"],"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.es"},"license":"MIT","_id":"postcss-nested@8.0.0","maintainers":[{"name":"ai","email":"andrey@sitnik.es"}],"homepage":"https://github.com/postcss/postcss-nested#readme","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"dist":{"shasum":"6955f902f3f200c042296f64219dfef2c30e3bbf","tarball":"http://registry-npm.ywwl.com/postcss-nested/download/postcss-nested-8.0.0.tgz","fileCount":5,"integrity":"sha512-4iVyYzSpreefQJO1VLv3x2Eg5PBFDUGckCE9FeXPlyXjjO7QeKFeWYCjXVYEOsqzn4G8t1XqSziTtQfyjBQ3ag==","signatures":[{"sig":"MEUCIGGV5mL583YEGohlUsBzNwcJx/0eQUi8PvyVhf8Khqw4AiEAxR2590IePuGCgAoet9km5JgNOP3cgGGZdihCv80VCIM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-nested@8.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14550,"size":5264,"noattachment":false,"key":"/postcss-nested/-/postcss-nested-8.0.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":"^22.0.0 || ^24.0.0 || >= 26.0.0"},"funding":[{"url":"https://opencollective.com/postcss/","type":"opencollective"},{"url":"https://github.com/sponsors/ai","type":"github"}],"gitHead":"8714c63ace712ce210df2657454c6e6e664f0f91","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"ai","email":"andrey@sitnik.es"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:0bfcee49-cda0-4820-beb5-ef6a4ebfc26a"}},"repository":{"url":"git+https://github.com/postcss/postcss-nested.git","type":"git"},"_npmVersion":"11.17.0","description":"PostCSS plugin to unwrap nested rules like how Sass does it","directories":{},"_nodeVersion":"26.5.0","dependencies":{"postcss-selector-parser":"^7.1.4"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.2.14"},"_npmOperationalInternal":{"tmp":"tmp/postcss-nested_8.0.0_1785331549785_0.09573302984525256","host":"s3://npm-registry-packages-npm-production"},"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---\n\n<img src=\"https://cdn.evilmartians.com/badges/logo-no-label.svg\" alt=\"\" width=\"22\" height=\"16\" />  PostCSS Nested is built by <b><a href=\"https://evilmartians.com/\">Evil Martians</a></b>, an American design and engineering consultancy for <b>developer tools, AI, and cybersecurity startups</b>.\n\n---\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","publish_time":1785331549880,"_cnpm_publish_time":1785331549880,"dist-tags":{"latest":"9.0.1"}}