CHAPTER 4

image

Development with Less

In the previous chapter, you looked into various things you can do with Sass, including various techniques like mixins. In this chapter, you will look into another preprocessor framework that’s equally famous, named Less.

This chapter explores the following aspects of Less:

  • Client and server-side variation of less
  • Language features
  • Nested rules
  • Import directives
  • Mixin guards
  • Referencing the parent selector
  • Using & with guards
  • Detached rules
  • Merging properties
  • Looping mixins
  • Functions

Introduction to Less

Less is a preprocessor language that gets compiled into CSS. It was created by Alexis Sellier. Less is along the lines ...

Get Beginning CSS Preprocessors: With SASS, Compass.js, and Less.js now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.