rework-plugin-function
function() plugin for rework, formerly included in core
Add user-defined CSS functions.
For example create black(0.5)
shortcut, to replace
long rgba(0, 0, 0, 0.5)
.
var rework = var reworkFunction = ; var css = { return 'rgba(0, 0, 0, ' + opacity + ')';}
User code will receive CSS arguments and replace user-defined function by returned code.
yields:
Nested functions works well too:
var css =
Would yield: