{"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"keywords":["postcss","css","postcss-plugin","sass","nested"],"dist-tags":{"latest":"1.0.1"},"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"description":"PostCSS plugin to unwrap nested rules like how Sass does it.","readme":"# PostCSS Nested [![Build Status][ci-img]][ci]\n\n<img align=\"right\" width=\"135\" height=\"95\"\n     title=\"Philosopher’s stone, logo of PostCSS\"\n     src=\"http://postcss.github.io/postcss/logo-leftp.svg\">\n\n[PostCSS] plugin to unwrap nested rules like how Sass does it.\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\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\nUse [postcss-current-selector] **after** this plugin if you want to use current selector in properties or variables values.\n\nUse [postcss-nested-ancestors] **before** this plugin if you want to reference any ancestor element directly in your selectors with `^&`.\n\nSee also [postcss-nesting], which implements [Tab Atkin's proposed syntax](https://tabatkins.github.io/specs/css-nesting/) (requires the `&` and introduces `@nest`).\n\nThere is also [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\" 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/jonathantneal/postcss-nesting\n[PostCSS]:                  https://github.com/postcss/postcss\n[ci-img]:                   https://travis-ci.org/postcss/postcss-nested.svg\n[ci]:                       https://travis-ci.org/postcss/postcss-nested\n\n## Usage\n\n```js\npostcss([ require('postcss-nested') ])\n```\n\nSee [PostCSS] docs for examples for your environment.\n\n## Options\n\n### `bubble`\n\nBy default, plugin will unwrap only `@media`, `@supports` and `@document`\nat-rules. You can add your custom at-rules to this list by `bubble` option:\n\n```js\npostcss([ require('postcss-nested')({ bubble: ['phone'] }) ]\n```\n","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-nested.git"},"users":{"denji":true,"brecht":true,"runningtalus":true,"jmsherry":true,"danielbayley":true,"sfi0zy":true},"bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"license":"MIT","versions":{"0.1.0":{"name":"postcss-nested","version":"0.1.0","description":"PostCSS plugin to unwrap nested rules like it Sass does","keywords":["postcss","sass","css","nested"],"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-nested.git"},"peerDependencies":{"postcss":"^3.0.0"},"devDependencies":{"jshint-stylish":"1.0.0","gulp-jshint":"1.9.0","gulp-mocha":"1.1.1","postcss":"3.0.0","mocha":"2.0.1","chai":"1.10.0","gulp":"3.8.10"},"scripts":{"test":"gulp"},"gitHead":"374c234479c97a3f8e5447392d08c042fa97d329","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested","_id":"postcss-nested@0.1.0","_shasum":"024f7a61cec1df3cea3eaa540a2c16e5453a62b3","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"dist":{"shasum":"024f7a61cec1df3cea3eaa540a2c16e5453a62b3","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/postcss-nested/-/postcss-nested-0.1.0.tgz"},"directories":{}},"0.2.0":{"name":"postcss-nested","version":"0.2.0","description":"PostCSS plugin to unwrap nested rules like it Sass does","keywords":["postcss","sass","css","nested"],"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-nested.git"},"peerDependencies":{"postcss":"^4.0.0"},"devDependencies":{"jshint-stylish":"1.0.0","gulp-jshint":"1.9.0","gulp-mocha":"2.0.0","postcss":"4.0.0","mocha":"2.1.0","chai":"1.10.0","gulp":"3.8.10"},"scripts":{"test":"gulp"},"gitHead":"11f8c3f405700faa5d06982e354d6b46075aa100","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested","_id":"postcss-nested@0.2.0","_shasum":"dfb320a97b797307861e5eef4defeec9ca307b1f","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"dist":{"shasum":"dfb320a97b797307861e5eef4defeec9ca307b1f","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/postcss-nested/-/postcss-nested-0.2.0.tgz"},"directories":{}},"0.2.1":{"name":"postcss-nested","version":"0.2.1","description":"PostCSS plugin to unwrap nested rules like how Sass does it.","keywords":["postcss","sass","css","nested"],"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-nested.git"},"peerDependencies":{"postcss":"^4.0.0"},"devDependencies":{"jshint-stylish":"1.0.0","gulp-jshint":"1.9.1","gulp-mocha":"2.0.0","postcss":"4.0.3","mocha":"2.1.0","chai":"1.10.0","gulp":"3.8.10"},"scripts":{"test":"gulp"},"gitHead":"74a157afdc40ac7ccdafe03569a826d0bc56de78","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested","_id":"postcss-nested@0.2.1","_shasum":"485fe7e073e59216bb079a24b12b169a55b1a9ee","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.33","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"dist":{"shasum":"485fe7e073e59216bb079a24b12b169a55b1a9ee","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/postcss-nested/-/postcss-nested-0.2.1.tgz"},"directories":{}},"0.2.2":{"name":"postcss-nested","version":"0.2.2","description":"PostCSS plugin to unwrap nested rules like how Sass does it.","keywords":["postcss","sass","css","nested"],"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-nested.git"},"peerDependencies":{"postcss":"^4.0.0"},"devDependencies":{"jshint-stylish":"1.0.0","gulp-jshint":"1.9.2","gulp-mocha":"2.0.0","postcss":"4.0.3","mocha":"2.1.0","chai":"1.10.0","gulp":"3.8.10"},"scripts":{"test":"gulp"},"gitHead":"0174644f3df9fb9a3cfc68d8f19376f0a554a9b8","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested","_id":"postcss-nested@0.2.2","_shasum":"9d4b4a071df876d3d46440adb04be183d2022616","_from":".","_npmVersion":"2.6.0","_nodeVersion":"1.3.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"dist":{"shasum":"9d4b4a071df876d3d46440adb04be183d2022616","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/postcss-nested/-/postcss-nested-0.2.2.tgz"},"directories":{}},"0.3.0":{"name":"postcss-nested","version":"0.3.0","description":"PostCSS plugin to unwrap nested rules like how Sass does it.","keywords":["postcss","sass","css","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":"^4.1.9"},"devDependencies":{"gulp-eslint":"0.11.1","gulp-mocha":"2.0.1","mocha":"2.2.4","chai":"2.3.0","gulp":"3.8.11"},"scripts":{"test":"gulp"},"gitHead":"8f4570946b180451fc3e6e37678f731cf8b09e5e","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested#readme","_id":"postcss-nested@0.3.0","_shasum":"796e0737584a91e765d3710e8b291e6e85414c7a","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"dist":{"shasum":"796e0737584a91e765d3710e8b291e6e85414c7a","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/postcss-nested/-/postcss-nested-0.3.0.tgz"},"directories":{}},"0.3.1":{"name":"postcss-nested","version":"0.3.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"},"dependencies":{"postcss":"^4.1.9"},"devDependencies":{"gulp-eslint":"0.11.1","gulp-mocha":"2.0.1","mocha":"2.2.4","chai":"2.3.0","gulp":"3.8.11"},"scripts":{"test":"gulp"},"gitHead":"3625c60c9bd4e0127d9f088d96e7587f397da30e","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested#readme","_id":"postcss-nested@0.3.1","_shasum":"f995a243d089c9c42170b249abb3438f69cfcc94","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"dist":{"shasum":"f995a243d089c9c42170b249abb3438f69cfcc94","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/postcss-nested/-/postcss-nested-0.3.1.tgz"},"directories":{}},"0.3.2":{"name":"postcss-nested","version":"0.3.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":"^4.1.11"},"devDependencies":{"gulp-eslint":"0.12.0","gulp-mocha":"2.1.0","mocha":"2.2.5","chai":"2.3.0","gulp":"3.8.11"},"scripts":{"test":"gulp"},"gitHead":"4c1d6c6fff7d4811cf3239043bc4baa0a8a8910c","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested#readme","_id":"postcss-nested@0.3.2","_shasum":"9cae9b54b0a1824cbfa0c13699d4f21afc3b0e3d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"2.1.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"dist":{"shasum":"9cae9b54b0a1824cbfa0c13699d4f21afc3b0e3d","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/postcss-nested/-/postcss-nested-0.3.2.tgz"},"directories":{}},"1.0.0":{"name":"postcss-nested","version":"1.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":"^5.0.2"},"devDependencies":{"gulp-eslint":"1.0.0","gulp-mocha":"2.1.3","mocha":"2.2.5","chai":"3.2.0","gulp":"3.9.0"},"scripts":{"test":"gulp"},"gitHead":"97840af712bbb0a5bba191d56ffbee3657b12716","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested#readme","_id":"postcss-nested@1.0.0","_shasum":"d136bd4b576bd5632df142c12b2198a9ccf794df","_from":".","_npmVersion":"2.13.0","_nodeVersion":"2.4.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"shasum":"d136bd4b576bd5632df142c12b2198a9ccf794df","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/postcss-nested/-/postcss-nested-1.0.0.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"directories":{}},"1.0.1":{"name":"postcss-nested","version":"1.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"},"dependencies":{"postcss":"^5.2.17"},"devDependencies":{"eslint":"^3.12.2","eslint-config-postcss":"^2.0.2","jest":"^18.0.0"},"scripts":{"test":"jest && eslint *.js"},"eslintConfig":{"extends":"eslint-config-postcss/es5","env":{"jest":true}},"gitHead":"31ddb3aed9a8d95a0a28f431e594ca6f7dfa6a7a","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"homepage":"https://github.com/postcss/postcss-nested#readme","_id":"postcss-nested@1.0.1","_shasum":"91f28f4e6e23d567241ac154558a0cfab4cc0d8f","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"shasum":"91f28f4e6e23d567241ac154558a0cfab4cc0d8f","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/postcss-nested/-/postcss-nested-1.0.1.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postcss-nested-1.0.1.tgz_1492127851413_0.15649669291451573"},"directories":{}}},"name":"postcss-nested","time":{"modified":"2017-04-13T23:57:33.327Z","created":"2014-11-11T22:26:54.575Z","0.1.0":"2014-11-11T22:26:54.575Z","0.2.0":"2014-12-30T12:47:32.445Z","0.2.1":"2015-02-02T13:28:22.758Z","0.2.2":"2015-02-25T18:40:07.159Z","0.3.0":"2015-05-09T00:28:50.189Z","0.3.1":"2015-05-09T00:36:17.974Z","0.3.2":"2015-05-29T17:15:22.160Z","1.0.0":"2015-08-23T21:42:32.458Z","1.0.1":"2017-04-13T23:57:33.327Z"},"readmeFilename":"README.md","homepage":"https://github.com/postcss/postcss-nested#readme"}