Shorthand Data
Shorthand Data lets you write shorthand data attribute selectors in CSS.
/* before */ /* after */
Usage
Add Shorthand Data to your build tool:
npm install postcss-short-data --save-dev
Node
;
PostCSS
Add PostCSS to your build tool:
npm install postcss --save-dev
Load Shorthand Data as a PostCSS plugin:
;
Gulp
Add Gulp PostCSS to your build tool:
npm install gulp-postcss --save-dev
Enable Shorthand Data within your Gulpfile:
var postcss = ; gulp;
Grunt
Add Grunt PostCSS to your build tool:
npm install grunt-postcss --save-dev
Enable Shorthand Data within your Gruntfile:
grunt; grunt;