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

Browser support


People do not always use the latest version of a web browser. In this recipe, you will learn why you can use mixins or mixin libraries to add cross-browser support to your multiple column layout.

Getting ready

To compile the SCSS of this recipe, you should have the Ruby Sass compiler installed. The Installing Sass for command line usage recipe of Chapter 1, Getting Started with Sass, describes how to install Ruby Sass on your system. You can inspect the final results in any modern web browser.

How to do it...

Perform the following steps to get grips on creating cross-browser CSS code:

  1. Create your main project file called main.scss. This file should import the column partial file. So, main.scss should contain a SCSS code like that shown here:

    $grid-gutter-width: 15px;
    
    @import 'components/columns';
    
    .columns {
      @include content-columns(3);
    }
  2. The column partial, the components/_columns.scss file, should contain the mixin that creates your content columns. The SCSS code in this file...