// // Dropdown menus // -------------------------------------------------- // Use the .menu class on any
  • element within the topbar or ul.tabs and you'll get some superfancy dropdowns .dropdown { position: relative; } // Dropdown arrow/caret // -------------------- .caret { display: inline-block; width: 0; height: 0; vertical-align: top; border: 4px solid transparent; border-top-color: @black; } // Place the caret .dropdown .caret { margin-top: 8px; margin-left: 2px; } // The dropdown menu (ul) // ---------------------- .dropdown-menu { max-height: 60vh; max-width: 90vw; overflow: auto; position: absolute; top: 100%; left: 0; z-index: @zindexDropdown; display: none; // none by default, but block on "open" of the menu min-width: 160px; padding: 5px 0; margin: 2px 0 0; // override default ul list-style: none; color: var(--dropdown-menu-color, inherit); background-color: var(--dropdown-menu-background-color, @dropdownBackground); border: 1px solid @dropdownBorder; box-shadow: 0 1px 2px rgba(0,0,0,0.2); background-clip: padding-box; // Aligns the dropdown menu to right &.right-edge { right: 0; left: auto; } // Links within the dropdown menu a { background-color: var(--dropdown-menu-bg-color, #fff); color: var(--dropdown-menu-color, @dropdownLinkColor); display: block; padding: 3px 10px; text-decoration: none; white-space: nowrap; } } // Hover state // ----------- .dropdown-menu li:not(.disabled) > a:hover, .dropdown-menu li:not(.disabled) > a:focus { background-color: var(--dropdown-menu-hover-bg-color, #444); color: var(--dropdown-menu-hover-color, #eee); text-decoration: none; } // Disabled state // -------------- // Gray out text and ensure the hover state remains gray .dropdown-menu .disabled > a, .dropdown-menu .disabled > a:hover { color: @grayLight; cursor: not-allowed; opacity: 0.5; }