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

The -prefix-free library


The -prefix-free library developed by Lea Verou is a small JavaScript library that runs client-side in your browser. The -prefix-free library lets you use only unprefixed CSS properties everywhere.

Getting ready

For this recipe, you only need a web browser.

How to do it...

Perform the following steps to see the -prefix-free JavaScript library in action:

  1. Download the -prefix-free library at http://leaverou.github.io/prefixfree/.

  2. Create an index.html HTML file, which includes a CSS stylesheet file with some standard unprefixed CSS3 properties. For instance, this CSS stylesheet file may contain the following CSS code:

    .columns {
      column-count: 3;
      column-gap: 15px; } 
  3. Include the prefixfree.min.js minified JavaScript file you have downloaded in the first step right after the stylesheets that you have included in the second step.

  4. Finally, a section of your index.html HTML file should look like that shown here:

      <link rel="stylesheet" type="text/css" href="main.css" /&gt...