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

Maintaining your applications with Compass


After installing Sass and Compass, you can use Compass to maintain your application. This recipe describes how to maintain your applications with Compass on the command line.

Getting ready

Install Compass as described in the Installing Compass recipe of Chapter 1, Getting Started with Sass.

How to do it...

Perform the following step to get grips on maintaining your applications with Compass:

  1. Create a new Sass project, as described in the Installing Compass recipe of Chapter 1, Getting Started with Sass, by using the following command in your console:

     compass create
    
  2. Then, create a sass/application.scss file that imports the sass/_base.scss partial file (see step 4 of this recipe). The SCSS code in the sass/application.scss file should look as follows:

     @import "base"; 
    
    @include global-reset; // Eric Meyer's reset 2.0 Global reset rules. 
    @include establish-baseline; // set a default font-size and line-height on your <html> tag. 
    
    a { 
      @include...