Book Image

LESS WEB DEVELOPMENT COOKBOOK

Book Image

LESS WEB DEVELOPMENT COOKBOOK

Overview of this book

Table of Contents (19 chapters)
Less Web Development Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Getting retina ready with Preboot


The Preboot library of the Less variables and mixins has been created by Mark Otto (@mdo), and can be seen as the precursor of Twitter's Bootstrap. In this recipe, you will use the Preboot library to create retina-ready images.

Although many improvements of the mixins and code are brought back from Bootstrap to the second version of Preboot, Bootstrap is more powerful to start a project in most situations. You can read more about Bootstrap in Chapter 9, Using Bootstrap with Less.

Getting ready

You can download the Preboot library from http://getpreboot.com/. Unzip the ZIP archive into your working directory, and use the command-line lessc compiler, as described in the Installing the lessc compiler with npm recipe in Chapter 1, Getting to Grips with the Basics of Less to compile your Less code.

How to do it…

Create a Less file that contains the following Less code, and use the command-line lessc compiler to compile this file into the CSS code:

@import "preboot...