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 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.