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 a CSS Reset


When talking about cascade in CSS, there will no doubt be a mention of the browser default settings getting a higher precedence than the author's preferred styling. When writing Sass code, the compiled CSS code will overwrite the browser's default styling. In other words, anything that you do not define in your Sass code will be assigned a default styling, which is defined by the browser. This behavior plays a major role in many cross-browser issues. To prevent these sorts of problems, you can perform a CSS Reset, or a CSS Reset alternative such as Normalize.css.

Getting ready

In this recipe, you will use Normalize.css as an alternative for other CSS Resets. You can download Normalize.css at https://necolas.github.io/normalize.css/. After downloading the file you can compile your code with the Ruby Sass compiler. The Installing Compass recipe of Chapter 1, Getting Started with Sass describes how to install Compass for command line usage on your system.

How to do it...

Perform...