JSFiddle - React, Tailwind, and code Playground
by avrelian
HTML
<script src="http://lesscss.googlecode.com/files/less-1.1.3.min.js"></script>
CSS
.foo {
@height: 20px;
@iconHeight: 13px;
background-position: 0 (@height - @iconHeight) / 2;
}
JavaScript
// LESS javascript functions
document.getElementsByTagName('head')[0].getElementsByTagName('style')[0].type = 'text/less';
less.refreshStyles();