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 mixins to customize your Foundation App project


By default, Foundation for Apps comes with lot of predefined CSS classes. You can use these classes in your HTML. You can also define your own classes with Foundation for Apps functions and mixins. Mixins are available for each component. In this recipe, you will learn how to use these mixins to create your own CSS class structure. In this recipe, the Title bar component is used to demonstrate how to reuse Foundation's mixins.

Getting ready

Read the Setting up a Foundation App project recipe of this chapter before you start finding out how to install Foundation for Apps.

How to do it...

  1. Create a new Foundation for Apps project by running the following command in your console, as described in the Setting up a Foundation App project recipe of this chapter:

    foundation new
    
  2. Run the foundation watch command in your console and open the app in your browser at http://localhost:8079.

  3. Now, edit the client/index.html file and write down the following...