group-css-properties

1.0.2 • Public • Published

Group CSS Properties

shout to johnie;

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

Usage

$ npm install --save group-css-properties
/**
 * Getting Group CSS Properties
 *
 * @return {object} 
 */
 
var CSS = require('group-css-properties');

List of all available css abbreviations

  • faflc: ["family", "font-size", "line-height", "color"],
  • fc: ["font-size", "color"],
  • fcb: ["font-size", "color", "font-weight"],
  • flc: ["font-size", "line-height", "color"],
  • flcb: ["font-size", "line-height", "color", "font-weight"],
  • flh: ["font-size", "line-height", "height"],
  • hflh: ["height", "font-size", "line-height"],
  • hflc: ["height", "font-size", "line-height", "color"],
  • hflcb: ["height", "font-size", "line-height", "color", "font-weight"],
  • hl: ["height", "line-height"],
  • mawh: ["max-width", "max-height"],
  • miwh: ["min-width", "min-height"],
  • mmh: ["min-height", "max-height"],
  • mmw: ["min-width", "max-width"],
  • mlr: ["margin-left", "margin-right"],
  • mtb: ["margin-top", "margin-bottom"],
  • plr: ["padding-left", "padding-right"],
  • ptb: ["padding-top", "padding-bottom"],
  • wh: ["width", "height"],
  • whfl: ["width", "height", "font-size", "line-height"],
  • whflc: ["width", "height", "font-size", "line-height", "color"],
  • whflcb: ["width", "height", "font-size", "line-height", "color", "font-weight"],
  • whl: ["width", "height", "line-height"],
  • wl: ["width", "line-height"]

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.21latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.21
1.0.10
1.0.00

Package Sidebar

Install

npm i group-css-properties

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

4.16 kB

Total Files

5

Last publish

Collaborators

  • uustoboy