]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #4395: scope dropdown menu caret in navbar to first level dropdown only
authorMark Otto <markotto@twitter.com>
Tue, 14 Aug 2012 21:29:31 +0000 (14:29 -0700)
committerMark Otto <markotto@twitter.com>
Tue, 14 Aug 2012 21:29:31 +0000 (14:29 -0700)
docs/assets/css/bootstrap.css
less/navbar.less

index 3fd9070be9e9f85a39b3bf5eeeee4e5c7da63907..c7fbc3e965959b8035e646153bbb8be8c6b4f160 100644 (file)
@@ -4285,7 +4285,7 @@ input[type="submit"].btn.btn-mini {
   margin-top: 3px;
 }
 
-.navbar .dropdown-menu:before {
+.navbar .nav > li > .dropdown-menu:before {
   position: absolute;
   top: -7px;
   left: 9px;
@@ -4297,7 +4297,7 @@ input[type="submit"].btn.btn-mini {
   content: '';
 }
 
-.navbar .dropdown-menu:after {
+.navbar .nav > li > .dropdown-menu:after {
   position: absolute;
   top: -6px;
   left: 10px;
@@ -4308,7 +4308,7 @@ input[type="submit"].btn.btn-mini {
   content: '';
 }
 
-.navbar-fixed-bottom .dropdown-menu:before {
+.navbar-fixed-bottom .nav > li > .dropdown-menu:before {
   top: auto;
   bottom: -7px;
   border-top: 7px solid #ccc;
@@ -4316,7 +4316,7 @@ input[type="submit"].btn.btn-mini {
   border-top-color: rgba(0, 0, 0, 0.2);
 }
 
-.navbar-fixed-bottom .dropdown-menu:after {
+.navbar-fixed-bottom .nav > li > .dropdown-menu:after {
   top: auto;
   bottom: -6px;
   border-top: 6px solid #ffffff;
index 4306047c70b53238e1fc9f76fba89e4363eb8625..423ff4c728e13ef09099feaedfcdf25ca3760317 100644 (file)
 // --------------
 
 // Menu position and menu carets
-.navbar .dropdown-menu {
+.navbar .nav > li > .dropdown-menu {
   &:before {
     content: '';
     display: inline-block;
   }
 }
 // Menu position and menu caret support for dropups via extra dropup class
-.navbar-fixed-bottom .dropdown-menu {
+.navbar-fixed-bottom .nav > li > .dropdown-menu {
   &:before {
     border-top: 7px solid #ccc;
     border-top-color: @dropdownBorder;