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


Phew! We've covered a lot in this chapter! Let's recap what we learned.

We kicked off with a look at how to create variables in Less, and with care, we used them to good effect in creating our take on the time-honored Polaroid effect on a series of images. We saw how this can be a real timesaver, by reducing the number of alterations required to code, while at the same time, noting that the scope of variables can be varied, and how this can impact our code.

We then moved on to looking at mixins—both the static and parametric varieties. Here, we saw, with a little forethought, that we could create reusable blocks of code that can be dropped in with ease either within our main Less file or a code library file. We used this technique to iteratively alter the code required to build a very simple web form in order to prove that the improvements made will not affect the overall outcome.

Next up, came an introduction to using functions, where we saw that with the use of some simple operators...