Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Preface

Acknowledgments

About this Book

About the Authors

About the Cover Illustration

1. Getting acquainted with Sass and Compass

Chapter 1. Sass and Compass make stylesheets fun again

1.1. Getting started with Sass

1.1.1. From CSS to Sass

1.1.2. Think dynamic

1.1.3. Don’t Repeat Yourself

1.2. Hello Sass: DRYing up your stylesheets

1.2.1. Reuse property values with variables

1.2.2. Write long selectors more quickly with nesting

1.2.3. Reuse chunks of style with mixins

1.2.4. Avoid property duplication with selector inheritance

1.3. What is Compass?

1.3.1. The Compass library

1.3.2. Simple stylesheet projects

1.3.3. Community ecosystem

1.4. Create a Compass project

1.5. Solve real-world CSS problems with Compass

1.5.1. Clear the canvas with resets

1.5.2. Create layouts without a calculator

1.5.3. Zebra-stripe like a pro with table helpers

1.5.4. Easy CSS3 without vendor prefixes

1.6. Summary

Chapter 2. Basic Sass syntax

2.1. Working with variables

2.1.1. Declaring

2.1.2. Referencing

2.1.3. Variable names: dashes or underscores?

2.2. Nesting CSS rules

2.2.1. &, the parent selector

2.2.2. Nesting selector groups

2.2.3. Child and sibling combinators: >, +, and ~

2.2.4. Nested properties

2.3. Importing Sass files

2.3.1. Using Sass partials

2.3.2. Default variable values