postcss-polygon
v0.0.3
Published
PostCSS plugin that adds `clip-path` and `shape-outside` value from [clippy](http://bennettfeely.com/clippy/).
Downloads
3
Maintainers
Readme
PostCSS polygon
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
--