Skip to content

PostCSS plugin adds an empty content property to :before and :after pseudo-elements.

License

Notifications You must be signed in to change notification settings

omgovich/postcss-pseudo-elements-content

Repository files navigation

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.

About

PostCSS plugin adds an empty content property to :before and :after pseudo-elements.

Resources

License

Stars

Watchers

Forks

Packages

No packages published