Viewing the finished article

Now that we've made the changes to our converted CSS file, let's take a look at the end result. To compare, open a copy of conversion.less from the code download that accompanies the book and see how you got on with making the changes:

Viewing the finished article

Hopefully, you can see some of the changes we've made—Note that we've not necessarily saved on the number of lines we've written, but we've made it easier to update the code in the future, if changes need to be made. Granted that in a small Less file such as this one, we may not see the full benefits of using Less; in a larger file, the benefits will become apparent when converting from ...

Get Learning Less.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.