# postcss-simple-reset

> postcss-simple-reset is a postcss plugin to help you to reset your css via at-rules.

Latest version **1.1.2** (published 2017-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-simple-reset
pnpm add postcss-simple-reset
yarn add postcss-simple-reset
bun add postcss-simple-reset
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2017-10-23 |
| First published | 2017-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | moocss |

## Links

- npm: https://www.npmjs.com/package/postcss-simple-reset
- Repository: https://github.com/thoughtbit/postcss-simple-reset
- Homepage: https://github.com/thoughtbit/postcss-simple-reset#readme
- Issues: https://github.com/thoughtbit/postcss-simple-reset/issues
- npm.io page: https://npm.io/package/postcss-simple-reset

## Dependencies (5)

- [humps](https://npm.io/package/humps.md) ^1.1.0
- [postcss](https://npm.io/package/postcss.md) ^6.0.13
- [lodash.toarray](https://npm.io/package/lodash.toarray.md) ^4.4.0
- [postcss-value-parser](https://npm.io/package/postcss-value-parser.md) ^3.3.0
- [postcss-discard-comments](https://npm.io/package/postcss-discard-comments.md) ^2.0.4

## Recent versions

- 1.1.2 (latest) — 2017-10-23
- 1.1.1 — 2017-10-19
- 1.1.0 — 2017-10-06
- 1.0.5 — 2017-10-06
- 1.0.4 — 2017-10-05
- 1.0.3 — 2017-10-05
- 1.0.2 — 2017-10-05
- 1.0.1 — 2017-10-05

## README

# PostCSS Simple Reset

PostCSS plugin to help you to reset your css via at-rules.

## Syntax

### reset-global

*reset style is dependent on [normalize.css] and combined with best practice.*

`@reset global([pc|mobile])`;


### reset-nested
`@reset nested([tabel|tabel-cell|list|font|boxModel])`;

```css
/* before */
.table {
  @reset nested('table');
  color: #fff;
}

td, th {
  background-color: #fff;
  @reset nested('table-cell');
}

ul, ol {
  @reset nested('list');
}

.regular-font {
  @reset nested('font');
}

.box {
  @reset nested('boxModel');
}

/* after */
.table {
  border-collapse: collapse;
  border-spacing: 0;
  vertical-align: middle;
  color: #fff;
}

td, th {
  background-color: #fff;
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.regular-font {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.box {
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
}
```

## 参考

- https://github.com/baiyaaaaa/postcss-css-reset
- https://github.com/ismamz/postcss-utilities

---
_Source: https://npm.io/package/postcss-simple-reset · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
