79333039

Date: 2025-01-06 12:36:20
Score: 0.5
Natty:
Report link

I ended up with a LESS plugin. less-lib.js:

registerPlugin(
    {
        install: function (less, pluginManager, functions)
        {
            functions.add('rp', function (rpx)
            {
                return new tree.Dimension(rpx.value / 16, 'rem');
            });
        }
    }
)

Using:

@plugin "less-lib";
.my-class
{
    width: rp(20);
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Shtole