liquidlight · GitHub

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.

About

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

Resources

Readme

MIT license

Activity

Custom properties

Stars

14 stars

Watchers

2 watching

Forks

0 forks

Releases

Packages

Used by

Contributors

Languages

Read the original on github.com ↗