postcss-axis
0.1.2 • Public • Published PostCSS Axis
PostCSS plugin which adds shorthands for opposite properties.
.foo {
margin-x: 10px;
padding-y: 10px 20px;
border-x: 1px solid #f00;
border-y-color: #fff;
}
.foo {
margin-left: 10px;
margin-right: 10px;
padding-top: 10px;
padding-bottom: 20px;
border-left: 1px solid #f00;
border-right: 1px solid #f00;
border-top-color: #fff;
border-bottom-color: #fff;
}
Installation
Usage
postcss([ require('postcss-axis') ])
Options
trbl
Type: Boolean
Default: false
Swaps left
and right
values in shorthands according to TRBL model.
See PostCSS docs for examples for your environment.
Package Sidebar
Install
Weekly Downloads