postcss-pseudo-content-insert

0.3.0 • Public • Published

PostCSS Pseudo Content Insert Build Status

PostCSS plugin inserts an empty content block into your :before and :after pseudo elements if it is missing.

Shout-out to omgovich with his postcss plugin, for inspiration and guidance.

.foo:after {
	content: '';
	display: block;
}
.foo:before {
	display: inline-block;
}
.foo:after {
	content: '';
	display: block;
}
.foo:before {
	display: inline-block;
    content: '';
}

Usage

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

See PostCSS docs for examples for your environment.

Dependencies (1)

Dev Dependencies (4)

Package Sidebar

Install

npm i postcss-pseudo-content-insert

Weekly Downloads

47

Version

0.3.0

License

MIT

Last publish

Collaborators

  • mikestreety
  • liquidlightuk