4 // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
9 // The caret makes the toggle a bit too tall in IE7
12 .dropdown-toggle:active,
13 .open .dropdown-toggle {
16 // Dropdown arrow/caret
18 display: inline-block;
21 text-indent: -99999px;
22 // IE7 won't do the border trick if there's a text indent, but it doesn't
23 // do the content that text-indent is hiding, either, so we're ok.
26 border-left: 4px solid transparent;
27 border-right: 4px solid transparent;
28 border-top: 4px solid @black;
36 .dropdown:hover .caret,
37 .open.dropdown .caret {
40 // The dropdown menu (ul)
45 z-index: @zindexDropdown;
47 display: none; // none by default, but block on "open" of the menu
51 margin: 0; // override default ul
53 background-color: @white;
55 border-color: rgba(0,0,0,.2);
58 .border-radius(0 0 5px 5px);
59 .box-shadow(0 5px 10px rgba(0,0,0,.2));
60 -webkit-background-clip: padding-box;
61 -moz-background-clip: padding;
62 background-clip: padding-box;
63 *border-right-width: 2px;
64 *border-bottom-width: 2px;
66 // Allow for dropdowns to go bottom up (aka, dropup-menu)
73 // Dividers (basically an hr) within the dropdown
78 background-color: #e5e5e5;
79 border-bottom: 1px solid @white;
81 // IE7 needs a set width since we gave a height. Restricting just
82 // to IE7 to keep the 1px left/right space in other browsers.
83 // It is unclear where IE is getting the extra space that we need
84 // to negative-margin away, but so it goes.
89 // Links within the dropdown menu
95 line-height: @baseLineHeight;
102 .dropdown-menu li > a:hover,
103 .dropdown-menu .active > a,
104 .dropdown-menu .active > a:hover {
106 text-decoration: none;
107 background-color: @linkColor;
110 // Open state for the dropdown
112 // IE7's z-index only goes to the nearest positioned ancestor, which would
113 // make the menu appear below buttons that appeared later on the page
114 *z-index: @zindexDropdown;
119 background: rgba(0,0,0,.3);
128 margin-top: 2px; // give it some space to breathe