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 the page navigation component from Refills

Bourbon Refills are the components and patterns built with Bourbon and Neat. You can use these components and patterns by simply copying and pasting them from the Refills website into your Sass code.

Getting ready

Install Ruby Sass as described in Chapter 1, Getting Started with Sass, of this book. Then install Bourbon and Neat by running the following commands in your console:

gem install bourbon
gem install neat

Note that Chapter 1, Getting started with Sass, of this book also describes how to install Ruby and Ruby gems.

How to do it...

Most websites require a page navigation. The following steps will show you how to build a page navigation with ease by using the pattern from the Refills website:

  1. Create the file and directory structure as shown in the following diagram:

  2. Navigate to the sass directory and run the following commands to copy the Bourbon and Neat files into your stylesheets directory:

    bourbon install
    neat install
  3. Now, edit the sass...