/postcss-pseudoelements

PostCSS plugin to add single and double colon peudo selectors

Primary LanguageCSS

postcss-pseudoelements

usage

var pe = require('postcss-pseudoelements');
var postcss = require('postcss');

var processor = postcss(pe(OPTIONS));

console.log(processor.process('a:before {}').css) // outputs: a:before {}
console.log(processor.process('a::before {}').css) // outputs: a:before {}

options

selectors: Array of pseudo-element selectors to rewrite with single and double colons. Note that these values will be used in a regexp without escaping. Defaults to ['before','after','first-letter','first-line']