1.0.2 • Published 7 years ago

postcss-direct-reset v1.0.2

Weekly downloads
8
License
ISC
Repository
github
Last release
7 years ago

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