LESS CSS is cool
LESS is pretty damn cool. I wanted to create a simple star-rating set of styles, so that I could just add different classes to an element and it would output the appropriate graphic.
class=’star-1’ would be a 1 star rating
class=’star-2’ would be a 2 star rating, etc
LESS took care of all the math I needed for the background offset. Pretty neat.
I’d used SASS/SCSS quite a bit, so the concept wasn’t new, but actually seeing LESS perform in a browser with just a JS include was rewarding.
Recent comments