Skip to content

Instantly share code, notes, and snippets.

@Craga89
Last active August 29, 2015 14:02
Show Gist options
  • Save Craga89/7958139ef4ca1edad786 to your computer and use it in GitHub Desktop.
Save Craga89/7958139ef4ca1edad786 to your computer and use it in GitHub Desktop.
Bootstrap 3 - Disabled dropdown links
<ul class="dropdown-menu">
<li class="disbled"> <!-- Disabled class here -->
<a disabled>Item 1</a> <!-- Disabled attribute here -->
</li>
</ul>
.dropdown-menu > .disabled > a {
&,
&:hover,
&:focus {
color: @dropdown-link-disabled-color;
}
}
// Nuke hover/focus effects
.dropdown-menu > .disabled > a {
&:hover,
&:focus {
text-decoration: none;
background-color: transparent;
background-image: none; // Remove CSS gradient
.reset-filter();
cursor: not-allowed;
}
}
@Craga89
Copy link
Author

Craga89 commented Jun 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment