Loop over an array of name value pairs in LESS

The answer given by @seven-phases-max works very well. For completeness you should also notice that you can do the same in Less without the imported “for” snippet. from lesscss.org In trying to stay as close as possible to the declarative nature of CSS, Less has opted to implement conditional execution via guarded mixins instead of … Read more