Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matching color of "icon-home" in twitter bootstrap

I'm trying to match the color of the home icon using twitter bootstrap to the color of the inactive text like so:

<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <ul class="nav">
        <li class="nav_item"><a href="indexdefaults.html"><i class="icon-home icon-gray"></i>Home</a></li>
        <li class="active"><a href="about.html">About</a></li>
      </ul>
    </div>
  </div>
</div>

but the "icon-gray" class is much darker than the text in the "nav_item" class. What is the appropriate class icon-foobar that matches the color of the nav_item text?

like image 634
Sevenless Avatar asked May 26 '12 05:05

Sevenless


2 Answers

You can get the gray color by using a custom style:

.icon-gray {
  opacity: 0.3;
}

You might have to change the opacity lower or higher as per the weight of black.

like image 60
safrazik Avatar answered Nov 17 '22 13:11

safrazik


There are only two variations to the icons, white and dark, if you want to get a different colored set of icons you have to modify the original icons in photoshop or pay for the full icon set and modify the source files. There is no .icon-gray.

like image 32
Andres Ilich Avatar answered Nov 17 '22 13:11

Andres Ilich