2.0.1 • Published 5 years ago

postcss-pseudo-elements-content v2.0.1

Weekly downloads
47
License
MIT
Repository
github
Last release
5 years ago

PostCSS Pseudo Elements Content

Build Status npm

PostCSS plugin adds content: '' to :before and :after pseudo-elements.

.foo:before-c {
  display: block;
  width: 10px;
  height: 10px;
}
.bar .baz:after-c {
}
.foo:before {
  display: block;
  width: 10px;
  height: 10px;
  content: '';
}
.bar .baz:after {
  content: '';
}

Usage

postcss([ require('postcss-pseudo-elements-content') ])

See PostCSS docs for examples for your environment.