{"_id":"postcss-css-reset","_rev":"322099","name":"postcss-css-reset","description":"postcss-css-reset is a postcss plugin to help you to reset your css via at-rules","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"baiyaaaaa","email":"286030975@qq.com"}],"time":{"modified":"2021-06-04T01:28:00.000Z","created":"2016-05-04T02:41:31.178Z","1.0.2":"2016-05-06T05:48:57.387Z","1.0.1":"2016-05-06T04:40:59.013Z","1.0.0":"2016-05-04T02:41:31.178Z"},"users":{"dunstontc":true},"author":{"name":"haiping.zeng@ele.me"},"versions":{"1.0.2":{"name":"postcss-css-reset","version":"1.0.2","description":"postcss-css-reset is a postcss plugin to help you to reset your css via at-rules","main":"lib/index.js","dependencies":{"postcss":"^5.0.19"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.8.0","babel-loader":"^6.2.4","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-1":"^6.5.0","eslint":"^2.3.0","postcss-discard-comments":"^2.0.4","tap-spec":"^4.1.1","tape":"^4.5.0"},"scripts":{"prepublish":"npm run babelify","babelify":"babel src --out-dir lib","lint":"eslint . && jscs .","tape":"tape tests/index.js | tap-spec","test":"npm run tape","build":"npm run babelify"},"babel":{"presets":["babel-preset-es2015","babel-preset-stage-1"],"plugins":["transform-object-assign"]},"author":{"name":"haiping.zeng@ele.me"},"license":"MIT","gitHead":"a2d002f62bae438ee10cd18983312bffb5c21ebf","_id":"postcss-css-reset@1.0.2","_shasum":"769f2d62d3f1f76e2600fb4f79066399bebe2bd8","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"baiyaaaaa","email":"286030975@qq.com"},"dist":{"shasum":"769f2d62d3f1f76e2600fb4f79066399bebe2bd8","size":7413,"noattachment":false,"key":"/postcss-css-reset/-/postcss-css-reset-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-css-reset/download/postcss-css-reset-1.0.2.tgz"},"maintainers":[{"name":"baiyaaaaa","email":"286030975@qq.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/postcss-css-reset-1.0.2.tgz_1462513734575_0.70051249419339"},"directories":{},"publish_time":1462513737387,"_cnpm_publish_time":1462513737387,"_hasShrinkwrap":false},"1.0.1":{"name":"postcss-css-reset","version":"1.0.1","description":"postcss-css-reset is a postcss plugin to help you to reset your css via at-rules","main":"lib/index.js","dependencies":{"postcss":"^5.0.19"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.8.0","babel-loader":"^6.2.4","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-1":"^6.5.0","eslint":"^2.3.0","postcss-discard-comments":"^2.0.4","tap-spec":"^4.1.1","tape":"^4.5.0"},"scripts":{"prepublish":"npm run babelify","babelify":"babel src --out-dir lib","lint":"eslint . && jscs .","tape":"tape tests/index.js | tap-spec","test":"npm run tape","build":"npm run babelify"},"babel":{"presets":["babel-preset-es2015","babel-preset-stage-1"],"plugins":["transform-object-assign"]},"author":{"name":"haiping.zeng@ele.me"},"license":"MIT","gitHead":"4a41344c1254677099e16c0de06cf66f45b403b2","_id":"postcss-css-reset@1.0.1","_shasum":"1e2f24470b06bd5455b267ca8908a7428aad8667","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"baiyaaaaa","email":"286030975@qq.com"},"dist":{"shasum":"1e2f24470b06bd5455b267ca8908a7428aad8667","size":7428,"noattachment":false,"key":"/postcss-css-reset/-/postcss-css-reset-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-css-reset/download/postcss-css-reset-1.0.1.tgz"},"maintainers":[{"name":"baiyaaaaa","email":"286030975@qq.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-css-reset-1.0.1.tgz_1462509658581_0.42154237325303257"},"directories":{},"publish_time":1462509659013,"_cnpm_publish_time":1462509659013,"_hasShrinkwrap":false},"1.0.0":{"name":"postcss-css-reset","version":"1.0.0","description":"postcss-css-reset is a postcss plugin to help you to reset your css via at-rules","main":"lib/index.js","dependencies":{"postcss":"^5.0.19"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.8.0","babel-loader":"^6.2.4","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-1":"^6.5.0","eslint":"^2.3.0","postcss-discard-comments":"^2.0.4","tap-spec":"^4.1.1","tape":"^4.5.0"},"scripts":{"prepublish":"npm run babelify","babelify":"babel src --out-dir lib","lint":"eslint . && jscs .","tape":"tape tests/index.js | tap-spec","test":"npm run tape","build":"npm run babelify"},"babel":{"presets":["babel-preset-es2015","babel-preset-stage-1"],"plugins":["transform-object-assign"]},"author":{"name":"haiping.zeng@ele.me"},"license":"MIT","gitHead":"977eebe968b419c9e05d48195ffa9782ff34b96f","_id":"postcss-css-reset@1.0.0","_shasum":"37da9d39afde072dedf5f15d258f93efeaaec091","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"baiyaaaaa","email":"286030975@qq.com"},"dist":{"shasum":"37da9d39afde072dedf5f15d258f93efeaaec091","size":7352,"noattachment":false,"key":"/postcss-css-reset/-/postcss-css-reset-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-css-reset/download/postcss-css-reset-1.0.0.tgz"},"maintainers":[{"name":"baiyaaaaa","email":"286030975@qq.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-css-reset-1.0.0.tgz_1462329690746_0.800598801812157"},"directories":{},"publish_time":1462329691178,"_cnpm_publish_time":1462329691178,"_hasShrinkwrap":false}},"readme":"# PostCSS css-reset [![Build Status][travis-img]][travis]\n\n[PostCSS] plugin to help you to reset your css via at-rules.\n\n## Syntax\n\n### reset-global\n\n*reset style is dependent on [normalize.css] and combined with best practice.*\n\n`@reset-global: [pc|mobile]`;\n\n```css\n/* before */\n@reset-global pc;\n\n/* after */\nhtml {\n    font-family: sans-serif;\n    -ms-text-size-adjust: 100%;\n    -webkit-text-size-adjust: 100%\n}\nbody {\n    margin: 0\n}\narticle, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {\n    display: block\n}\naudio,\ncanvas,\nprogress,\nvideo {\n    display: inline-block\n}\naudio:not([controls]) {\n    display: none;\n    height: 0\n}\nprogress {\n    vertical-align: baseline\n}\ntemplate, [hidden] {\n    display: none\n}\na {\n    background-color: transparent;\n    -webkit-text-decoration-skip: objects\n}\na:active,\na:hover {\n    outline-width: 0\n}\nabbr[title] {\n    border-bottom: none;\n    text-decoration: underline;\n    text-decoration: underline dotted\n}\nb,\nstrong {\n    font-weight: inherit\n}\nb,\nstrong {\n    font-weight: bolder\n}\ndfn {\n    font-style: italic\n}\nh1 {\n    font-size: 2em;\n    margin: 0.67em 0\n}\nmark {\n    background-color: #ff0;\n    color: #000\n}\nsmall {\n    font-size: 80%\n}\nsub,\nsup {\n    font-size: 75%;\n    line-height: 0;\n    position: relative;\n    vertical-align: baseline\n}\nsub {\n    bottom: -0.25em\n}\nsup {\n    top: -0.5em\n}\nimg {\n    border-style: none\n}\nsvg:not(:root) {\n    overflow: hidden\n}\ncode,\nkbd,\npre,\nsamp {\n    font-family: monospace, monospace;\n    font-size: 1em\n}\nfigure {\n    margin: 1em 40px\n}\nhr {\n    box-sizing: content-box;\n    height: 0;\n    overflow: visible\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n    color: inherit;\n    font: inherit;\n    margin: 0;\n    vertical-align: middle\n}\noptgroup {\n    font-weight: bold\n}\nbutton,\ninput {\n    overflow: visible\n}\nbutton,\nselect {\n    text-transform: none\n}\nbutton, html [type=\"button\"], [type=\"reset\"], [type=\"submit\"] {\n    -webkit-appearance: button\n}\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n    border-style: none;\n    padding: 0\n}\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n    outline: 1px dotted ButtonText\n}\nfieldset {\n    border: 1px solid #c0c0c0;\n    margin: 0 2px;\n    padding: 0.35em 0.625em 0.75em\n}\nlegend {\n    box-sizing: border-box;\n    color: inherit;\n    display: table;\n    max-width: 100%;\n    padding: 0;\n    white-space: normal\n}\ntextarea {\n    overflow: auto;\n    resize: none;\n    vertical-align: top\n}\ninput,\nselect,\ntextarea {\n    outline: 0\n}\n[disabled] {\n    cursor: default\n}\n[type=\"checkbox\"],\n[type=\"radio\"] {\n    box-sizing: border-box;\n    padding: 0\n}\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n    height: auto\n}\n[type=\"search\"] {\n    -webkit-appearance: textfield;\n    outline-offset: -2px\n}\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n    -webkit-appearance: none\n}\ninput::-moz-placeholder,\ntextarea::-moz-placeholder {\n    color: $colorPlaceholder\n}\ninput:-ms-input-placeholder,\ntextarea:-ms-input-placeholder {\n    color: $colorPlaceholder\n}\ninput::-webkit-input-placeholder,\ntextarea::-webkit-input-placeholder {\n    color: $colorPlaceholder\n}\ninput::-ms-clear,\ninput::-ms-reveal {\n    display: none\n}\n::-webkit-file-upload-button {\n    -webkit-appearance: button;\n    font: inherit\n}\ntable {\n    border-collapse: collapse;\n    border-spacing: 0\n}\ntd,\nth {\n    padding: 0\n}\nh1, h2, h3, h4, h5, h6, p, figure, form, blockquote {\n    margin: 0\n}\nul, ol, li, dl, dd {\n    margin: 0;\n    padding: 0\n}\nul, ol {\n    list-style: none outside none\n}\nh1, h2, h3, h4, h5, h6 {\n    font-size: 100%;\n    font-weight: normal\n}\n```\n\n```css\n/* before */\n@reset-global mobile;\n\n/* after */\nhtml {\n    -ms-text-size-adjust: 100%;\n    -webkit-text-size-adjust: 100%;\n    -webkit-tap-highlight-color: transparent;\n    height: 100%\n}\nbody {\n    margin: 0;\n    font-size: 14px;\n    font-family: \"Helvetica Neue\", Helvetica, STHeiTi, Arial, sans-serif\n}\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n    display: block\n}\naudio:not([controls]) {\n    display: none;\n    height: 0\n}\nprogress {\n    vertical-align: baseline\n}\ntemplate, [hidden] {\n    display: none\n}\na {\n    background-color: transparent;\n    -webkit-text-decoration-skip: objects;\n    text-decoration: none\n}\na:active,\na:hover {\n    outline-width: 0\n}\nabbr[title] {\n    text-decoration: underline;\n    text-decoration: underline dotted\n}\nb,\nstrong {\n    font-weight: bolder\n}\ndfn {\n    font-style: italic\n}\nsmall {\n    font-size: 80%\n}\nsub,\nsup {\n    font-size: 75%;\n    line-height: 0;\n    position: relative;\n    vertical-align: baseline\n}\nsup {\n    top: -0.5em\n}\nsub {\n    bottom: -0.25em\n}\nimg {\n    border-style: none\n}\nsvg:not(:root) {\n    overflow: hidden\n}\ncode,\nkbd,\npre,\nsamp {\n    font-family: monospace, monospace;\n    font-size: 1em\n}\npre {\n    overflow: auto;\n    white-space: pre;\n    white-space: pre-wrap;\n    word-wrap: break-word\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n    color: inherit;\n    font: inherit;\n    margin: 0;\n    vertical-align: middle\n}\nbutton, input, input {\n    overflow: visible\n}\nbutton,\nselect {\n    text-transform: none\n}\nbutton, html [type=\"button\"], [type=\"reset\"], [type=\"submit\"] {\n    -webkit-appearance: button\n}\n[disabled] {\n    cursor: default\n}\n[type=\"checkbox\"],\n[type=\"radio\"] {\n    box-sizing: border-box;\n    padding: 0\n}\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n    height: auto\n}\n[type=\"search\"] {\n    -webkit-appearance: textfield;\n    outline-offset: -2px\n}\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n    -webkit-appearance: none\n}\n::-webkit-file-upload-button {\n    -webkit-appearance: button;\n    font: inherit\n}\ntextarea {\n    overflow: auto;\n    resize: none;\n    vertical-align: top\n}\noptgroup {\n    font-weight: bold\n}\ninput,\nselect,\ntextarea {\n    outline: 0\n}\ntextarea,\ninput {\n    -webkit-user-modify: read-write-plaintext-only\n}\ninput::-ms-clear,\ninput::-ms-reveal {\n    display: none\n}\ninput:-ms-input-placeholder,\ntextarea:-ms-input-placeholder {\n    color: inherit;\n    opacity: 0.54\n}\ninput::-webkit-input-placeholder,\ntextarea::-webkit-input-placeholder {\n    color: inherit;\n    opacity: 0.54\n}\ntable {\n    border-collapse: collapse;\n    border-spacing: 0\n}\ntd,\nth {\n    padding: 0\n}\nh1, h2, h3, h4, h5, h6, p, figure, form, blockquote {\n    margin: 0\n}\nul, ol, li, dl, dd {\n    margin: 0;\n    padding: 0\n}\nul, ol {\n    list-style: none outside none\n}\nh1, h2, h3, h4, h5, h6 {\n    font-size: 100%;\n    font-weight: normal;\n    line-height: 2\n}\n* {\n    box-sizing: border-box\n}\n```\n\n### reset-nested\n`@reset-nested: [tabel|tabel-cell|list|font|boxModel]`;\n\n```css\n/* before */\n.table {\n  @reset-nested tabel;\n}\n.table th,\n.table td {\n  @reset-nested tabel-cell;\n}\nul, ol {\n  @reset-nested list;\n}\n.regular-font {\n  @reset-nested font;\n}\n.box {\n  @reset-nested boxModel;\n}\n\n/* after */\n.table {\n  border-collapse: collapse;\n  border-spacing: 0;\n  vertical-align: middle;\n}\n.table th,\n.table td {\n  background-color: #fff;\n  text-align: left;\n  font-weight: normal;\n  vertical-align: middle;\n  margin: 0;\n  padding: 0;\n}\nul, ol {\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n.regular-font {\n  font-family: inherit;\n  font-size: inherit;\n  font-weight: inherit;\n}\n.box {\n  margin: 0;\n  padding: 0;\n  width: auto;\n  height: auto;\n}\n```\n\n## Usage\n\nAdd [Postcss CSS Reset] to your build tool:\n\n```bash\nnpm install postcss-css-reset --save-dev\n```\n\n#### Node\n\n```js\nrequire('postcss-css-reset').process(YOUR_CSS, { /* options */ });\n```\n\n#### PostCSS\n\nAdd [PostCSS] to your build tool:\n\n```bash\nnpm install postcss --save-dev\n```\n\nLoad [Postcss CSS Reset] as a PostCSS plugin:\n\n```js\npostcss([\n  require('postcss-css-reset')({ /* options */ })\n]).process(YOUR_CSS, /* options */);\n```\n\n#### Gulp\n\nAdd [Gulp PostCSS] to your build tool:\n\n```bash\nnpm install gulp-postcss --save-dev\n```\n\nEnable [Postcss CSS Reset] within your Gulpfile:\n\n```js\nvar postcss = require('gulp-postcss');\n\ngulp.task('css', function () {\n  return gulp.src('./src/*.css').pipe(\n    postcss([\n      require('postcss-css-reset')({ /* options */ })\n    ])\n  ).pipe(\n    gulp.dest('.')\n  );\n});\n```\n\n#### Grunt\n\nAdd [Grunt PostCSS] to your build tool:\n\n```bash\nnpm install grunt-postcss --save-dev\n```\n\nEnable [Postcss CSS Reset] within your Gruntfile:\n\n```js\ngrunt.loadNpmTasks('grunt-postcss');\n\ngrunt.initConfig({\n  postcss: {\n    options: {\n      use: [\n        require('postcss-css-reset')({ /* options */ })\n      ]\n    },\n    dist: {\n      src: '*.css'\n    }\n  }\n});\n```\n\n[PostCSS]: https://github.com/postcss/postcss\n[Postcss CSS Reset]: https://github.com/baiyaaaaa/postcss-css-reset\n[travis-img]: https://travis-ci.org/baiyaaaaa/postcss-css-reset.svg\n[travis]: https://travis-ci.org/baiyaaaaa/postcss-css-reset\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n[normalize.css]: https://github.com/necolas/normalize.css/\n","_attachments":{},"license":"MIT"}