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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    32
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    32
  • 1.0.1
    2
  • 1.0.0
    2

Package Sidebar

Install

npm i postcss-sides

Weekly Downloads

36

Version

1.0.2

License

none

Last publish

Collaborators

  • arpadhegedus