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

Making custom navbars


The navigation bar, or navbar for short, is an important component used in many Bootstrap projects. In this recipe, you can read how to modify the navbar leveraging Sass.

Getting ready

First, read the Downloading and installing Bootstrap recipe of this chapter to find out how to download and install Bootstrap, enabling you to recompile the Bootstrap CSS code. You can edit the Bootstrap source files with a text editor.

How to do it...

The navbar component is an important part of Bootstrap used in many situation. The following steps will help you to customize it for your own needs and requirements:

  1. First, install Bootstrap as described in the Downloading and installing Bootstrap recipe of this chapter.

  2. Then, create an index.html file that contains the HTML code like that shown in the following:

    <!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
    
      <title>Making Custom Navbars</title>
      <meta name="description" content="Making...