2012-01-05 13:01:42 -05:00
|
|
|
// NAVBAR (FIXED AND STATIC)
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
|
2012-01-18 03:24:10 -05:00
|
|
|
// COMMON STYLES
|
|
|
|
// -------------
|
|
|
|
|
2012-01-05 13:01:42 -05:00
|
|
|
.navbar {
|
2012-03-11 23:16:39 -04:00
|
|
|
// Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
|
|
|
|
*position: relative;
|
|
|
|
*z-index: 2;
|
|
|
|
|
2012-01-05 13:01:42 -05:00
|
|
|
overflow: visible;
|
2012-01-29 02:40:52 -05:00
|
|
|
margin-bottom: @baseLineHeight;
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
2012-01-29 02:40:52 -05:00
|
|
|
|
2012-06-15 16:07:44 -04:00
|
|
|
// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
|
2012-01-05 13:01:42 -05:00
|
|
|
.navbar-inner {
|
2012-03-25 16:33:36 -04:00
|
|
|
min-height: @navbarHeight;
|
2012-01-29 02:40:52 -05:00
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 20px;
|
2012-01-18 03:24:10 -05:00
|
|
|
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
2012-01-29 02:40:52 -05:00
|
|
|
.border-radius(4px);
|
2012-04-01 00:06:16 -04:00
|
|
|
.box-shadow(~"0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1)");
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
2012-01-18 03:24:10 -05:00
|
|
|
|
2012-02-22 02:15:43 -05:00
|
|
|
// Set width to auto for default container
|
|
|
|
// We then reset it for fixed navbars in the #gridSystem mixin
|
|
|
|
.navbar .container {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
2012-01-29 17:07:14 -05:00
|
|
|
// Override the default collapsed state
|
2012-01-29 01:03:14 -05:00
|
|
|
.nav-collapse.collapse {
|
2012-01-29 17:07:14 -05:00
|
|
|
height: auto;
|
2012-01-29 01:03:14 -05:00
|
|
|
}
|
|
|
|
|
2012-01-28 18:09:23 -05:00
|
|
|
|
2012-01-27 16:20:02 -05:00
|
|
|
// Brand, links, text, and buttons
|
2012-01-05 13:01:42 -05:00
|
|
|
.navbar {
|
2012-02-19 17:53:07 -05:00
|
|
|
color: @navbarText;
|
2012-01-05 13:01:42 -05:00
|
|
|
// Hover and active states
|
2012-01-08 17:33:14 -05:00
|
|
|
.brand:hover {
|
2012-01-05 13:01:42 -05:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
// Website or project name
|
|
|
|
.brand {
|
|
|
|
float: left;
|
|
|
|
display: block;
|
2012-03-25 15:32:29 -04:00
|
|
|
// Vertically center the text given @navbarHeight
|
|
|
|
@elementHeight: 20px;
|
|
|
|
padding: ((@navbarHeight - @elementHeight) / 2 - 2) 20px ((@navbarHeight - @elementHeight) / 2 + 2);
|
2012-01-05 13:01:42 -05:00
|
|
|
margin-left: -20px; // negative indent to left-align the text down the page
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 200;
|
|
|
|
line-height: 1;
|
2012-03-15 15:21:27 -04:00
|
|
|
color: @navbarBrandColor;
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
|
|
|
// Plain text in topbar
|
2012-01-27 16:20:02 -05:00
|
|
|
.navbar-text {
|
|
|
|
margin-bottom: 0;
|
2012-03-11 20:53:17 -04:00
|
|
|
line-height: @navbarHeight;
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
2012-03-25 04:21:47 -04:00
|
|
|
// Janky solution for now to account for links outside the .nav
|
|
|
|
.navbar-link {
|
|
|
|
color: @navbarLinkColor;
|
|
|
|
&:hover {
|
|
|
|
color: @navbarLinkColorHover;
|
|
|
|
}
|
|
|
|
}
|
2012-01-05 13:01:42 -05:00
|
|
|
// Buttons in navbar
|
2012-01-14 20:16:46 -05:00
|
|
|
.btn,
|
|
|
|
.btn-group {
|
2012-02-20 22:14:26 -05:00
|
|
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
2012-01-14 20:16:46 -05:00
|
|
|
.btn-group .btn {
|
2012-04-10 17:19:10 -04:00
|
|
|
margin: 0; // then undo the margin here so we don't accidentally double it
|
2012-01-14 20:16:46 -05:00
|
|
|
}
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
|
|
|
|
2012-01-07 02:59:22 -05:00
|
|
|
// Navbar forms
|
|
|
|
.navbar-form {
|
|
|
|
margin-bottom: 0; // remove default bottom margin
|
2012-01-30 11:20:37 -05:00
|
|
|
.clearfix();
|
2012-01-07 03:26:58 -05:00
|
|
|
input,
|
2012-02-20 22:14:26 -05:00
|
|
|
select,
|
|
|
|
.radio,
|
|
|
|
.checkbox {
|
|
|
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
|
|
|
}
|
|
|
|
input,
|
2012-01-07 03:26:58 -05:00
|
|
|
select {
|
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2012-01-28 17:50:56 -05:00
|
|
|
input[type="image"],
|
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
2012-02-12 23:28:22 -05:00
|
|
|
.input-append,
|
|
|
|
.input-prepend {
|
|
|
|
margin-top: 6px;
|
|
|
|
white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
|
|
|
|
input {
|
|
|
|
margin-top: 0; // remove the margin on top since it's on the parent
|
|
|
|
}
|
|
|
|
}
|
2012-01-07 02:59:22 -05:00
|
|
|
}
|
|
|
|
|
2012-01-05 13:01:42 -05:00
|
|
|
// Navbar search
|
|
|
|
.navbar-search {
|
|
|
|
position: relative;
|
|
|
|
float: left;
|
2012-02-20 22:14:26 -05:00
|
|
|
.navbarVerticalAlign(28px); // Vertically center in navbar
|
2012-01-05 13:01:42 -05:00
|
|
|
margin-bottom: 0;
|
|
|
|
.search-query {
|
|
|
|
padding: 4px 9px;
|
|
|
|
#font > .sans-serif(13px, normal, 1);
|
|
|
|
color: @white;
|
2012-03-10 19:21:34 -05:00
|
|
|
background-color: @navbarSearchBackground;
|
|
|
|
border: 1px solid @navbarSearchBorder;
|
2012-04-25 11:16:59 -04:00
|
|
|
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
|
2012-01-05 13:01:42 -05:00
|
|
|
.transition(none);
|
|
|
|
|
2012-05-27 21:12:08 -04:00
|
|
|
.placeholder(@navbarSearchPlaceholderColor);
|
2012-03-10 19:15:54 -05:00
|
|
|
|
2012-02-12 14:17:46 -05:00
|
|
|
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
2012-01-05 13:01:42 -05:00
|
|
|
&:focus,
|
|
|
|
&.focused {
|
|
|
|
padding: 5px 10px;
|
|
|
|
color: @grayDark;
|
|
|
|
text-shadow: 0 1px 0 @white;
|
2012-03-10 19:21:34 -05:00
|
|
|
background-color: @navbarSearchBackgroundFocus;
|
2012-01-05 13:01:42 -05:00
|
|
|
border: 0;
|
|
|
|
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-02-22 00:12:16 -05:00
|
|
|
|
2012-01-29 02:40:52 -05:00
|
|
|
// FIXED NAVBAR
|
|
|
|
// ------------
|
2012-01-27 16:20:02 -05:00
|
|
|
|
2012-02-22 00:12:16 -05:00
|
|
|
// Shared (top/bottom) styles
|
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
2012-01-05 13:01:42 -05:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2012-01-07 07:07:53 -05:00
|
|
|
z-index: @zindexFixedNavbar;
|
2012-02-22 00:12:16 -05:00
|
|
|
margin-bottom: 0; // remove 18px margin for static navbar
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
2012-02-22 00:12:16 -05:00
|
|
|
.navbar-fixed-top .navbar-inner,
|
|
|
|
.navbar-fixed-bottom .navbar-inner {
|
2012-01-29 02:40:52 -05:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
.border-radius(0);
|
|
|
|
}
|
2012-01-05 13:01:42 -05:00
|
|
|
|
2012-02-28 01:34:25 -05:00
|
|
|
.navbar-fixed-top .container,
|
|
|
|
.navbar-fixed-bottom .container {
|
|
|
|
#grid > .core > .span(@gridColumns);
|
|
|
|
}
|
|
|
|
|
2012-02-22 00:12:16 -05:00
|
|
|
// Fixed to top
|
|
|
|
.navbar-fixed-top {
|
|
|
|
top: 0;
|
2012-06-28 23:59:16 -04:00
|
|
|
-webkit-box-shadow: 0 1px 10px rgba(0,0,0,.1);
|
|
|
|
-moz-box-shadow: 0 1px 10px rgba(0,0,0,.1);
|
|
|
|
box-shadow: 0 1px 10px rgba(0,0,0,.1);
|
2012-02-22 00:12:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Fixed to bottom
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
bottom: 0;
|
2012-06-28 23:59:16 -04:00
|
|
|
-webkit-box-shadow: 0 -1px 10px rgba(0,0,0,.1);
|
|
|
|
-moz-box-shadow: 0 -1px 10px rgba(0,0,0,.1);
|
|
|
|
box-shadow: 0 -1px 10px rgba(0,0,0,.1);
|
2012-02-22 00:12:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-05 13:01:42 -05:00
|
|
|
|
|
|
|
// NAVIGATION
|
|
|
|
// ----------
|
|
|
|
|
2012-01-07 23:40:28 -05:00
|
|
|
.navbar .nav {
|
2012-01-05 13:01:42 -05:00
|
|
|
position: relative;
|
|
|
|
left: 0;
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin: 0 10px 0 0;
|
2012-01-08 00:09:02 -05:00
|
|
|
}
|
|
|
|
.navbar .nav.pull-right {
|
|
|
|
float: right; // redeclare due to specificity
|
|
|
|
}
|
|
|
|
.navbar .nav > li {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Links
|
|
|
|
.navbar .nav > li > a {
|
|
|
|
float: none;
|
2012-03-25 15:32:29 -04:00
|
|
|
// Vertically center the text given @navbarHeight
|
|
|
|
@elementHeight: 20px;
|
2012-06-24 23:26:48 -04:00
|
|
|
padding: ((@navbarHeight - @elementHeight) / 2 - 1) 12px ((@navbarHeight - @elementHeight) / 2 + 1);
|
2012-01-08 00:09:02 -05:00
|
|
|
line-height: 19px;
|
2012-01-27 16:20:02 -05:00
|
|
|
color: @navbarLinkColor;
|
2012-01-08 00:09:02 -05:00
|
|
|
text-decoration: none;
|
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
|
|
}
|
2012-06-24 23:42:31 -04:00
|
|
|
.navbar .nav .dropdown-toggle .caret {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
2012-04-01 18:22:52 -04:00
|
|
|
// Buttons
|
|
|
|
.navbar .btn {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 4px 10px 4px;
|
|
|
|
// Vertically center the button given @navbarHeight
|
|
|
|
@elementHeight: 28px;
|
|
|
|
margin: ((@navbarHeight - @elementHeight) / 2 - 1) 5px ((@navbarHeight - @elementHeight) / 2);
|
|
|
|
line-height: @baseLineHeight;
|
|
|
|
}
|
|
|
|
.navbar .btn-group {
|
|
|
|
margin: 0;
|
|
|
|
// Vertically center the button given @navbarHeight
|
|
|
|
@elementHeight: 28px;
|
|
|
|
padding: ((@navbarHeight - @elementHeight) / 2 - 1) 5px ((@navbarHeight - @elementHeight) / 2);
|
|
|
|
}
|
2012-01-08 00:09:02 -05:00
|
|
|
// Hover
|
2012-05-17 03:23:11 -04:00
|
|
|
.navbar .nav > li > a:focus,
|
2012-01-08 00:09:02 -05:00
|
|
|
.navbar .nav > li > a:hover {
|
2012-02-12 17:01:58 -05:00
|
|
|
background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
|
2012-01-27 16:20:02 -05:00
|
|
|
color: @navbarLinkColorHover;
|
2012-01-08 00:09:02 -05:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Active nav items
|
2012-01-27 19:26:55 -05:00
|
|
|
.navbar .nav .active > a,
|
2012-05-17 03:23:11 -04:00
|
|
|
.navbar .nav .active > a:hover,
|
|
|
|
.navbar .nav .active > a:focus {
|
2012-03-10 14:23:05 -05:00
|
|
|
color: @navbarLinkColorActive;
|
2012-01-08 17:33:14 -05:00
|
|
|
text-decoration: none;
|
2012-03-10 14:23:05 -05:00
|
|
|
background-color: @navbarLinkBackgroundActive;
|
2012-01-08 00:09:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Dividers (basically a vertical hr)
|
2012-01-30 04:09:34 -05:00
|
|
|
.navbar .divider-vertical {
|
2012-01-27 16:20:02 -05:00
|
|
|
height: @navbarHeight;
|
2012-01-08 00:09:02 -05:00
|
|
|
width: 1px;
|
2012-01-30 04:09:34 -05:00
|
|
|
margin: 0 9px;
|
2012-01-08 00:09:02 -05:00
|
|
|
overflow: hidden;
|
2012-01-27 16:20:02 -05:00
|
|
|
background-color: @navbarBackground;
|
|
|
|
border-right: 1px solid @navbarBackgroundHighlight;
|
2012-01-08 00:09:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Secondary (floated right) nav in topbar
|
|
|
|
.navbar .nav.pull-right {
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2012-04-01 18:22:52 -04:00
|
|
|
// Navbar button for toggling navbar items in responsive layouts
|
|
|
|
// These definitions need to come after '.navbar .btn'
|
|
|
|
.navbar .btn-navbar {
|
|
|
|
display: none;
|
|
|
|
float: right;
|
|
|
|
padding: 7px 10px;
|
|
|
|
margin-left: 5px;
|
|
|
|
margin-right: 5px;
|
2012-06-24 23:26:48 -04:00
|
|
|
.buttonBackground(darken(@navbarBackgroundHighlight, 5%), darken(@navbarBackground, 5%));
|
2012-04-01 18:22:52 -04:00
|
|
|
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)");
|
|
|
|
}
|
|
|
|
.navbar .btn-navbar .icon-bar {
|
|
|
|
display: block;
|
|
|
|
width: 18px;
|
|
|
|
height: 2px;
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
.border-radius(1px);
|
|
|
|
.box-shadow(0 1px 0 rgba(0,0,0,.25));
|
|
|
|
}
|
|
|
|
.btn-navbar .icon-bar + .icon-bar {
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
2012-01-08 00:09:02 -05:00
|
|
|
|
|
|
|
|
|
|
|
// Dropdown menus
|
|
|
|
// --------------
|
|
|
|
|
|
|
|
// Menu position and menu carets
|
|
|
|
.navbar .dropdown-menu {
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
border-left: 7px solid transparent;
|
|
|
|
border-right: 7px solid transparent;
|
|
|
|
border-bottom: 7px solid #ccc;
|
2012-03-12 12:57:10 -04:00
|
|
|
border-bottom-color: @dropdownBorder;
|
2012-01-08 00:09:02 -05:00
|
|
|
position: absolute;
|
|
|
|
top: -7px;
|
2012-01-12 18:29:16 -05:00
|
|
|
left: 9px;
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
2012-01-08 00:09:02 -05:00
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
border-left: 6px solid transparent;
|
|
|
|
border-right: 6px solid transparent;
|
2012-03-12 12:57:10 -04:00
|
|
|
border-bottom: 6px solid @dropdownBackground;
|
2012-01-08 00:09:02 -05:00
|
|
|
position: absolute;
|
|
|
|
top: -6px;
|
2012-01-12 18:29:16 -05:00
|
|
|
left: 10px;
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
2012-01-08 00:09:02 -05:00
|
|
|
}
|
2012-03-05 23:20:42 -05:00
|
|
|
// Menu position and menu caret support for dropups via extra dropup class
|
2012-02-22 01:09:51 -05:00
|
|
|
.navbar-fixed-bottom .dropdown-menu {
|
2012-01-29 17:50:47 -05:00
|
|
|
&:before {
|
|
|
|
border-top: 7px solid #ccc;
|
2012-03-12 12:57:10 -04:00
|
|
|
border-top-color: @dropdownBorder;
|
2012-01-29 17:50:47 -05:00
|
|
|
border-bottom: 0;
|
|
|
|
bottom: -7px;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
&:after {
|
2012-03-12 12:57:10 -04:00
|
|
|
border-top: 6px solid @dropdownBackground;
|
2012-01-29 17:50:47 -05:00
|
|
|
border-bottom: 0;
|
|
|
|
bottom: -6px;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
}
|
2012-01-08 00:09:02 -05:00
|
|
|
// Dropdown toggle caret
|
2012-04-01 18:22:52 -04:00
|
|
|
.navbar .nav li.dropdown .dropdown-toggle .caret,
|
|
|
|
.navbar .nav li.dropdown.open .caret {
|
2012-01-21 18:24:06 -05:00
|
|
|
border-top-color: @white;
|
2012-01-29 17:50:47 -05:00
|
|
|
border-bottom-color: @white;
|
2012-01-08 00:09:02 -05:00
|
|
|
}
|
2012-04-01 18:22:52 -04:00
|
|
|
.navbar .nav li.dropdown.active .caret {
|
2012-01-12 18:29:16 -05:00
|
|
|
.opacity(100);
|
|
|
|
}
|
2012-01-08 00:09:02 -05:00
|
|
|
|
|
|
|
// Remove background color from open dropdown
|
2012-04-01 18:22:52 -04:00
|
|
|
.navbar .nav li.dropdown.open > .dropdown-toggle,
|
|
|
|
.navbar .nav li.dropdown.active > .dropdown-toggle,
|
|
|
|
.navbar .nav li.dropdown.open.active > .dropdown-toggle {
|
2012-01-08 00:09:02 -05:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2012-01-12 18:29:16 -05:00
|
|
|
// Dropdown link on hover
|
2012-05-17 03:23:11 -04:00
|
|
|
.navbar .nav li.dropdown.active > .dropdown-toggle:focus,
|
2012-04-01 18:22:52 -04:00
|
|
|
.navbar .nav li.dropdown.active > .dropdown-toggle:hover {
|
2012-01-21 18:24:06 -05:00
|
|
|
color: @white;
|
2012-01-12 18:29:16 -05:00
|
|
|
}
|
|
|
|
|
2012-01-08 00:09:02 -05:00
|
|
|
// Right aligned menus need alt position
|
2012-02-22 01:01:39 -05:00
|
|
|
// TODO: rejigger this at some point to simplify the selectors
|
2012-04-01 18:22:52 -04:00
|
|
|
.navbar .pull-right .dropdown-menu,
|
|
|
|
.navbar .dropdown-menu.pull-right {
|
2012-01-28 00:25:35 -05:00
|
|
|
left: auto;
|
2012-01-08 00:09:02 -05:00
|
|
|
right: 0;
|
|
|
|
&:before {
|
|
|
|
left: auto;
|
|
|
|
right: 12px;
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
2012-01-08 00:09:02 -05:00
|
|
|
&:after {
|
|
|
|
left: auto;
|
|
|
|
right: 13px;
|
2012-01-05 13:01:42 -05:00
|
|
|
}
|
2012-06-15 16:07:44 -04:00
|
|
|
}
|
2012-06-25 00:03:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
/* Subnav navbar
|
|
|
|
-------------------------------------------------- */
|
|
|
|
// In the future, we may make two options available for the navbar:
|
|
|
|
// a default state, the lighter one, and the darker one as an option
|
|
|
|
// to enable. This would prevent some overriding back to defaults.
|
|
|
|
|
|
|
|
|
|
|
|
// Override the default .navbar
|
|
|
|
.navbar-subnav {
|
|
|
|
height: 36px;
|
|
|
|
}
|
|
|
|
.navbar-subnav .navbar-inner {
|
|
|
|
min-height: 36px;
|
|
|
|
padding: 0;
|
2012-06-28 23:59:16 -04:00
|
|
|
#gradient > .vertical(#f9f9f9, #f1f1f1);
|
2012-06-25 00:03:39 -04:00
|
|
|
.box-shadow(none);
|
|
|
|
border: 1px solid #e5e5e5;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Change link colors back
|
|
|
|
.navbar-subnav .nav > li > a {
|
|
|
|
color: @linkColor;
|
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
|
|
|
}
|
|
|
|
.navbar-subnav .nav > li > a:hover {
|
|
|
|
color: @linkColorHover;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdown carets
|
|
|
|
.navbar-subnav .nav li.dropdown .dropdown-toggle .caret,
|
|
|
|
.navbar-subnav .nav li.dropdown.open .caret {
|
|
|
|
border-top-color: @linkColor;
|
|
|
|
border-bottom-color: @linkColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Open dropdown dropdown-toggle
|
|
|
|
.navbar-subnav .nav .open > a {
|
|
|
|
color: @linkColorHover;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-06-28 23:59:16 -04:00
|
|
|
// Fixed subnav on scroll, but only for 980px and up (sorry IE!)
|
|
|
|
.navbar-subnav-fixed {
|
|
|
|
position: fixed;
|
|
|
|
top: 40px;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1020; /* 10 less than .navbar-fixed to prevent any overlap */
|
|
|
|
border-color: #d5d5d5;
|
|
|
|
border-width: 0 0 1px; /* drop the border on the fixed edges */
|
|
|
|
-webkit-border-radius: 0;
|
|
|
|
-moz-border-radius: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
-webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 10px rgba(0,0,0,.1);
|
|
|
|
-moz-box-shadow: inset 0 1px 0 #fff, 0 1px 10px rgba(0,0,0,.1);
|
|
|
|
box-shadow: inset 0 1px 0 #fff, 0 1px 10px rgba(0,0,0,.1);
|
|
|
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); /* IE6-9 */
|
|
|
|
}
|
|
|
|
.navbar-subnav-fixed .nav {
|
|
|
|
float: none;
|
|
|
|
max-width: 970px;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 0 1px;
|
|
|
|
}
|
|
|
|
.navbar-subnav .nav > li:first-child > a,
|
|
|
|
.navbar-subnav .nav > li:first-child > a:hover {
|
|
|
|
-webkit-border-radius: 0;
|
|
|
|
-moz-border-radius: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|