Skip to Main Content
Sass and Compass in Action
book

Sass and Compass in Action

by Natalie Weizenbaum, Chris Eppstein, Brandon Mathis, Wynn Netherland
July 2013
Intermediate to advanced content levelIntermediate to advanced
240 pages
7h 5m
English
Manning Publications
Content preview from Sass and Compass in Action

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Introducing Dart Sass: A Practical Introduction to the Replacement for Sass, Built on Dart

Introducing Dart Sass: A Practical Introduction to the Replacement for Sass, Built on Dart

Alex Libby
Mastering Sass

Mastering Sass

Luke Watts
Jump Start Sass

Jump Start Sass

Hugo Giraudel, Miriam Suzanne

Publisher Resources

ISBN: 9781617290145Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link