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 {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2012-01-08 05:30:18 -05:00
|
|
|
// gradient is applied to it's 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-01-18 03:24:10 -05:00
|
|
|
background-color: @navbarBackground;
|
|
|
|
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
2012-01-05 13:01:42 -05:00
|
|
|
@shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
|
|
|
|
.box-shadow(@shadow);
|
|
|
|
}
|
2012-01-18 03:24:10 -05:00
|
|
|
|
2012-01-28 18:09:23 -05:00
|
|
|
// Navbar button for toggling navbar items in responsive layouts
|
|
|
|
.btn-navbar {
|
|
|
|
display: none;
|
|
|
|
float: right;
|
|
|
|
padding: 7px 10px;
|
2012-01-28 21:11:31 -05:00
|
|
|
margin-left: 5px;
|
|
|
|
margin-right: 5px;
|
2012-01-28 18:09:23 -05:00
|
|
|
.buttonBackground(@navbarBackgroundHighlight, @navbarBackground);
|
|
|
|
@shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);
|
|
|
|
.box-shadow(@shadow);
|
|
|
|
}
|
|
|
|
.btn-navbar .i-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 .i-bar + .i-bar {
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
2012-01-29 01:03:14 -05:00
|
|
|
.nav-collapse.collapse {
|
|
|
|
height: auto !important; // Required to be !important to override native collapse plugin
|
|
|
|
}
|
|
|
|
|
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 {
|
|
|
|
// 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;
|
|
|
|
padding: 8px 20px 12px;
|
|
|
|
margin-left: -20px; // negative indent to left-align the text down the page
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 200;
|
|
|
|
line-height: 1;
|
|
|
|
color: @white;
|
|
|
|
}
|
|
|
|
// Plain text in topbar
|
2012-01-27 16:20:02 -05:00
|
|
|
.navbar-text {
|
|
|
|
margin-bottom: 0;
|
2012-01-05 13:01:42 -05:00
|
|
|
line-height: 40px;
|
2012-01-27 16:20:02 -05:00
|
|
|
color: @navbarText;
|
2012-01-05 13:01:42 -05:00
|
|
|
a:hover {
|
|
|
|
color: @white;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Buttons in navbar
|
2012-01-14 20:16:46 -05:00
|
|
|
.btn,
|
|
|
|
.btn-group {
|
2012-01-05 13:01:42 -05:00
|
|
|
margin-top: 5px; // make buttons vertically centered in navbar
|
|
|
|
}
|
2012-01-14 20:16:46 -05:00
|
|
|
.btn-group .btn {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
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-07 03:26:58 -05:00
|
|
|
input,
|
|
|
|
select {
|
|
|
|
display: inline-block;
|
2012-01-27 17:21:17 -05:00
|
|
|
margin-top: 5px;
|
2012-01-07 03:26:58 -05:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2012-01-28 17:50:56 -05:00
|
|
|
.radio,
|
|
|
|
.checkbox {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
input[type="image"],
|
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
2012-01-07 02:59:22 -05:00
|
|
|
}
|
|
|
|
|
2012-01-05 13:01:42 -05:00
|
|
|
// Navbar search
|
|
|
|
.navbar-search {
|
|
|
|
position: relative;
|
|
|
|
float: left;
|
|
|
|
margin-top: 6px;
|
|
|
|
margin-bottom: 0;
|
|
|
|
.search-query {
|
|
|
|
padding: 4px 9px;
|
|
|
|
#font > .sans-serif(13px, normal, 1);
|
|
|
|
color: @white;
|
|
|
|
color: rgba(255,255,255,.75);
|
2012-01-27 19:40:14 -05:00
|
|
|
background: #666;
|
2012-01-18 03:24:10 -05:00
|
|
|
background: rgba(255,255,255,.3);
|
2012-01-05 13:01:42 -05:00
|
|
|
border: 1px solid #111;
|
|
|
|
@shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
|
|
|
|
.box-shadow(@shadow);
|
|
|
|
.transition(none);
|
|
|
|
|
|
|
|
// Placeholder text gets special styles; can't be bundled together though for some reason
|
2012-01-18 03:24:10 -05:00
|
|
|
.placeholder(@grayLighter);
|
|
|
|
|
2012-01-05 13:01:42 -05:00
|
|
|
// Hover states
|
|
|
|
&:hover {
|
|
|
|
color: @white;
|
|
|
|
background-color: @grayLight;
|
|
|
|
background-color: rgba(255,255,255,.5);
|
|
|
|
}
|
|
|
|
// Focus states (we use .focused since IE8 and down doesn't support :focus)
|
|
|
|
&:focus,
|
|
|
|
&.focused {
|
|
|
|
padding: 5px 10px;
|
|
|
|
color: @grayDark;
|
|
|
|
text-shadow: 0 1px 0 @white;
|
|
|
|
background-color: @white;
|
|
|
|
border: 0;
|
|
|
|
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-27 16:20:02 -05:00
|
|
|
// STATIC OR FIXED?
|
|
|
|
// ----------------
|
|
|
|
|
2012-01-05 13:01:42 -05:00
|
|
|
// Static navbar
|
|
|
|
.navbar-static {
|
|
|
|
margin-bottom: @baseLineHeight;
|
|
|
|
}
|
|
|
|
.navbar-static .navbar-inner {
|
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 20px;
|
|
|
|
.border-radius(4px);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fixed navbar
|
2012-01-27 16:20:02 -05:00
|
|
|
.navbar-fixed-top {
|
2012-01-05 13:01:42 -05:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2012-01-07 07:07:53 -05:00
|
|
|
z-index: @zindexFixedNavbar;
|
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 {
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Links
|
|
|
|
.navbar .nav > li > a {
|
|
|
|
float: none;
|
|
|
|
padding: 10px 10px 11px;
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
// Hover
|
|
|
|
.navbar .nav > li > a:hover {
|
|
|
|
background-color: transparent;
|
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,
|
|
|
|
.navbar .nav .active > a:hover {
|
2012-01-27 16:20:02 -05:00
|
|
|
color: @navbarLinkColorHover;
|
2012-01-08 17:33:14 -05:00
|
|
|
text-decoration: none;
|
2012-01-27 16:20:02 -05:00
|
|
|
background-color: @navbarBackground;
|
2012-01-08 00:09:02 -05:00
|
|
|
background-color: rgba(0,0,0,.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dividers (basically a vertical hr)
|
|
|
|
.navbar .vertical-divider {
|
2012-01-27 16:20:02 -05:00
|
|
|
height: @navbarHeight;
|
2012-01-08 00:09:02 -05:00
|
|
|
width: 1px;
|
|
|
|
margin: 0 5px;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Dropdown menus
|
|
|
|
// --------------
|
|
|
|
|
|
|
|
// Menu position and menu carets
|
|
|
|
.navbar .dropdown-menu {
|
2012-01-18 08:02:18 -05:00
|
|
|
margin-top: 1px;
|
2012-01-08 00:09:02 -05:00
|
|
|
.border-radius(4px);
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
border-left: 7px solid transparent;
|
|
|
|
border-right: 7px solid transparent;
|
|
|
|
border-bottom: 7px solid #ccc;
|
2012-01-12 18:29:16 -05:00
|
|
|
border-bottom-color: rgba(0,0,0,.2);
|
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-01-21 18:24:06 -05:00
|
|
|
border-bottom: 6px solid @white;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdown toggle caret
|
2012-01-14 20:16:46 -05:00
|
|
|
.navbar .nav .dropdown-toggle .caret,
|
|
|
|
.navbar .nav .open.dropdown .caret {
|
2012-01-21 18:24:06 -05:00
|
|
|
border-top-color: @white;
|
2012-01-08 00:09:02 -05:00
|
|
|
}
|
2012-01-12 18:29:16 -05:00
|
|
|
.navbar .nav .active .caret {
|
|
|
|
.opacity(100);
|
|
|
|
}
|
2012-01-08 00:09:02 -05:00
|
|
|
|
|
|
|
// Remove background color from open dropdown
|
2012-01-12 18:29:16 -05:00
|
|
|
.navbar .nav .open > .dropdown-toggle,
|
|
|
|
.navbar .nav .active > .dropdown-toggle,
|
|
|
|
.navbar .nav .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
|
|
|
|
.navbar .nav .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
|
|
|
|
.navbar .nav.pull-right .dropdown-menu {
|
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-01-28 18:42:07 -05:00
|
|
|
}
|