3 // --------------------------------------------------
9 // Base class and wrapper
12 margin-bottom: @baseLineHeight;
14 // Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
19 // Inner for background effects
20 // Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
22 min-height: @navbarHeight;
25 #gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
26 border: 1px solid @navbarBorder;
27 .border-radius(@baseBorderRadius);
28 .box-shadow(0 1px 4px rgba(0,0,0,.065));
30 // Prevent floats from breaking the navbar
34 // Set width to auto for default container
35 // We then reset it for fixed navbars in the #gridSystem mixin
40 // Override the default collapsed state
41 .nav-collapse.collapse {
47 // Brand: website or project name
48 // -------------------------
52 // Vertically center the text given @navbarHeight
53 padding: ((@navbarHeight - @baseLineHeight) / 2) 20px ((@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;
61 text-decoration: none;
65 // Plain text in topbar
66 // -------------------------
69 line-height: @navbarHeight;
73 // Janky solution for now to account for links outside the .nav
74 // -------------------------
76 color: @navbarLinkColor;
79 color: @navbarLinkColorHover;
84 // -------------------------
85 .navbar .divider-vertical {
86 height: @navbarHeight;
88 border-left: 1px solid @navbarBackground;
89 border-right: 1px solid @navbarBackgroundHighlight;
93 // -------------------------
96 .navbarVerticalAlign(30px); // Vertically center in navbar
98 .navbar .btn-group .btn,
99 .navbar .input-prepend .btn,
100 .navbar .input-append .btn,
101 .navbar .input-prepend .btn-group,
102 .navbar .input-append .btn-group {
103 margin-top: 0; // then undo the margin here so we don't accidentally double it
107 // -------------------------
109 margin-bottom: 0; // remove default bottom margin
115 .navbarVerticalAlign(30px); // Vertically center in navbar
120 display: inline-block;
124 input[type="checkbox"],
125 input[type="radio"] {
131 white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
133 margin-top: 0; // remove the margin on top since it's on the parent
139 // -------------------------
143 .navbarVerticalAlign(30px); // Vertically center in navbar
148 #font > .sans-serif(13px, normal, 1);
149 .border-radius(15px); // redeclare because of specificity of the type attribute
156 // -------------------------
160 margin-bottom: 0; // remove 18px margin for default navbar
169 // -------------------------
171 // Shared (top/bottom) styles
173 .navbar-fixed-bottom {
177 z-index: @zindexFixedNavbar;
178 margin-bottom: 0; // remove 18px margin for default navbar
180 .navbar-fixed-top .navbar-inner,
181 .navbar-static-top .navbar-inner {
182 border-width: 0 0 1px;
184 .navbar-fixed-bottom .navbar-inner {
185 border-width: 1px 0 0;
187 .navbar-fixed-top .navbar-inner,
188 .navbar-fixed-bottom .navbar-inner {
194 // Reset container width
195 // Required here as we reset the width earlier on and the grid mixins don't override early enough
196 .navbar-static-top .container,
197 .navbar-fixed-top .container,
198 .navbar-fixed-bottom .container {
199 #grid > .core > .span(@gridColumns);
209 .box-shadow(~"0 1px 10px rgba(0,0,0,.1)");
214 .navbar-fixed-bottom {
217 .box-shadow(~"0 -1px 10px rgba(0,0,0,.1)");
233 .navbar .nav.pull-right {
234 float: right; // redeclare due to specificity
235 margin-right: 0; // remove margin on float right nav
242 .navbar .nav > li > a {
244 // Vertically center the text given @navbarHeight
245 padding: ((@navbarHeight - @baseLineHeight) / 2) 15px ((@navbarHeight - @baseLineHeight) / 2);
246 color: @navbarLinkColor;
247 text-decoration: none;
248 text-shadow: 0 1px 0 @navbarBackgroundHighlight;
250 .navbar .nav .dropdown-toggle .caret {
255 .navbar .nav > li > a:focus,
256 .navbar .nav > li > a:hover {
257 background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover/:focus from .active
258 color: @navbarLinkColorHover;
259 text-decoration: none;
263 .navbar .nav > .active > a,
264 .navbar .nav > .active > a:hover,
265 .navbar .nav > .active > a:focus {
266 color: @navbarLinkColorActive;
267 text-decoration: none;
268 background-color: @navbarLinkBackgroundActive;
269 .box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
272 // Navbar button for toggling navbar items in responsive layouts
273 // These definitions need to come after '.navbar .btn'
274 .navbar .btn-navbar {
280 .buttonBackground(darken(@navbarBackgroundHighlight, 5%), darken(@navbarBackground, 5%));
281 .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)");
283 .navbar .btn-navbar .icon-bar {
287 background-color: #f5f5f5;
289 .box-shadow(0 1px 0 rgba(0,0,0,.25));
291 .btn-navbar .icon-bar + .icon-bar {
300 // Menu position and menu carets
301 .navbar .nav > li > .dropdown-menu {
304 display: inline-block;
305 border-left: 7px solid transparent;
306 border-right: 7px solid transparent;
307 border-bottom: 7px solid #ccc;
308 border-bottom-color: @dropdownBorder;
315 display: inline-block;
316 border-left: 6px solid transparent;
317 border-right: 6px solid transparent;
318 border-bottom: 6px solid @dropdownBackground;
324 // Menu position and menu caret support for dropups via extra dropup class
325 .navbar-fixed-bottom .nav > li > .dropdown-menu {
327 border-top: 7px solid #ccc;
328 border-top-color: @dropdownBorder;
334 border-top: 6px solid @dropdownBackground;
341 // Caret should match text color on hover/focus
342 .navbar .nav li.dropdown > a:hover .caret,
343 .navbar .nav li.dropdown > a:focus .caret {
344 border-top-color: @navbarLinkColorHover;
345 border-bottom-color: @navbarLinkColorHover;
348 // Remove background color from open dropdown
349 .navbar .nav li.dropdown.open > .dropdown-toggle,
350 .navbar .nav li.dropdown.active > .dropdown-toggle,
351 .navbar .nav li.dropdown.open.active > .dropdown-toggle {
352 background-color: @navbarLinkBackgroundActive;
353 color: @navbarLinkColorActive;
355 .navbar .nav li.dropdown > .dropdown-toggle .caret {
356 border-top-color: @navbarLinkColor;
357 border-bottom-color: @navbarLinkColor;
359 .navbar .nav li.dropdown.open > .dropdown-toggle .caret,
360 .navbar .nav li.dropdown.active > .dropdown-toggle .caret,
361 .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
362 border-top-color: @navbarLinkColorActive;
363 border-bottom-color: @navbarLinkColorActive;
366 // Right aligned menus need alt position
367 .navbar .pull-right > li > .dropdown-menu,
368 .navbar .nav > li > .dropdown-menu.pull-right {
384 .border-radius(6px 0 6px 6px);
390 // -------------------------
395 #gradient > .vertical(@navbarInverseBackgroundHighlight, @navbarInverseBackground);
396 border-color: @navbarInverseBorder;
401 color: @navbarInverseLinkColor;
402 text-shadow: 0 -1px 0 rgba(0,0,0,.25);
405 color: @navbarInverseLinkColorHover;
410 color: @navbarInverseBrandColor;
414 color: @navbarInverseText;
418 .nav > li > a:hover {
419 background-color: @navbarInverseLinkBackgroundHover;
420 color: @navbarInverseLinkColorHover;
424 .nav .active > a:hover,
425 .nav .active > a:focus {
426 color: @navbarInverseLinkColorActive;
427 background-color: @navbarInverseLinkBackgroundActive;
432 color: @navbarInverseLinkColor;
435 color: @navbarInverseLinkColorHover;
439 // Dividers in navbar
441 border-left-color: @navbarInverseBackground;
442 border-right-color: @navbarInverseBackgroundHighlight;
446 .nav li.dropdown.open > .dropdown-toggle,
447 .nav li.dropdown.active > .dropdown-toggle,
448 .nav li.dropdown.open.active > .dropdown-toggle {
449 background-color: @navbarInverseLinkBackgroundActive;
450 color: @navbarInverseLinkColorActive;
452 .nav li.dropdown > a:hover .caret,
453 .nav li.dropdown > a:focus .caret {
454 border-top-color: @navbarInverseLinkColorActive;
455 border-bottom-color: @navbarInverseLinkColorActive;
457 .nav li.dropdown > .dropdown-toggle .caret {
458 border-top-color: @navbarInverseLinkColor;
459 border-bottom-color: @navbarInverseLinkColor;
461 .nav li.dropdown.open > .dropdown-toggle .caret,
462 .nav li.dropdown.active > .dropdown-toggle .caret,
463 .nav li.dropdown.open.active > .dropdown-toggle .caret {
464 border-top-color: @navbarInverseLinkColorActive;
465 border-bottom-color: @navbarInverseLinkColorActive;
472 background-color: @navbarInverseSearchBackground;
473 border-color: @navbarInverseSearchBorder;
474 .box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
476 .placeholder(@navbarInverseSearchPlaceholderColor);
478 // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
483 text-shadow: 0 1px 0 @white;
484 background-color: @navbarInverseSearchBackgroundFocus;
486 .box-shadow(0 0 3px rgba(0,0,0,.15));
492 // Navbar collapse button
494 .buttonBackground(darken(@navbarInverseBackgroundHighlight, 5%), darken(@navbarInverseBackground, 5%));