rework-calc1.1.0 • Public • Published
npm install rework-calc
As a Rework plugin:
var rework = ;var calc = ;var css = ;
This simply add
calc() support, a feature to do simple calculations. This
can be particularly useful with the rework-vars plugin.
Note: When multiple units are mixed together in the same expression, the
calc() statement is left as is, to fallback to the CSS3 calc feature.
Example (with rework-vars enabled as well):
See unit tests for another example.
Make sure the dev-dependencies are installed, and then run: