3 // --------------------------------------------------
6 // Dropdown arrow/caret
7 // --------------------
13 vertical-align: middle;
14 border-top: 4px solid @dropdown-caret-color;
15 border-right: 4px solid transparent;
16 border-left: 4px solid transparent;
20 // The dropdown menu (ul)
21 // ----------------------
26 z-index: @zindex-dropdown;
27 display: none; // none by default, but block on "open" of the menu
31 margin: 2px 0 0; // override default ul
33 background-color: @dropdown-bg;
34 border: 1px solid @dropdown-fallback-border; // IE8 fallback
35 border: 1px solid @dropdown-border;
36 border-radius: @border-radius-base;
37 .box-shadow(0 6px 12px rgba(0,0,0,.175));
38 .background-clip(padding-box);
40 // Aligns the dropdown menu to right
46 // Dividers (basically an hr) within the dropdown
48 .nav-divider(@dropdown-divider-bg);
51 // Links within the dropdown menu
57 line-height: @line-height-base;
58 color: @dropdown-link-color;
59 white-space: nowrap; // prevent links from randomly breaking onto new lines
65 .dropdown-menu > li > a {
68 text-decoration: none;
69 color: @dropdown-link-hover-color;
70 #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));
76 .dropdown-menu > .active > a {
80 color: @dropdown-link-active-color;
81 text-decoration: none;
83 #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
89 // Gray out text and ensure the hover/focus state remains gray
90 .dropdown-menu > .disabled > a {
97 // Nuke hover/focus effects
98 .dropdown-menu > .disabled > a {
101 text-decoration: none;
102 background-color: transparent;
103 background-image: none; // Remove CSS gradient
109 // Open state for the dropdown
110 // ---------------------------
117 // Remove the outline when :focus is triggered
123 // Dropdown section headers
124 // ---------------------------
128 font-size: @font-size-small;
129 line-height: @line-height-base;
135 // Backdrop to catch body clicks on mobile, etc.
136 // ---------------------------
143 z-index: @zindex-dropdown - 10;
146 // Right aligned dropdowns
147 // ---------------------------
148 .pull-right > .dropdown-menu {
153 // Allow for dropdowns to go bottom up (aka, dropup-menu)
154 // ------------------------------------------------------
155 // Just add .dropup after the standard .dropdown class and you're set, bro.
156 // TODO: abstract this so that the navbar fixed styles are not placed here?
158 .navbar-fixed-bottom .dropdown {
162 border-bottom: 4px solid @dropdown-caret-color;
165 // Different positioning for bottom up menu