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

Get Sass and Compass in Action now with O’Reilly online learning.

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