diff options
| author | Mark Otto <[email protected]> | 2012-08-17 11:22:45 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-08-17 11:22:45 -0700 |
| commit | ded21ebc91ee155b8196155fc9598a51be8fb55e (patch) | |
| tree | 9b9df7439c2f13a1aed2db95bb4ffd853756f8a5 | |
| parent | 54c645e33d379669015921116c87145f41099b56 (diff) | |
| download | bootstrap-ded21ebc91ee155b8196155fc9598a51be8fb55e.tar.xz bootstrap-ded21ebc91ee155b8196155fc9598a51be8fb55e.zip | |
fixes #4416 in a different way: scope active state of navbar links to just the immediate navbar link, not dropdown elements
| -rw-r--r-- | docs/assets/css/bootstrap.css | 6 | ||||
| -rw-r--r-- | less/navbar.less | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index efc2e5915..27b4f6e6c 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -4220,9 +4220,9 @@ input[type="submit"].btn.btn-mini { background-color: transparent; } -.navbar .nav .active > a, -.navbar .nav .active > a:hover, -.navbar .nav .active > a:focus { +.navbar .nav > .active > a, +.navbar .nav > .active > a:hover, +.navbar .nav > .active > a:focus { color: #555555; text-decoration: none; background-color: #e5e5e5; diff --git a/less/navbar.less b/less/navbar.less index fc8f782db..f97afa697 100644 --- a/less/navbar.less +++ b/less/navbar.less @@ -225,9 +225,9 @@ } // Active nav items -.navbar .nav .active > a, -.navbar .nav .active > a:hover, -.navbar .nav .active > a:focus { +.navbar .nav > .active > a, +.navbar .nav > .active > a:hover, +.navbar .nav > .active > a:focus { color: @navbarLinkColorActive; text-decoration: none; background-color: @navbarLinkBackgroundActive; |
