This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

postcss-verthorz

1.0.0 • Public • Published

PostCSS Verthorz Build Status

PostCSS plugin to add vertical and horizontal spacing shorthand.

Examples

Shorthand vertical and horizontal declarations

.foo {
    padding-vertical: 2rem;
    margin-horizontal: auto;
}
.foo {
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

Shorthand vert and horz declarations

.foo {
    padding-vert: 2rem;
    margin-horz: auto;
}
.foo {
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

Even shorter shorthand declarations

.bar {
    ph: 30px;
    mv: 100px;
}
.bar {
    padding-left: 30px;
    padding-right: 30px;
    margin-top: 100px;
    margin-bottom: 100px;
}

It even supports multiple values!

.baz {
    padding-vert: 10px 15px;
    margin-horz: 15px 21px;
}
.baz {
    padding-top: 10px;
    padding-bottom: 15px;
    margin-left: 15px;
    margin-right: 21px;
}

Usage

postcss([ require('postcss-verthorz') ])

See PostCSS docs for examples for your environment.

Package Sidebar

Install

npm i postcss-verthorz

Weekly Downloads

10

Version

1.0.0

License

MIT

Unpacked Size

5.17 kB

Total Files

6

Last publish

Collaborators

  • davidhemphill