{"name":"postcss-atroot","version":"0.2.3","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":{"pretest":"eslint index.js test","test":"mocha test/*.js"},"keywords":["postcss","at-root","postcss-plugin","sass","atroot","css"],"author":{"name":"OEvgeny"},"license":"MIT","engines":{"node":">= 10"},"devDependencies":{"chai":"^4.3.4","eslint":"^7.26.0","mocha":"^8.4.0","postcss":"^8.2.15"},"peerDependencies":{"postcss":"^8.2.15"},"gitHead":"69821d1ee99f08c3c911179daba6dff9bc78cdbc","bugs":{"url":"https://github.com/OEvgeny/postcss-atroot/issues"},"homepage":"https://github.com/OEvgeny/postcss-atroot#readme","_id":"postcss-atroot@0.2.3","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-QoqnRy93M/OaV1hq460uDeTfSi1dy+43mPkhRmbFY8YfNiwc3JZ8ju8H4OkfgDNXVOlHL0l8ygWAy3NpttzEXA==","shasum":"c421e7a4454ad56ce94e01d224ff8b4d9c1a0241","tarball":"http://registry-npm.ywwl.com/postcss-atroot/download/postcss-atroot-0.2.3.tgz","fileCount":7,"unpackedSize":9288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq2sxCRA9TVsSAnZWagAARDUP/iSuRYrBVxNzjwCoCE/x\niIwiDoZgyHFq3OYIy6kwjh1QZyHDyjgD0U5aqou7OozR0gbA2lahWMxsh7G7\nVNiB2UymAS8OYrGqh4jHn4YaAogHbg9w3s0PhixDHBBWGoycD5hDjoHHntgW\nofubT9DwrTD4dMBkai2O1s/sf3NWzZj8Yk8lsuUP0Z9ZN/crpg7d/QfgqcKQ\nFGSvAMIer1vaLlQKlGPXv+LSBbBguPNTqcM7AkhZKSrXkrIMOXa4/tombVST\n1/ZEP6fEINRDyDFFSBtct+ovsUrU+feFe0LsaFS1ZQescTS9At0fZgZr9JnM\nhftiMqO5Q0ytHUScDppIexfsYvVdL6o/IJnm9sSDJMCHljMAI3ZBULohmOwl\nkA8LHJmDDsx9rOEVJszSmxADbWRGVjth8VO/E9L1XBZREdlH+gBAFBUdTGbd\nlf4vxIrXzq2e7kw1X8PuzRn+D7z2+qoLsNRW8vFWouqTN0R6HkeOlvx54Q1w\nVPQXiOmgLCs3/I00Xj4VI0FgUZftoYUU7CnyeVFb0i3JfPPsj96yYR/kSsmW\nuCcxewfviqoazE7YcRb+Wd+kndXXtuSjXI1uzvAeEOxkgW7U6BKQ810ve6VA\ndkxkD0m12gFs/q5eVbNWgwK3AocynlIP9U7hAqa+HRokZN19RtYuVeehDFx+\nQpzi\r\n=CGgn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmRQ+LRqo5PAd43W2Dbeze44ea0BC4WJSXRtx8ObfqkwIhAISj0KxUqZIqBB5Cz3q49lM1lCp26LlGbkYeY65UBqI8"}],"size":3822,"noattachment":false,"key":"/postcss-atroot/-/postcss-atroot-0.2.3.tgz"},"_npmUser":{"name":"oevgeny","email":"eolonov@gmail.com"},"directories":{},"maintainers":[{"name":"oevgeny","email":"eolonov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-atroot_0.2.3_1621846832695_0.4808939476557137"},"_hasShrinkwrap":false,"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":1621846832818,"_cnpm_publish_time":1621846832818,"dist-tags":{"latest":"0.2.4"}}