All the styles work perfectly except for when I click anywhere (including on the button) to exit the dropdown menu - the second click. In this instance the background becomes the default blue. However, when I click on the button to initially to open the dropdown menu, my .buttonMenu:active styles work as they should. How can I style the second click that exits the menu?
HTML:
<div class="dropdown">
<button style="float:right;" class="btn btn-primary dropdown-toggle buttonMenu" type="button" data-toggle="dropdown"><?php echo "$userFullName"; ?></button>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="#">Profile</a></li>
<li><a href="#">Settings</a></li>
<li><a href="logout.php">Sign out</a></li>
</ul>
</div>
CSS:
.buttonMenu{
background: none;
border: none;
display: inline-block;
font-family: 'Ubuntu', sans-serif;
font-weight:400;
font-size: 1.3em;
font-style: italic;
color:#F5F5F5;
text-align: right;
margin-top:4.8%;
margin-right:2%;
}
.buttonMenu:hover {
background-color: #AE4936 !important;
border: none !important;
outline: none !important;
}
.buttonMenu:active {
background-color: #AE4936 !important;
outline: none !important;
border: none !important;
}
.buttonMenu:focus {
background-color: #AE4936 !important;
outline: none !important;
border: none !important;
}