postcss-pseudo-elements-content

2.0.1 • Public • Published

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.

Package Sidebar

Install

npm i postcss-pseudo-elements-content

Weekly Downloads

51

Version

2.0.1

License

MIT

Unpacked Size

4.51 kB

Total Files

6

Last publish

Collaborators

  • omgovich