I'm skinning the Wordpress theme The Bootstrap 2.0.1, which uses Twitter's bootstrap v2.3.2 and I'm trying to find out how to change the color of dropdown text items visible (which are linked) when a nav item in the collapsed navigation has been clicked open.
I know how to change the text/background color of nav dropdown items through the variables.less file (@navbarText, @navbarLinkColor, @navbarLinkColorHover, etc)
What is stumping me is changing the color of text items when:
- The window is resized so that the responsive navigation is collapsed.
- The navigation toggle button is clicked to reveal the previously-hidden navigation items.
- A menu link is clicked open to reveal the dropdown menu items in the responsive format.
Here's what I mean using one of Bootstrap's default examples modified to illustrate the issue:
<!-- NAVBAR -->
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">Site Title</a>
<div class="nav-collapse collapse navbar-collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Fruits <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Strawberries</a></li>
<li><a href="#">Bananas</a></li>
<li><a href="#">Apples</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Vegetables <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Celery</a></li>
<li><a href="#">Cabbage</a></li>
<li><a href="#">Cucumbers</a></li>
</ul>
</li>
</ul>
<form class="navbar-search pull-left" action="">
<input type="text" class="search-query span2" placeholder="Search">
</form>
</div><!-- /.nav-collapse -->
</div>
</div><!-- /navbar-inner -->
</div><!-- /navbar -->
<!-- NAVBAR -->
The issue is the initial color of the subcategories links (Strawberries, Bananas, Apples or Celery, Cabbage, Cucumber) when the navigation has collapsed due to the browser window being been resized and the main category (Fruits, Vegetables) has been clicked to reveal them.
I can set the background/text color of the expanded dropdown items in the responsive mode when hovering.
What I can't seem to change is the default light grey color the dropdown text items in the responsive mode are initially.
The same light grey text color is used on the dropdown items in the regular responsive nav AND the inverted one. It does not change.
I would like to be able to change that color to something else but I have yet to find a solution.
Thanks for any help you might be able to provide.