PostCSS plugin to add single and double colon peudo selectors
JavaScript CSS
Latest commit d1564a2 Sep 7, 2015 @sventschui sventschui Merge pull request #8 from jonathantneal/update/postcss-5.0
Update to PostCSS 5
Failed to load latest commit information.
test Add first-line & first-letter pseudos. Mar 23, 2015
.gitignore initial commit Dec 5, 2014 Bump version Mar 24, 2015 Update Mar 23, 2015
index.js Update to PostCSS 5 Sep 4, 2015
package.json Update to PostCSS 5 Sep 4, 2015



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 {}


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']