{"name":"postcss-atroot","version":"0.1.2","description":"PostCSS plugin to place rules directly at the root","main":"index.js","repository":{"type":"git","url":"git+https://github.com/OEvgeny/postcss-atroot.git"},"scripts":{"start":"gulp","test":"gulp"},"keywords":["postcss","at-root","postcss-plugin","sass","atroot","css"],"author":{"name":"OEvgeny"},"license":"MIT","devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-eslint":"^1.0.0","gulp-mocha":"^2.1.3","mocha":"^2.3.2","postcss":"^5.0.5"},"gitHead":"d5ffe1b5e21939f051aec7c6d70ef55352edf8b1","bugs":{"url":"https://github.com/OEvgeny/postcss-atroot/issues"},"homepage":"https://github.com/OEvgeny/postcss-atroot#readme","_id":"postcss-atroot@0.1.2","_shasum":"18746e070ad75f91e0f2202d5a40bd2d1fe00a7a","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.7","_npmUser":{"name":"oevgeny","email":"eolonov@gmail.com"},"dist":{"shasum":"18746e070ad75f91e0f2202d5a40bd2d1fe00a7a","tarball":"http://registry-npm.ywwl.com/postcss-atroot/download/postcss-atroot-0.1.2.tgz","integrity":"sha512-a9K1lZXWEeU4TcA7TII+Y8XHdQCYZlOZ0xJzTxIq6ryRz1Ao9OADMXvh8rMhd2gY3Stqo/LYzc4K7NEhg9T9ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgvaCguhBDBFsJY/yZL2Xgc/0Yksi3ZNnp0BqJ0zCoJAiAPbPHFdck9ZxQxqJ9Z+TfbAfpvrLvmtzHeSNurNnYJfw=="}],"size":4103,"noattachment":false,"key":"/postcss-atroot/-/postcss-atroot-0.1.2.tgz"},"maintainers":[{"name":"oevgeny","email":"eolonov@gmail.com"}],"directories":{},"readme":"# PostCSS at-root [![Circle CI](https://circleci.com/gh/OEvgeny/postcss-atroot.svg?style=svg)](https://circleci.com/gh/OEvgeny/postcss-atroot)\nPostCSS plugin to place rules directly at the root node.\n\nThe ``@at-root`` causes one or more rules to be emitted at the root of the document, rather than being nested beneath their parent selectors:\n```css\n.parent {\n  ...\n  @at-root{\n    .child {...}\n  }\n}\n```\nWhich would produce:\n```css\n.child { ... }\n.parent { ... }\n```\n\nIt will play well with postcss ``@include`` plugins.  \nfoo.css:\n```css\n@at-root {\n  @viewport { width: device-width; }\n}\n.foo {\n  color: blue;\n}\n```\n\nbar.css:\n```css\n.bar {\n  @import \"foo.css\";\n}\n\n```\nWill produce:\n```css\n@viewport { width: device-width; }\n\n.bar .foo {\n  color: blue; \n}\n```\n\n## Usage\n\n```js\npostcss([ require('postcss-atroot')() ])\n```\n\nSee [PostCSS] docs for examples for your environment.\n\n[PostCSS]: https://github.com/postcss/postcss\n","publish_time":1442773953983,"_cnpm_publish_time":1442773953983,"dist-tags":{"latest":"0.2.4"}}