UnNth
UnNth replaces :nth-child
selectors with :first-child
selectors. This can be useful when outputting CSS for older browsers like Internet Explorer 8.
/* before */ /* after */
Usage
Add UnNth to your build tool:
npm install postcss-unnth --save-dev
Node
/* options */ ;
PostCSS
Add PostCSS to your build tool:
npm install postcss --save-dev
Load UnNth as a PostCSS plugin:
;
Gulp
Add Gulp PostCSS to your build tool:
npm install gulp-postcss --save-dev
Enable UnNth within your Gulpfile:
var postcss = ; gulp;
Grunt
Add Grunt PostCSS to your build tool:
npm install grunt-postcss --save-dev
Enable UnNth within your Gruntfile:
grunt; grunt;