davidtheclark / postcss-pseudoelements

PostCSS plugin to add single and double colon peudo selectors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

PostCSS plugin to add single and double colon peudo selectors


Languages

Language:CSS 51.3%Language:JavaScript 48.7%