postcss-negative-padding

0.0.7 • Public • Published

PostCSS Negative Padding PostCSS Logo

NPM Version Linux Build Status Windows Build Status Gitter Chat

A PostCSS plugin which lets you use negative values within the padding property and creates appropriate negative margins to match.

Usage

Example:

div {
    padding: -20px;
}

Outputs:

div {
    padding-top: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    margin-top: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    margin-left: -20px;
}

Setup

npm install postcss-negative-padding --save-dev

Package Sidebar

Install

npm i postcss-negative-padding

Weekly Downloads

2

Version

0.0.7

License

CC0-1.0

Unpacked Size

14.1 kB

Total Files

6

Last publish

Collaborators

  • limitlessloop