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

Configuring Bootstrap using variables


Bootstrap 4 comes with opt-in flexbox support. You can enable flexbox support by switching a Boolean variable and recompiling your CSS. In this recipe you will learn how to do this.

Getting ready

As already mentioned, enabling flexbox support is as simple as switching a Boolean variable and recompiling your CSS. So, first read the Downloading and installing Bootstrap and the Customizing Bootstrap using variables recipes of this chapter. In this recipe, you also will make use of the page inspector of your browser.

There are two main ways to open the Inspector:

  • Without an element selected: Choose the Inspector option from the Web Developer menu or the equivalent keyboard shortcut

  • With an element selected: Right-click an element on a web page and select Inspect Element

How to do it...

You can not only use Sass variables to customize Bootstrap, you can also use some variables to configure it. The following steps will show you how to use a single Sass variable...