Media()
Media() lets you use the media()
function to assign responsive values to a declaration, following the CSS Media Expressions specification.
/* before */ /* after */ {} {} {}
Usage
Add Media() to your build tool:
npm install postcss-media-fn --save-dev
Node
;
PostCSS
Add PostCSS to your build tool:
npm install postcss --save-dev
Load Media() as a PostCSS plugin:
;
Gulp
Add Gulp PostCSS to your build tool:
npm install gulp-postcss --save-dev
Enable Media() within your Gulpfile:
var postcss = ; gulp;
Grunt
Add Grunt PostCSS to your build tool:
npm install grunt-postcss --save-dev
Enable Media() within your Gruntfile:
grunt; grunt;