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) 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;
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 color: @navbarLinkColor;
243 text-decoration: none;
244 text-shadow: 0 1px 0 @navbarBackgroundHighlight;
246 .navbar .nav .dropdown-toggle .caret {
251 .navbar .nav > li > a:focus,
252 .navbar .nav > li > a:hover {
253 background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
254 color: @navbarLinkColorHover;
255 text-decoration: none;
259 .navbar .nav > .active > a,
260 .navbar .nav > .active > a:hover,
261 .navbar .nav > .active > a:focus {
262 color: @navbarLinkColorActive;
263 text-decoration: none;
264 background-color: @navbarLinkBackgroundActive;
265 .box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
268 // Navbar button for toggling navbar items in responsive layouts
269 // These definitions need to come after '.navbar .btn'
270 .navbar .btn-navbar {
276 .buttonBackground(darken(@navbarBackgroundHighlight, 5%), darken(@navbarBackground, 5%));
277 .box-shadow(inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075));
279 .navbar .btn-navbar .icon-bar {
283 background-color: #f5f5f5;
285 .box-shadow(0 1px 0 rgba(0,0,0,.25));
287 .btn-navbar .icon-bar + .icon-bar {
296 // Menu position and menu carets
297 .navbar .nav > li > .dropdown-menu {
300 display: inline-block;
301 border-left: 7px solid transparent;
302 border-right: 7px solid transparent;
303 border-bottom: 7px solid #ccc;
304 border-bottom-color: @dropdownBorder;
311 display: inline-block;
312 border-left: 6px solid transparent;
313 border-right: 6px solid transparent;
314 border-bottom: 6px solid @dropdownBackground;
320 // Menu position and menu caret support for dropups via extra dropup class
321 .navbar-fixed-bottom .nav > li > .dropdown-menu {
323 border-top: 7px solid #ccc;
324 border-top-color: @dropdownBorder;
330 border-top: 6px solid @dropdownBackground;
337 // Remove background color from open dropdown
338 .navbar .nav li.dropdown.open > .dropdown-toggle,
339 .navbar .nav li.dropdown.active > .dropdown-toggle,
340 .navbar .nav li.dropdown.open.active > .dropdown-toggle {
341 background-color: @navbarLinkBackgroundActive;
342 color: @navbarLinkColorActive;
344 .navbar .nav li.dropdown > .dropdown-toggle .caret {
345 border-top-color: @navbarLinkColor;
346 border-bottom-color: @navbarLinkColor;
348 .navbar .nav li.dropdown.open > .dropdown-toggle .caret,
349 .navbar .nav li.dropdown.active > .dropdown-toggle .caret,
350 .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
351 border-top-color: @navbarLinkColorActive;
352 border-bottom-color: @navbarLinkColorActive;
355 // Right aligned menus need alt position
356 .navbar .pull-right > li > .dropdown-menu,
357 .navbar .nav > li > .dropdown-menu.pull-right {
373 .border-radius(6px 0 6px 6px);
379 // -------------------------
382 color: @navbarInverseText;
385 #gradient > .vertical(@navbarInverseBackgroundHighlight, @navbarInverseBackground);
386 border-color: @navbarInverseBorder;
391 color: @navbarInverseLinkColor;
392 text-shadow: 0 -1px 0 rgba(0,0,0,.25);
394 color: @navbarInverseLinkColorHover;
399 .nav > li > a:hover {
400 background-color: @navbarInverseLinkBackgroundHover;
401 color: @navbarInverseLinkColorHover;
405 .nav .active > a:hover,
406 .nav .active > a:focus {
407 color: @navbarInverseLinkColorActive;
408 background-color: @navbarInverseLinkBackgroundActive;
413 color: @navbarInverseLinkColor;
415 color: @navbarInverseLinkColorHover;
419 // Dividers in navbar
421 border-left-color: @navbarInverseBackground;
422 border-right-color: @navbarInverseBackgroundHighlight;
426 .nav li.dropdown.open > .dropdown-toggle,
427 .nav li.dropdown.active > .dropdown-toggle,
428 .nav li.dropdown.open.active > .dropdown-toggle {
429 background-color: @navbarInverseLinkBackgroundActive;
430 color: @navbarInverseLinkColorActive;
432 .nav li.dropdown > .dropdown-toggle .caret {
433 border-top-color: @navbarInverseLinkColor;
434 border-bottom-color: @navbarInverseLinkColor;
436 .nav li.dropdown.open > .dropdown-toggle .caret,
437 .nav li.dropdown.active > .dropdown-toggle .caret,
438 .nav li.dropdown.open.active > .dropdown-toggle .caret {
439 border-top-color: @navbarInverseLinkColorActive;
440 border-bottom-color: @navbarInverseLinkColorActive;
447 background-color: @navbarInverseSearchBackground;
448 border-color: @navbarInverseSearchBorder;
449 .box-shadow(inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15));
451 .placeholder(@navbarInverseSearchPlaceholderColor);
453 // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
458 text-shadow: 0 1px 0 @white;
459 background-color: @navbarInverseSearchBackgroundFocus;
461 .box-shadow(0 0 3px rgba(0,0,0,.15));
467 // Navbar collapse button
469 .buttonBackground(darken(@navbarInverseBackgroundHighlight, 5%), darken(@navbarInverseBackground, 5%));