Summary

Throughout this chapter, we've covered a few concepts that will help further reduce the amount of code you need to write—let's take a moment to recap, before moving onto some more practical areas of using Less in the next chapter.

We began with a look at how you can group or nest styles within Less; we saw how this can help arrange styles visually, to make it easier to manage, but also remove the need to duplicate styles, when referencing child selectors such as those used in building menu systems.

We then moved on and looked at the extend function to inherit or override existing styles, and covered how it works in a similar fashion to mixins, while at the same time, merging together identical styles, to remove the need to have separate ...

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.