Book Image

Sass and Compass Designer's Cookbook

By : Bass Jobsen, Stuart Robson
Book Image

Sass and Compass Designer's Cookbook

By: Bass Jobsen, Stuart Robson

Overview of this book

Sass and Compass Designer's Cookbook helps you to get most out of CSS3 and harness its benefits to create engaging and receptive applications. This book will help you develop faster and reduce the maintenance time for your web development projects by using Sass and Compass. You will learn how to use with CSS frameworks such as Bootstrap and Foundation and understand how to use other libraries of pre-built mixins. You will also learn setting up a development environment with Gulp. This book guides you through all the concepts and gives you practical examples for full understanding.
Table of Contents (23 chapters)
Sass and Compass Designer's Cookbook
About the Author
About the Reviewers

Using Compass Layout Module

In this last recipe, you can read about the Compass Layout Module. Compass is an open-source CSS framework for Sass. You can read more about Compass in Chapter 6, Using Compass. The code in this recipe demonstrates how to use the Compass Layout Module to generate fixed, fluid, and elastic grid-images on-the-fly using CSS3 gradients.

Getting ready

Read Chapter 6, Using Compass, to learn more about Compass. Also read the Installing Sass for command line usage recipe of Chapter 1, Getting Started with Sass. This recipe uses the SCSS you have used for the Creating grids with recipe.

How to do it...

Learn how to use the Compass Layout Module by performing the following steps:

  1. Copy the files from the Creating grids with recipe into your working directory.

  2. Then, edit the sass/main.scss file and make sure it contains the following SCSS after that:

    @import '';
    @import 'compass/layout/grid-background';
    $column-width: 60...