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

Using Bootstrap classes and mixins


Although Bootstrap is a complete CSS framework, you can use some of its components for other non-Bootstrap projects. In this recipe, you will see how to reuse Bootstrap's pagination component. Also, refer to Chapter 7, Leveraging Libraries with Prebuilt Mixins, which describes how to use prebuilt mixin libraries.

Other examples of reusing Bootstrap's code can be found in other recipes of this book. In the Declaring a class and mixin at once recipe in Chapter 3, Using Variables and Mixins, you can read how to create a clearfix. The mixin for this clearfix can be found in the less/mixins/clearfix.less file, which is included in Bootstrap's source files.

The There's more... section of the Building semantic grids with semantic.gs recipe in Chapter 7, Using External Mixin Libraries, describes how to use Bootstrap's grid mixins to build a semantic grid. Also, other recipes in this chapter describe how to use the grid, button, or panel components for your projects...