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
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using Susy with Ruby on Rails


Susy is a Sass add-on for grids recommended by Compass. You can read more about Susy in Chapter 10, Building grid-based layouts with Susy and Sass chapter of this book.

Getting ready

To demonstrate the Susy grid in the RoR app, the SCSS and HTML code of the Defining containers and columns recipe of Chapter 10, Building grid-based layouts with Susy and Sass, will be used again.

Note

Rails 4.1 and below include a version of sass-rails, which does not support Sass 3.3 by default. Susy 2 requires Sass >= 3.3. So in order to use Susy 2 with Rails, you must update your Gem file to use sass-rails ~> 5.0.0.

How to do it...

After performing the followings step you will know how to use the Susy add-on for Compass to create a grid-based layout for your RoR app:

  1. Create a new Rails app by running the following command in your console:

    rails new recipe4
    
  2. Run, as already described in the Hello world with Ruby on Rails recipe, the "controller" generator and tell it that you want...