3 // --------------------------------------------------
9 // Base class and wrapper
12 margin-bottom: @baseLineHeight;
15 // Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
20 // Inner for background effects
21 // Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
23 min-height: @navbarHeight;
26 #gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
27 border: 1px solid @navbarBorder;
29 .box-shadow(0 1px 4px rgba(0,0,0,.065));
31 // Prevent floats from breaking the navbar
35 // Set width to auto for default container
36 // We then reset it for fixed navbars in the #gridSystem mixin
41 // Override the default collapsed state
42 .nav-collapse.collapse {
47 // Brand: website or project name
48 // -------------------------
52 // Vertically center the text given @navbarHeight
53 padding: ((@navbarHeight - @baseLineHeight) / 2) 30px ((@navbarHeight - @baseLineHeight) / 2);
54 margin-left: -20px; // negative indent to left-align the text down the page
57 color: @navbarBrandColor;
58 text-shadow: 0 1px 0 @navbarBackgroundHighlight;
60 text-decoration: none;
64 // Plain text in topbar
65 // -------------------------
68 line-height: @navbarHeight;
71 // Janky solution for now to account for links outside the .nav
72 // -------------------------
74 color: @navbarLinkColor;
76 color: @navbarLinkColorHover;
81 // -------------------------
82 .navbar .divider-vertical {
83 height: @navbarHeight;
85 border-left: 1px solid @navbarBackground;
86 border-right: 1px solid @navbarBackgroundHighlight;
90 // -------------------------
93 .navbarVerticalAlign(30px); // Vertically center in navbar
95 .navbar .btn-group .btn,
96 .navbar .input-prepend .btn,
97 .navbar .input-append .btn {
98 margin-top: 0; // then undo the margin here so we don't accidentally double it
102 // -------------------------
104 margin-bottom: 0; // remove default bottom margin
110 .navbarVerticalAlign(30px); // Vertically center in navbar
115 display: inline-block;
119 input[type="checkbox"],
120 input[type="radio"] {
126 white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
128 margin-top: 0; // remove the margin on top since it's on the parent
134 // -------------------------
138 .navbarVerticalAlign(30px); // Vertically center in navbar
143 #font > .sans-serif(13px, normal, 1);
144 .border-radius(15px); // redeclare because of specificity of the type attribute
151 // -------------------------
156 margin-bottom: 0; // remove 18px margin for default navbar
165 // -------------------------
167 // Shared (top/bottom) styles
169 .navbar-fixed-bottom {
173 z-index: @zindexFixedNavbar;
174 margin-bottom: 0; // remove 18px margin for default navbar
176 .navbar-fixed-top .navbar-inner,
177 .navbar-static-top .navbar-inner {
178 border-width: 0 0 1px;
180 .navbar-fixed-bottom .navbar-inner {
181 border-width: 1px 0 0;
183 .navbar-fixed-top .navbar-inner,
184 .navbar-fixed-bottom .navbar-inner {
190 // Reset container width
191 // Required here as we reset the width earlier on and the grid mixins don't override early enough
192 .navbar-static-top .container,
193 .navbar-fixed-top .container,
194 .navbar-fixed-bottom .container {
195 #grid > .core > .span(@gridColumns);
205 .box-shadow(inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1));
210 .navbar-fixed-bottom {
213 .box-shadow(inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1));
229 .navbar .nav.pull-right {
230 float: right; // redeclare due to specificity
231 margin-right: 0; // remove margin on float right nav
238 .navbar .nav > li > a {
240 // Vertically center the text given @navbarHeight
241 // padding: ((@navbarHeight - @baseLineHeight) / 2) 15px ((@navbarHeight - @baseLineHeight) / 2);
242 padding: ((@navbarHeight - @baseLineHeight) / 2) 5px ((@navbarHeight - @baseLineHeight) / 2);
243 color: @navbarLinkColor;
244 text-decoration: none;
245 text-shadow: 0 1px 0 @navbarBackgroundHighlight;
247 .navbar .nav .dropdown-toggle .caret {
252 .navbar .nav > li > a:focus,
253 .navbar .nav > li > a:hover {
254 background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
255 color: @navbarLinkColorHover;
256 text-decoration: none;
260 .navbar .nav > .active > a,
261 .navbar .nav > .active > a:hover,
262 .navbar .nav > .active > a:focus {
263 color: @navbarLinkColorActive;
264 text-decoration: none;
265 background-color: @navbarLinkBackgroundActive;
266 .box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
269 // Navbar button for toggling navbar items in responsive layouts
270 // These definitions need to come after '.navbar .btn'
271 .navbar .btn-navbar {
277 .buttonBackground(darken(@navbarBackgroundHighlight, 5%), darken(@navbarBackground, 5%));
278 .box-shadow(inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075));
280 .navbar .btn-navbar .icon-bar {
284 background-color: #f5f5f5;
286 .box-shadow(0 1px 0 rgba(0,0,0,.25));
288 .btn-navbar .icon-bar + .icon-bar {
297 // Menu position and menu carets
298 .navbar .nav > li > .dropdown-menu {
301 display: inline-block;
302 border-left: 7px solid transparent;
303 border-right: 7px solid transparent;
304 border-bottom: 7px solid #ccc;
305 border-bottom-color: @dropdownBorder;
312 display: inline-block;
313 border-left: 6px solid transparent;
314 border-right: 6px solid transparent;
315 border-bottom: 6px solid @dropdownBackground;
321 // Menu position and menu caret support for dropups via extra dropup class
322 .navbar-fixed-bottom .nav > li > .dropdown-menu {
324 border-top: 7px solid #ccc;
325 border-top-color: @dropdownBorder;
331 border-top: 6px solid @dropdownBackground;
338 // Remove background color from open dropdown
339 .navbar .nav li.dropdown.open > .dropdown-toggle,
340 .navbar .nav li.dropdown.active > .dropdown-toggle,
341 .navbar .nav li.dropdown.open.active > .dropdown-toggle {
342 background-color: @navbarLinkBackgroundActive;
343 color: @navbarLinkColorActive;
345 .navbar .nav li.dropdown > .dropdown-toggle .caret {
346 border-top-color: @navbarLinkColor;
347 border-bottom-color: @navbarLinkColor;
349 .navbar .nav li.dropdown.open > .dropdown-toggle .caret,
350 .navbar .nav li.dropdown.active > .dropdown-toggle .caret,
351 .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
352 border-top-color: @navbarLinkColorActive;
353 border-bottom-color: @navbarLinkColorActive;
356 // Right aligned menus need alt position
357 .navbar .pull-right > li > .dropdown-menu,
358 .navbar .nav > li > .dropdown-menu.pull-right {
374 .border-radius(6px 0 6px 6px);
380 // -------------------------
383 color: @navbarInverseText;
386 #gradient > .vertical(@navbarInverseBackgroundHighlight, @navbarInverseBackground);
387 border-color: @navbarInverseBorder;
392 color: @navbarInverseLinkColor;
393 text-shadow: 0 -1px 0 rgba(0,0,0,.25);
395 color: @navbarInverseLinkColorHover;
400 .nav > li > a:hover {
401 background-color: @navbarInverseLinkBackgroundHover;
402 color: @navbarInverseLinkColorHover;
406 .nav .active > a:hover,
407 .nav .active > a:focus {
408 color: @navbarInverseLinkColorActive;
409 background-color: @navbarInverseLinkBackgroundActive;
414 color: @navbarInverseLinkColor;
416 color: @navbarInverseLinkColorHover;
420 // Dividers in navbar
422 border-left-color: @navbarInverseBackground;
423 border-right-color: @navbarInverseBackgroundHighlight;
427 .nav li.dropdown.open > .dropdown-toggle,
428 .nav li.dropdown.active > .dropdown-toggle,
429 .nav li.dropdown.open.active > .dropdown-toggle {
430 background-color: @navbarInverseLinkBackgroundActive;
431 color: @navbarInverseLinkColorActive;
433 .nav li.dropdown > .dropdown-toggle .caret {
434 border-top-color: @navbarInverseLinkColor;
435 border-bottom-color: @navbarInverseLinkColor;
437 .nav li.dropdown.open > .dropdown-toggle .caret,
438 .nav li.dropdown.active > .dropdown-toggle .caret,
439 .nav li.dropdown.open.active > .dropdown-toggle .caret {
440 border-top-color: @navbarInverseLinkColorActive;
441 border-bottom-color: @navbarInverseLinkColorActive;
448 background-color: @navbarInverseSearchBackground;
449 border-color: @navbarInverseSearchBorder;
450 .box-shadow(inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15));
452 .placeholder(@navbarInverseSearchPlaceholderColor);
454 // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
459 text-shadow: 0 1px 0 @white;
460 background-color: @navbarInverseSearchBackgroundFocus;
462 .box-shadow(0 0 3px rgba(0,0,0,.15));
468 // Navbar collapse button
470 .buttonBackground(darken(@navbarInverseBackgroundHighlight, 5%), darken(@navbarInverseBackground, 5%));