postcss-group

1.0.0 • Public • Published

PostCSS Group

shout to johnie;

postcss-crip的延伸添加了组合简写;

Installation

$ npm install postcss-group --save-dev

Input:

/* Input example */
.crip {
  wh: 100px 100px;
  flc: 12px 20px #000;
}

Output:

/* Output example */
.crip {
  width: 100px;
  height: 100px;
  font-size: 12px;
  line-height: 20px;
  color: #000;
}

Options

(default: {})

var options = {
  'abc': ['a','b','c']
}

var output = postcss(crip(options))
  .process(css)
  .css;

input.css

td { 
  abc: a b c;  
}

output.css

td { 
  a: a;
  b: b;
  c: c;
}

Readme

Keywords

none

Package Sidebar

Install

npm i postcss-group

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

8.82 kB

Total Files

6

Last publish

Collaborators

  • uustoboy