title: How to change the color of my dropdown in my navbar after clicking outside? -Bootstrap 3
body: <p>I am trying to build a template using Bootstrap 3 and I am having this problem. </p>
  
  <p>In my navbar-default, I have a dropdown menu. By default, the dropdown-toggle's font has a grayish color with a transparent background. On hover, the gray turns white. On clicking, the dropdown-menu opens and the toggle itself turns white and its background color becomes a darker shade of blue(focus and active).</p>
  
  <p>However, if I click anywhere outside with the dropdown-menu open, for a second, the color of the toggle's font turns dark-gray, and the background turns cloud-color. After a second or so, it goes back to normal. Its very jarring to me and I can't seem to find the CSS responsible for this. (I am using bootstrap 3)</p>
  
  <p>Anyway, take a look at this <a href="http://i.imgur.com/qvVk0xI.png" rel="nofollow">image</a> to get a better understanding of what I mean. </p>
  
  <p>This is on my navbar btw. </p>
  
  <p>And finally, here's my code:</p>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;nav class="navbar navbar-default navbar-fixed-top"&gt;
          &lt;div class="container"&gt;
              &lt;div class="navbar-header"&gt;
                  &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"&gt;
                      &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;/button&gt;
                  &lt;a class="navbar-brand" href="#"&gt;&lt;span class="brand-name"&gt; My brand&lt;/span&gt;&lt;/a&gt;
              &lt;/div&gt;
  
  
          &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
            &lt;ul class="nav navbar-nav navbar-right"&gt;
              &lt;li class="dropdown"&gt;
                &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;&lt;i class="glyphicon glyphicon-user"&gt;&lt;/i&gt; Username&lt;/a&gt;
                &lt;ul class="dropdown-menu"&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Account&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;My reviews&lt;/a&gt;&lt;/li&gt;
                  &lt;li role="separator" class="divider"&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Logout&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;&lt;!-- /.navbar-collapse --&gt;
          &lt;/div&gt;&lt;!-- /.container-fluid --&gt;
        &lt;/nav&gt;
  </code></pre>
  
  <p>And I am changing the colors for hover, active and focus using this CSS code:</p>
  
  <pre><code>.navbar-default .navbar-nav .dropdown .dropdown-toggle:focus,
  .navbar-default .navbar-nav .dropdown .dropdown-toggle:hover,
  .navbar-default .navbar-nav .dropdown .dropdown-toggle:active {
      color: #fff;
      background-color: ((Dark blue color code));
   }
  </code></pre>
  
  <p>Any way to change this so that it just goes back to normal instead of the 1-second-color-change?</p>