Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Bootstrap Site Blueprints
  • Table Of Contents Toc
  • Feedback & Rating feedback
Bootstrap Site Blueprints

Bootstrap Site Blueprints

4.2 (10)
close
close
Bootstrap Site Blueprints

Bootstrap Site Blueprints

4.2 (10)

Overview of this book

Table of Contents (16 chapters)
close
close
Bootstrap Site Blueprints
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Adjusting the navbar icon color


You might note that the icons appear visually heavier than their adjacent text. The color is the same, but the icons carry greater visual weight. Let's adjust the icons to a lighter and less overpowering shade.

  1. Open _navbar.less in your editor.

  2. Search to find the selector .navbar-default. We have used this class in our navbar markup to apply default styles. You should find it under the commented section for // Alternate navbars.

  3. Within this nested set of rules, find the selector .navbar-nav and the > li > selector nested beneath it. This is where we want to adjust our icon colors.

  4. Under the statement defining nav item link colors, we'll nest a rule to make our icons a lighter shade, using our variable @gray-light, as follows:

    .navbar-nav {
      > li > a {
        color: @navbar-default-link-color;
    
        .icon { // added rule set
          color: @gray-light;
        }

    Tip

    The generic class icon proves to be a handy way to select all of our icons.

    Note

    I've begun adding...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY