postcss-sides
v1.0.2
Published
A PostCSS Plugin to enable 'null' in margin and padding shorthands
Downloads
139
Readme
A PostCSS plugin to enable 'null' in margin and padding shorthands
Installation
npm install postcss-sides
Example
div {
margin: null auto
}
will produce
div {
margin-left: auto;
margin-right: auto;
}
Usage
Using Gulp.
var gulp = require('gulp'),
postcss = require('gulp-postcss'),
sides = require('postcss-sides');
gulp.task('css', function() {
gulp.src('path/to/dev/css').
.pipe(postcss({
sides
}))
.pipe(gulp.dest('path/to/build/css'));
});
// rest of the gulp file