2012-01-05 19:01:42 +01:00
|
|
|
// NAVBAR (FIXED AND STATIC)
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
|
2012-01-18 09:24:10 +01:00
|
|
|
// COMMON STYLES
|
|
|
|
// -------------
|
|
|
|
|
2012-01-05 19:01:42 +01:00
|
|
|
.navbar {
|
|
|
|
overflow: visible;
|
2012-01-29 08:40:52 +01:00
|
|
|
margin-bottom: @baseLineHeight;
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-29 08:40:52 +01:00
|
|
|
|
|
|
|
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
|
2012-01-05 19:01:42 +01:00
|
|
|
.navbar-inner {
|
2012-01-29 08:40:52 +01:00
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 20px;
|
2012-01-18 09:24:10 +01:00
|
|
|
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
2012-01-29 08:40:52 +01:00
|
|
|
.border-radius(4px);
|
2012-01-05 19:01:42 +01: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 09:24:10 +01:00
|
|
|
|
2012-01-29 00:09:23 +01:00
|
|
|
// Navbar button for toggling navbar items in responsive layouts
|
|
|
|
.btn-navbar {
|
|
|
|
display: none;
|
|
|
|
float: right;
|
|
|
|
padding: 7px 10px;
|
2012-01-29 03:11:31 +01:00
|
|
|
margin-left: 5px;
|
|
|
|
margin-right: 5px;
|
2012-01-29 00:09:23 +01: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);
|
|
|
|
}
|
2012-01-31 09:11:19 +01:00
|
|
|
.btn-navbar .icon-bar {
|
2012-01-29 00:09:23 +01:00
|
|
|
display: block;
|
|
|
|
width: 18px;
|
|
|
|
height: 2px;
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
.border-radius(1px);
|
|
|
|
.box-shadow(0 1px 0 rgba(0,0,0,.25));
|
|
|
|
}
|
2012-01-31 09:11:19 +01:00
|
|
|
.btn-navbar .icon-bar + .icon-bar {
|
2012-01-29 00:09:23 +01:00
|
|
|
margin-top: 3px;
|
|
|
|
}
|
2012-01-29 23:07:14 +01:00
|
|
|
// Override the default collapsed state
|
2012-01-29 07:03:14 +01:00
|
|
|
.nav-collapse.collapse {
|
2012-01-29 23:07:14 +01:00
|
|
|
height: auto;
|
2012-01-29 07:03:14 +01:00
|
|
|
}
|
|
|
|
|
2012-01-29 00:09:23 +01:00
|
|
|
|
2012-01-27 22:20:02 +01:00
|
|
|
// Brand, links, text, and buttons
|
2012-01-05 19:01:42 +01:00
|
|
|
.navbar {
|
2012-02-19 23:53:07 +01:00
|
|
|
color: @navbarText;
|
2012-01-05 19:01:42 +01:00
|
|
|
// Hover and active states
|
2012-01-08 23:33:14 +01:00
|
|
|
.brand:hover {
|
2012-01-05 19:01:42 +01: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 22:20:02 +01:00
|
|
|
.navbar-text {
|
|
|
|
margin-bottom: 0;
|
2012-01-05 19:01:42 +01:00
|
|
|
line-height: 40px;
|
|
|
|
}
|
|
|
|
// Buttons in navbar
|
2012-01-15 02:16:46 +01:00
|
|
|
.btn,
|
|
|
|
.btn-group {
|
2012-02-21 04:14:26 +01:00
|
|
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-15 02:16:46 +01:00
|
|
|
.btn-group .btn {
|
2012-02-13 05:28:22 +01:00
|
|
|
margin-top: 0; // then undo the margin here so we don't accidentally double it
|
2012-01-15 02:16:46 +01:00
|
|
|
}
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
|
|
|
|
2012-01-07 08:59:22 +01:00
|
|
|
// Navbar forms
|
|
|
|
.navbar-form {
|
|
|
|
margin-bottom: 0; // remove default bottom margin
|
2012-01-30 17:20:37 +01:00
|
|
|
.clearfix();
|
2012-01-07 09:26:58 +01:00
|
|
|
input,
|
2012-02-21 04:14:26 +01:00
|
|
|
select,
|
|
|
|
.radio,
|
|
|
|
.checkbox {
|
|
|
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
|
|
|
}
|
|
|
|
input,
|
2012-01-07 09:26:58 +01:00
|
|
|
select {
|
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2012-01-28 23:50:56 +01:00
|
|
|
input[type="image"],
|
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
2012-02-13 05:28:22 +01: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 08:59:22 +01:00
|
|
|
}
|
|
|
|
|
2012-01-05 19:01:42 +01:00
|
|
|
// Navbar search
|
|
|
|
.navbar-search {
|
|
|
|
position: relative;
|
|
|
|
float: left;
|
2012-02-21 04:14:26 +01:00
|
|
|
.navbarVerticalAlign(28px); // Vertically center in navbar
|
2012-01-05 19:01:42 +01:00
|
|
|
margin-bottom: 0;
|
|
|
|
.search-query {
|
|
|
|
padding: 4px 9px;
|
|
|
|
#font > .sans-serif(13px, normal, 1);
|
|
|
|
color: @white;
|
|
|
|
color: rgba(255,255,255,.75);
|
2012-01-28 01:40:14 +01:00
|
|
|
background: #666;
|
2012-01-18 09:24:10 +01:00
|
|
|
background: rgba(255,255,255,.3);
|
2012-01-05 19:01:42 +01: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 09:24:10 +01:00
|
|
|
.placeholder(@grayLighter);
|
|
|
|
|
2012-01-05 19:01:42 +01:00
|
|
|
// Hover states
|
|
|
|
&:hover {
|
|
|
|
color: @white;
|
|
|
|
background-color: @grayLight;
|
|
|
|
background-color: rgba(255,255,255,.5);
|
|
|
|
}
|
2012-02-12 20:17:46 +01:00
|
|
|
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
2012-01-05 19:01:42 +01:00
|
|
|
&: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-02-22 06:12:16 +01:00
|
|
|
|
2012-01-29 08:40:52 +01:00
|
|
|
// FIXED NAVBAR
|
|
|
|
// ------------
|
2012-01-27 22:20:02 +01:00
|
|
|
|
2012-02-22 06:12:16 +01:00
|
|
|
// Shared (top/bottom) styles
|
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
2012-01-05 19:01:42 +01:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2012-01-07 13:07:53 +01:00
|
|
|
z-index: @zindexFixedNavbar;
|
2012-02-22 06:12:16 +01:00
|
|
|
margin-bottom: 0; // remove 18px margin for static navbar
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-02-22 06:12:16 +01:00
|
|
|
.navbar-fixed-top .navbar-inner,
|
|
|
|
.navbar-fixed-bottom .navbar-inner {
|
2012-01-29 08:40:52 +01:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
.border-radius(0);
|
|
|
|
}
|
2012-01-05 19:01:42 +01:00
|
|
|
|
2012-02-22 06:12:16 +01:00
|
|
|
// Fixed to top
|
|
|
|
.navbar-fixed-top {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fixed to bottom
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-05 19:01:42 +01:00
|
|
|
|
|
|
|
// NAVIGATION
|
|
|
|
// ----------
|
|
|
|
|
2012-01-08 05:40:28 +01:00
|
|
|
.navbar .nav {
|
2012-01-05 19:01:42 +01:00
|
|
|
position: relative;
|
|
|
|
left: 0;
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin: 0 10px 0 0;
|
2012-01-08 06:09:02 +01: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 22:20:02 +01:00
|
|
|
color: @navbarLinkColor;
|
2012-01-08 06:09:02 +01:00
|
|
|
text-decoration: none;
|
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
|
|
}
|
|
|
|
// Hover
|
|
|
|
.navbar .nav > li > a:hover {
|
2012-02-12 23:01:58 +01:00
|
|
|
background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
|
2012-01-27 22:20:02 +01:00
|
|
|
color: @navbarLinkColorHover;
|
2012-01-08 06:09:02 +01:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Active nav items
|
2012-01-28 01:26:55 +01:00
|
|
|
.navbar .nav .active > a,
|
|
|
|
.navbar .nav .active > a:hover {
|
2012-01-27 22:20:02 +01:00
|
|
|
color: @navbarLinkColorHover;
|
2012-01-08 23:33:14 +01:00
|
|
|
text-decoration: none;
|
2012-01-27 22:20:02 +01:00
|
|
|
background-color: @navbarBackground;
|
2012-01-08 06:09:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Dividers (basically a vertical hr)
|
2012-01-30 10:09:34 +01:00
|
|
|
.navbar .divider-vertical {
|
2012-01-27 22:20:02 +01:00
|
|
|
height: @navbarHeight;
|
2012-01-08 06:09:02 +01:00
|
|
|
width: 1px;
|
2012-01-30 10:09:34 +01:00
|
|
|
margin: 0 9px;
|
2012-01-08 06:09:02 +01:00
|
|
|
overflow: hidden;
|
2012-01-27 22:20:02 +01:00
|
|
|
background-color: @navbarBackground;
|
|
|
|
border-right: 1px solid @navbarBackgroundHighlight;
|
2012-01-08 06:09:02 +01: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 14:02:18 +01:00
|
|
|
margin-top: 1px;
|
2012-01-08 06:09:02 +01: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-13 00:29:16 +01:00
|
|
|
border-bottom-color: rgba(0,0,0,.2);
|
2012-01-08 06:09:02 +01:00
|
|
|
position: absolute;
|
|
|
|
top: -7px;
|
2012-01-13 00:29:16 +01:00
|
|
|
left: 9px;
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-08 06:09:02 +01:00
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
border-left: 6px solid transparent;
|
|
|
|
border-right: 6px solid transparent;
|
2012-01-22 00:24:06 +01:00
|
|
|
border-bottom: 6px solid @white;
|
2012-01-08 06:09:02 +01:00
|
|
|
position: absolute;
|
|
|
|
top: -6px;
|
2012-01-13 00:29:16 +01:00
|
|
|
left: 10px;
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-08 06:09:02 +01:00
|
|
|
}
|
2012-01-29 23:50:47 +01:00
|
|
|
// Menu position and menu caret support for dropups via extra bottom-up class
|
2012-02-22 07:09:51 +01:00
|
|
|
.navbar-fixed-bottom .dropdown-menu {
|
2012-01-29 23:50:47 +01:00
|
|
|
&:before {
|
|
|
|
border-top: 7px solid #ccc;
|
|
|
|
border-top-color: rgba(0, 0, 0, 0.2);
|
|
|
|
border-bottom: 0;
|
|
|
|
bottom: -7px;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
border-top: 6px solid #ffffff;
|
|
|
|
border-bottom: 0;
|
|
|
|
bottom: -6px;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
}
|
2012-01-08 06:09:02 +01:00
|
|
|
// Dropdown toggle caret
|
2012-01-15 02:16:46 +01:00
|
|
|
.navbar .nav .dropdown-toggle .caret,
|
|
|
|
.navbar .nav .open.dropdown .caret {
|
2012-01-22 00:24:06 +01:00
|
|
|
border-top-color: @white;
|
2012-01-29 23:50:47 +01:00
|
|
|
border-bottom-color: @white;
|
2012-01-08 06:09:02 +01:00
|
|
|
}
|
2012-01-13 00:29:16 +01:00
|
|
|
.navbar .nav .active .caret {
|
|
|
|
.opacity(100);
|
|
|
|
}
|
2012-01-08 06:09:02 +01:00
|
|
|
|
|
|
|
// Remove background color from open dropdown
|
2012-01-13 00:29:16 +01:00
|
|
|
.navbar .nav .open > .dropdown-toggle,
|
|
|
|
.navbar .nav .active > .dropdown-toggle,
|
|
|
|
.navbar .nav .open.active > .dropdown-toggle {
|
2012-01-08 06:09:02 +01:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2012-01-13 00:29:16 +01:00
|
|
|
// Dropdown link on hover
|
|
|
|
.navbar .nav .active > .dropdown-toggle:hover {
|
2012-01-22 00:24:06 +01:00
|
|
|
color: @white;
|
2012-01-13 00:29:16 +01:00
|
|
|
}
|
|
|
|
|
2012-01-08 06:09:02 +01:00
|
|
|
// Right aligned menus need alt position
|
2012-02-22 07:01:39 +01:00
|
|
|
// TODO: rejigger this at some point to simplify the selectors
|
|
|
|
.navbar .nav.pull-right .dropdown-menu,
|
|
|
|
.navbar .nav .dropdown-menu.pull-right {
|
2012-01-28 06:25:35 +01:00
|
|
|
left: auto;
|
2012-01-08 06:09:02 +01:00
|
|
|
right: 0;
|
|
|
|
&:before {
|
|
|
|
left: auto;
|
|
|
|
right: 12px;
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-08 06:09:02 +01:00
|
|
|
&:after {
|
|
|
|
left: auto;
|
|
|
|
right: 13px;
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-29 00:42:07 +01:00
|
|
|
}
|