diff options
author | Mark Otto <markotto@twitter.com> | 2012-06-20 00:52:07 +0400 |
---|---|---|
committer | Mark Otto <markotto@twitter.com> | 2012-06-20 00:52:07 +0400 |
commit | 64ba423b6d06c98e95e23d8c34df62a47a421a03 (patch) | |
tree | 1b9a2ea94ec7a59c6c87db0791b9aa0b59acd6bf /less | |
parent | d14f06fc4ed3f4753de9ae5ef247c48629714935 (diff) |
#2764: add disabled styles to navs and dropdowns
Diffstat (limited to 'less')
-rw-r--r-- | less/dropdowns.less | 14 | ||||
-rw-r--r-- | less/navs.less | 16 |
2 files changed, 30 insertions, 0 deletions
diff --git a/less/dropdowns.less b/less/dropdowns.less index f965d292d2..648a9f2462 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -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 { diff --git a/less/navs.less b/less/navs.less index 5cb9f9f3a2..1034837396 100644 --- a/less/navs.less +++ b/less/navs.less @@ -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; +} |