Spec compliant CSS calc syntax for sheetify
npm install sheetify-calcA [sheetify][sheetify-url] transform to add support for
W3C-style CSS calc
syntax. Uses [rework-calc][rework-calc] to perform the transformation.
When multiple units are mixed together in the same expression, the calc()
statement is left as is, to fallback to the CSS3 calc feature.
__N.B.__ This is not a polyfill. This transform aims to provide a future-proof way
of using a limited subset of the features provided by native CSS custom media
queries.
bash
npm install sheetify-calc
`Usage
As a sheetify transform:
`js
var calc = require('sheetify-calc');
var sheetify = require('sheetify');sheetify('path/to/my/index.css')
.transform(calc())
.bundle();
``[npm-image]: https://img.shields.io/npm/v/sheetify-calc.svg?style=flat-square
[npm-url]: https://npmjs.org/package/sheetify-calc
[travis-image]: https://img.shields.io/travis/yoshuawuyts/sheetify-calc.svg?style=flat-square
[travis-url]: https://travis-ci.org/yoshuawuyts/sheetify-calc
[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/sheetify-calc.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/yoshuawuyts/sheetify-calc?branch=master
[downloads-image]: http://img.shields.io/npm/dm/sheetify-calc.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/sheetify-calc
[sheetify-url]: https://github.com/requireio/sheetify
[rework-calc]: https://github.com/reworkcss/rework-calc