0.0.3 • Published 8 years ago

postcss-polygon v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

PostCSS polygon

NPM version Build Status Dependency Status

PostCSS PostCSS plugin that adds clip-path and shape-outside value from clippy.

.foo {
  clip-path: triangle;
  shape-outside: triangle;
}
.foo {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  shape-outside: polygon(50% 0%, 0% 100%, 100% 100%);
}

--

Value

  • triangle
  • trapezoid
  • parallelogram
  • rhombus
  • pentagon
  • hexagon
  • heptagon
  • octagon
  • nonagon
  • decagon
  • bevel
  • rabbet
  • leftArrow
  • rightArrow
  • leftPoint
  • rightPoint
  • leftChevron
  • rightChevron
  • star
  • cross
  • message
  • close
  • frame

--

Usage

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

See PostCSS docs for examples for your environment.

--

License

MIT © zhouwenbin

--

Thanks

clippy