O'Reilly logo

Sass and Compass in Action by Wynn Netherland, Nathan Weizenbaum, Chris Eppstein, and Brandon Mathis

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 9. Scripting with Sass

This chapter covers

  • Manipulating CSS values that Sass understands
  • Using built-in Sass functions for advanced math and color themes
  • Defining your own functions to avoid repetitive calculations
  • Using control directives to create advanced, reusable mixins

In the last chapter. we looked at how to optimize your stylesheets to get the best performance out of the browser. In this chapter, you’ll learn how to optimize Sass for readability and maintainability, and how to write smarter stylesheets that go way beyond the limitations of CSS.

You’ve already learned about the many benefits Sass adds on top of plain CSS. Variables, nested rules, and mixins all help to make CSS less repetitive. Mixins in particular are ...

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