Book Image

Learning Zurb Foundation

By : Kevin Horek
Book Image

Learning Zurb Foundation

By: Kevin Horek

Overview of this book

<p>Responsive web design is the next big thing in web design right now. It allows you to control and adapt to the user experience across a variety of devices, screens, and resolutions. Foundation is one of the most well-known responsive frameworks available, and allows you to speed up the prototyping, designing, and theming of your web project; as well as allowing you to create your own custom themes to suit your needs. It makes your life easier by giving you a grid, elements, and JavaScript functions that are responsive and easily customized to work with any web or mobile project that arises.</p> <p>This book starts off with teaching you the basics, and gradually moves on to cover the most advanced parts of this amazing framework. You will learn how to use Foundation to prototype, design, and theme your projects as well as discover how to use the framework with any programming language or content management system.</p>
Table of Contents (17 chapters)
Learning Zurb Foundation
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Building a quick prototype


Now that we have imported the theme.scss file, we need to actually create that file. So, let's create a _theme.scss file in the scss folder. Open this file, and if you are using Codio, you should see the following:

/*
    Document   : Chapter-9/scss/_theme.scss
    Created on : 2014-05-12 04:22 AM
    Author     : kevinhorek
    Description:
    Purpose of the stylesheet follows.
    To change this template use Tools | Templates.
*/

root {
    display: block;
}

Let's delete everything in this file. It is good to have these comments, but to make sure that you can follow along with Codio or your own editor, we are deleting them.

Now, let's switch back to the terminal and type grunt. This will make sure that our Sass is getting compiled and that we will see our changes. Now that we have Sass running, let's talk about how to design in a browser.

Let's open the index.html file, delete lines 17 to 157, and add the following code on or around line 17:

<div class="row"...