File: //opt/code/node_modules/cssnano/node_modules/postcss-zindex/package.json
{
"name": "postcss-zindex",
"version": "2.2.0",
"description": "Reduce z-index values with PostCSS.",
"main": "index.js",
"scripts": {
"lint": "jshint index.js lib/*.js --reporter node_modules/jshint-stylish/stylish.js",
"test": "tape test.js | tap-spec"
},
"files": [
"LICENSE-MIT",
"index.js",
"lib"
],
"keywords": [
"css",
"normalize",
"optimise",
"optimisation",
"postcss",
"postcss-plugin",
"z-index"
],
"license": "MIT",
"dependencies": {
"has": "^1.0.1",
"postcss": "^5.0.4",
"uniqs": "^2.0.0"
},
"devDependencies": {
"jshint": "^2.8.0",
"jshint-stylish": "^2.0.1",
"tap-spec": "^4.1.0",
"tape": "^4.2.0"
},
"homepage": "https://github.com/ben-eb/postcss-zindex",
"author": {
"name": "Ben Briggs",
"email": "beneb.info@gmail.com",
"url": "http://beneb.info"
},
"repository": {
"type": "git",
"url": "git://github.com/ben-eb/postcss-zindex"
},
"readme": "# [postcss][postcss]-zindex [][ci] [][npm] [][deps]\n\n> Reduce z-index values with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-zindex) do:\n\n```\nnpm install postcss-zindex --save\n```\n\n## Example\n\nSometimes, you may introduce z-index values into your CSS that are larger than\nnecessary, in order to improve your understanding of how each stack relates to\nthe others. For example, you might have a modal overlay at `5000` and the dialog\nfor it at `5500` - so that modal classes occupy the `5xxx` space.\n\nBut in production, it is unnecessary to use such large values for z-index where\nsmaller values would suffice. This module will reduce all z-index declarations\nwhilst respecting your original intent; such that the overlay becomes `1` and\nthe dialog becomes `2`. For more examples, see the [tests](test.js).\n\n### Input\n\n```css\n.modal {\n z-index: 5000\n}\n\n.modal-overlay {\n z-index: 5500\n}\n```\n\n### Output\n\n```css\n.modal {\n z-index: 1\n}\n\n.modal-overlay {\n z-index: 2\n}\n```\n\nNote that this module does not attempt to normalize relative z-index values,\nsuch as `-1`; indeed, it will abort immediately when encountering these values\nas it cannot be sure that rebasing mixed positive & negative values will keep\nthe stacking context intact. Be careful with using this module alongside\nJavaScript injected CSS; ideally you should have already extracted all of your\nstacking context into CSS.\n\n## API\n\n### zindex([options])\n\n#### options\n\n##### startIndex\n\nType: `number`\nDefault: `1`\n\nSet this to any other positive integer if you want to override z-indices from\nother sources outside your control. For example if a third party widget has a\nmaximum z-index of `99`, you can set this to `100` and not have to worry about\nstacking conflicts.\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n## Contributing\n\nPull requests are welcome. If you add functionality, then please add unit tests\nto cover it.\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n[ci]: https://travis-ci.org/ben-eb/postcss-zindex\n[deps]: https://gemnasium.com/ben-eb/postcss-zindex\n[npm]: http://badge.fury.io/js/postcss-zindex\n[postcss]: https://github.com/postcss/postcss\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/ben-eb/postcss-zindex/issues"
},
"_id": "postcss-zindex@2.2.0",
"dist": {
"shasum": "789f94d958f9db7f08defef3252da98a8ff1f43b"
},
"_from": "postcss-zindex@^2.0.1",
"_resolved": "http://registry.npmjs.org/postcss-zindex/-/postcss-zindex-2.2.0.tgz"
}