Book Image

LESS WEB DEVELOPMENT COOKBOOK

Book Image

LESS WEB DEVELOPMENT COOKBOOK

Overview of this book

Table of Contents (19 chapters)
Less Web Development Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 1. Getting to Grips with the Basics of Less

In this chapter, we will cover the following topics:

  • Downloading, installing, and integrating less.js

  • Installing the lessc compiler with npm

  • Using less.js with Rhino

  • Declaring variables with Less for commonly used values

  • Setting the properties of CSS styles with mixins

  • Writing more intuitive code and making inheritance clear with nested rules

  • Creating complex relationships between properties

  • Using the built-in functions of Less

  • Using namespaces to make your code reusable and portable