3 // --------------------------------------------------
6 // Dropdown arrow/caret
12 vertical-align: middle;
13 border-top: @caret-width-base solid @dropdown-caret-color;
14 border-right: @caret-width-base solid transparent;
15 border-left: @caret-width-base solid transparent;
19 // The dropdown wrapper (div)
24 // Prevent the focus on the dropdown toggle when closing dropdowns
25 .dropdown-toggle:focus {
29 // The dropdown menu (ul)
34 z-index: @zindex-dropdown;
35 display: none; // none by default, but block on "open" of the menu
39 margin: 2px 0 0; // override default ul
41 font-size: @font-size-base;
42 background-color: @dropdown-bg;
43 border: 1px solid @dropdown-fallback-border; // IE8 fallback
44 border: 1px solid @dropdown-border;
45 border-radius: @border-radius-base;
46 .box-shadow(0 6px 12px rgba(0,0,0,.175));
47 background-clip: padding-box;
49 // Aligns the dropdown menu to right
55 // Dividers (basically an hr) within the dropdown
57 .nav-divider(@dropdown-divider-bg);
60 // Links within the dropdown menu
66 line-height: @line-height-base;
67 color: @dropdown-link-color;
68 white-space: nowrap; // prevent links from randomly breaking onto new lines
73 .dropdown-menu > li > a {
76 text-decoration: none;
77 color: @dropdown-link-hover-color;
78 background-color: @dropdown-link-hover-bg;
83 .dropdown-menu > .active > a {
87 color: @dropdown-link-active-color;
88 text-decoration: none;
90 background-color: @dropdown-link-active-bg;
96 // Gray out text and ensure the hover/focus state remains gray
98 .dropdown-menu > .disabled > a {
102 color: @dropdown-link-disabled-color;
105 // Nuke hover/focus effects
106 .dropdown-menu > .disabled > a {
109 text-decoration: none;
110 background-color: transparent;
111 background-image: none; // Remove CSS gradient
117 // Open state for the dropdown
124 // Remove the outline when :focus is triggered
130 // Dropdown section headers
134 font-size: @font-size-small;
135 line-height: @line-height-base;
136 color: @dropdown-header-color;
139 // Backdrop to catch body clicks on mobile, etc.
146 z-index: @zindex-dropdown - 10;
149 // Right aligned dropdowns
150 .pull-right > .dropdown-menu {
155 // Allow for dropdowns to go bottom up (aka, dropup-menu)
157 // Just add .dropup after the standard .dropdown class and you're set, bro.
158 // TODO: abstract this so that the navbar fixed styles are not placed here?
161 .navbar-fixed-bottom .dropdown {
165 border-bottom: 4px solid @dropdown-caret-color;
168 // Different positioning for bottom up menu