Book Image

Learning less.js

Book Image

Learning less.js

Overview of this book

Table of Contents (22 chapters)
Learning Less.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 code blocks for identical styles. We also took a look at the use of the all keyword to help with inheriting of all of the styles, particularly those otherwise not accessible using extend on its own.

We then covered how you group styles and reference...