Archives for January 2013

dotless: Base64 encoded SVG gradient backgrounds

Some time back I had to implement background color multi-stop gradients that could be used in IE9 and since linear-gradient is not supported I had to look at SVG-based CSS background-image gradients. There is, however, the small twist that I am using dotless and the colors are supplied by a database so the solution needs […]

How to write a dotless plugin

If you are using dotless you probably know it does more than just port less.js, it also extends it with custom functions like those listed below. rgb(red, green, blue) floor(number) ispercentage(anything) These functions allow you to do powerful server-side computation and use the result within your stylesheet. What might not be so well known is […]