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

Mobile first strategies


Different definitions of mobile first strategies exist. Mobile first strategies were introduced by companies that created the designs for mobile devices before the desktop designs. First, mobile devices not only had small screens, but they also supported a limited set of CSS and JavaScript features.

Nowadays, you can use CSS media queries, as discussed in the Media Queries with Breakpoint recipe of Chapter 8, Advanced Sass Coding, to change your designs depending on the screen size of your user's device. When using CSS media queries to create responsive websites, the mobile first strategy is more like a way of organizing your code. In this recipe, you will learn how to organize your code using a mobile first strategy.

In this recipe, you will use a CSS media query that will set the height of the CSS columns depending on the width of the viewport. Read more about CSS columns in the Browser support recipe of this chapter.

Getting ready

Install the Ruby Sass compiler, as...