rework-math1.0.1 • Public • Published
Do some math in your Rework CSS files.
Of course using rework-vars requires you to run the vars function first.
Rendering the correct units
Just add the unit you want at the end of the function. Like so:
How about Percent?!
Ummm, not ready yet! Right now you will have to divide any number that needs to be a percent by 100. So in the following example you want to know what 33% of 100 is. You need to multiply 100 by 0.33%. We add the
% so that we get the right unit at the end.