{"name":"postcss-nested","version":"2.1.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"},"dependencies":{"postcss":"^6.0.9","postcss-selector-parser":"^2.2.3"},"devDependencies":{"eslint":"^4.4.1","eslint-config-postcss":"^2.0.2","jest":"^20.0.4"},"jest":{"coverageThreshold":{"global":{"statements":100}}},"scripts":{"test":"jest --coverage && eslint *.js"},"eslintConfig":{"extends":"eslint-config-postcss/es5","env":{"jest":true}},"gitHead":"5c3f183bd823e8f882760b2e7364941d04ad0e04","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested#readme","_id":"postcss-nested@2.1.2","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"integrity":"sha512-CU7KjbFOZSNrbFwrl8+KJHTj29GjCEhL86kCKyvf+k633fc+FQA6IuhGyPze5e+a4O5d2fP7hDlMOlVDXia1Xg==","shasum":"04057281f9631fef684857fb0119bae04ede03c6","tarball":"http://registry-npm.ywwl.com/postcss-nested/download/postcss-nested-2.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhHs3fbn9a/nWwRb3+1JzZmW/YDFE3NcStI7NREm8wlAiBe+L/XAzNA118kZ+09552QXeUDVAqxskn7+QMXXBMW1w=="}],"size":3731,"noattachment":false,"key":"/postcss-nested/-/postcss-nested-2.1.2.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-nested-2.1.2.tgz_1502778349201_0.17728257575072348"},"directories":{},"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":1502778349287,"_cnpm_publish_time":1502778349287,"dist-tags":{"latest":"9.0.1"}}