Nosy Pinocchio Manners

    postcss-sides

    1.0.2 • Public • Published

    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

    Keywords

    none

    Install

    npm i postcss-sides

    DownloadsWeekly Downloads

    31

    Version

    1.0.2

    License

    none

    Last publish

    Collaborators

    • arpadhegedus