2.0.0 • Published 7 years ago

postcss-nth-child-fix v2.0.0

Weekly downloads
1,262
License
MIT
Repository
github
Last release
7 years ago

PostCSS Nth Child Fix Build Status

PostCSS plugin to fix a known android 4.1 and 4.2 bug with nth-child (safe transformation).

/* input */
.foo:nth-child(n) {
    color: blue;
}

/* output */ 
.foo:nth-child(1n) {
    color: blue;
}

Usage

postcss([ require('postcss-nth-child-fix') ])

See PostCSS docs for examples for your environment.