npm.io
1.0.2 • Published 9 years ago

postcss-direct-reset

Licence
ISC
Version
1.0.2
Deps
2
Vulns
6
Weekly
0

PostCSS Direct Reset Build Status

PostCSS plugin to easy and fast reset elements with reset.css.

If you don't wanna to global reset all css-elements, you can reset elements directly.

Usage

.block {
  @reset(element-selector)
}

Example

.block {
  display: block;
  margin: 1em auto;
}

/* p element */
.block__element {
  @reset('p');
  color: '#f00';
}

Will be processed to:

.block {
  display: block;
  margin: 1em auto;
}

.block__element {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  color: '#f00';
}
Roadmap
  • - insert pseudo-elements if that needs

Keywords