1.0.2 • Published 7 years ago

postcss-sides v1.0.2

Weekly downloads
58
License
-
Repository
github
Last release
7 years ago

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