Skip to content

Commit

Permalink
(less) twbs#2764: add disabled styles to navs and dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Jun 19, 2012
1 parent 5102978 commit 7430c2e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dropdowns.less
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,20 @@
outline: 0;
}

// Disabled state
// --------------
// Gray out text and ensure the hover state remains gray
.dropdown-menu .disabled > a,
.dropdown-menu .disabled > a:hover {
color: @grayLight;
}
// Nuke hover effects
.dropdown-menu .disabled > a:hover {
text-decoration: none;
background-color: transparent;
cursor: default;
}

// Open state for the dropdown
// ---------------------------
.open {
Expand Down
16 changes: 16 additions & 0 deletions navs.less
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,19 @@
border-color: #ddd #ddd #ddd transparent;
*border-left-color: @white;
}



// DISABLED STATES
// ---------------

// Gray out text
.nav > .disabled > a {
color: @grayLight;
}
// Nuke hover effects
.nav > .disabled > a:hover {
text-decoration: none;
background-color: transparent;
cursor: default;
}

0 comments on commit 7430c2e

Please sign in to comment.