O'Reilly logo

Beginning CSS Preprocessors: With SASS, Compass.js, and Less.js by Anirudh Prabhu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required