2012-06-29 12:46:45 +08:00
|
|
|
//
|
2012-07-31 01:08:27 +08:00
|
|
|
// Navbars (Redux)
|
2012-06-29 12:46:45 +08:00
|
|
|
// --------------------------------------------------
|
2012-01-06 02:01:42 +08:00
|
|
|
|
|
|
|
|
2012-01-18 16:24:10 +08:00
|
|
|
// COMMON STYLES
|
|
|
|
// -------------
|
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
// Base class and wrapper
|
2012-01-06 02:01:42 +08:00
|
|
|
.navbar {
|
2012-07-31 01:08:27 +08:00
|
|
|
overflow: visible;
|
|
|
|
margin-bottom: @baseLineHeight;
|
|
|
|
color: @navbarText;
|
|
|
|
|
2012-03-12 11:16:39 +08: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-06 02:01:42 +08:00
|
|
|
}
|
2012-01-29 15:40:52 +08:00
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
// Inner for background effects
|
2012-06-16 04:07:44 +08:00
|
|
|
// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
|
2012-01-06 02:01:42 +08:00
|
|
|
.navbar-inner {
|
2012-03-26 04:33:36 +08:00
|
|
|
min-height: @navbarHeight;
|
2012-01-29 15:40:52 +08:00
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 20px;
|
2012-01-18 16:24:10 +08:00
|
|
|
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
2012-07-31 01:08:27 +08:00
|
|
|
border: 1px solid @navbarBorder;
|
2012-01-29 15:40:52 +08:00
|
|
|
.border-radius(4px);
|
2012-07-31 01:08:27 +08:00
|
|
|
.box-shadow(0 1px 4px rgba(0,0,0,.065));
|
2012-01-06 02:01:42 +08:00
|
|
|
}
|
2012-01-18 16:24:10 +08:00
|
|
|
|
2012-02-22 15:15:43 +08: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-30 06:07:14 +08:00
|
|
|
// Override the default collapsed state
|
2012-01-29 14:03:14 +08:00
|
|
|
.nav-collapse.collapse {
|
2012-01-30 06:07:14 +08:00
|
|
|
height: auto;
|
2012-01-29 14:03:14 +08:00
|
|
|
}
|
|
|
|
|
2012-01-29 07:09:23 +08:00
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
// Brand: website or project name
|
|
|
|
// -------------------------
|
|
|
|
.navbar .brand {
|
|
|
|
float: left;
|
|
|
|
display: block;
|
|
|
|
// Vertically center the text given @navbarHeight
|
2012-08-15 06:11:57 +08:00
|
|
|
padding: ((@navbarHeight - @baseLineHeight) / 2) 20px ((@navbarHeight - @baseLineHeight) / 2);
|
2012-07-31 01:08:27 +08:00
|
|
|
margin-left: -20px; // negative indent to left-align the text down the page
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 200;
|
|
|
|
color: @navbarBrandColor;
|
|
|
|
text-shadow: 0 1px 0 @navbarBackgroundHighlight;
|
|
|
|
&:hover {
|
2012-01-06 02:01:42 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2012-07-31 01:08:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Plain text in topbar
|
|
|
|
// -------------------------
|
|
|
|
.navbar-text {
|
|
|
|
margin-bottom: 0;
|
|
|
|
line-height: @navbarHeight;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Janky solution for now to account for links outside the .nav
|
|
|
|
// -------------------------
|
|
|
|
.navbar-link {
|
|
|
|
color: @navbarLinkColor;
|
|
|
|
&:hover {
|
|
|
|
color: @navbarLinkColorHover;
|
2012-01-15 09:16:46 +08:00
|
|
|
}
|
2012-01-06 02:01:42 +08:00
|
|
|
}
|
|
|
|
|
2012-08-14 13:57:40 +08:00
|
|
|
// Dividers in navbar
|
|
|
|
// -------------------------
|
|
|
|
.navbar .divider-vertical {
|
|
|
|
height: @navbarHeight;
|
|
|
|
margin: 0 9px;
|
|
|
|
border-left: 1px solid @navbarBackground;
|
|
|
|
border-right: 1px solid @navbarBackgroundHighlight;
|
|
|
|
}
|
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
// Buttons in navbar
|
|
|
|
// -------------------------
|
|
|
|
.navbar .btn,
|
|
|
|
.navbar .btn-group {
|
|
|
|
.navbarVerticalAlign(28px); // Vertically center in navbar
|
|
|
|
}
|
|
|
|
.navbar .btn-group .btn {
|
|
|
|
margin: 0; // then undo the margin here so we don't accidentally double it
|
|
|
|
}
|
|
|
|
|
2012-01-07 15:59:22 +08:00
|
|
|
// Navbar forms
|
|
|
|
.navbar-form {
|
|
|
|
margin-bottom: 0; // remove default bottom margin
|
2012-01-31 00:20:37 +08:00
|
|
|
.clearfix();
|
2012-01-07 16:26:58 +08:00
|
|
|
input,
|
2012-02-21 11:14:26 +08:00
|
|
|
select,
|
|
|
|
.radio,
|
|
|
|
.checkbox {
|
2012-07-31 03:15:08 +08:00
|
|
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
2012-02-21 11:14:26 +08:00
|
|
|
}
|
|
|
|
input,
|
2012-07-10 12:01:29 +08:00
|
|
|
select,
|
|
|
|
.btn {
|
2012-01-07 16:26:58 +08:00
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2012-01-29 06:50:56 +08:00
|
|
|
input[type="image"],
|
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
2012-02-13 12:28:22 +08: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 15:59:22 +08:00
|
|
|
}
|
|
|
|
|
2012-01-06 02:01:42 +08:00
|
|
|
// Navbar search
|
|
|
|
.navbar-search {
|
|
|
|
position: relative;
|
|
|
|
float: left;
|
2012-07-24 16:44:12 +08:00
|
|
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
2012-01-06 02:01:42 +08:00
|
|
|
margin-bottom: 0;
|
|
|
|
.search-query {
|
2012-07-14 01:58:20 +08:00
|
|
|
margin-bottom: 0;
|
2012-07-24 16:44:12 +08:00
|
|
|
padding: 4px 14px;
|
2012-01-06 02:01:42 +08:00
|
|
|
#font > .sans-serif(13px, normal, 1);
|
2012-07-24 16:44:12 +08:00
|
|
|
.border-radius(15px); // redeclare because of specificity of the type attribute
|
2012-01-06 02:01:42 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-02-22 13:12:16 +08:00
|
|
|
|
2012-08-18 02:46:23 +08:00
|
|
|
// Static navbar
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.navbar-static-top {
|
|
|
|
position: static;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 0; // remove 18px margin for default navbar
|
|
|
|
.navbar-inner {
|
|
|
|
.border-radius(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Fixed navbar
|
|
|
|
// -------------------------
|
2012-01-28 05:20:02 +08:00
|
|
|
|
2012-02-22 13:12:16 +08:00
|
|
|
// Shared (top/bottom) styles
|
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
2012-01-06 02:01:42 +08:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2012-01-07 20:07:53 +08:00
|
|
|
z-index: @zindexFixedNavbar;
|
2012-08-18 02:46:23 +08:00
|
|
|
margin-bottom: 0; // remove 18px margin for default navbar
|
2012-08-15 05:53:45 +08:00
|
|
|
.navbar-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
2012-01-06 02:01:42 +08:00
|
|
|
}
|
2012-02-22 13:12:16 +08:00
|
|
|
.navbar-fixed-top .navbar-inner,
|
|
|
|
.navbar-fixed-bottom .navbar-inner {
|
2012-01-29 15:40:52 +08:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
.border-radius(0);
|
|
|
|
}
|
2012-01-06 02:01:42 +08:00
|
|
|
|
2012-08-15 05:53:45 +08:00
|
|
|
// Reset container width
|
2012-02-28 14:34:25 +08:00
|
|
|
.navbar-fixed-top .container,
|
|
|
|
.navbar-fixed-bottom .container {
|
|
|
|
#grid > .core > .span(@gridColumns);
|
|
|
|
}
|
|
|
|
|
2012-02-22 13:12:16 +08:00
|
|
|
// Fixed to top
|
|
|
|
.navbar-fixed-top {
|
|
|
|
top: 0;
|
2012-07-31 01:08:27 +08:00
|
|
|
.navbar-inner {
|
2012-08-18 02:31:21 +08:00
|
|
|
.box-shadow(~"inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1)");
|
2012-07-31 01:08:27 +08:00
|
|
|
}
|
2012-02-22 13:12:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Fixed to bottom
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
bottom: 0;
|
2012-07-31 01:08:27 +08:00
|
|
|
.navbar-inner {
|
2012-08-18 02:31:21 +08:00
|
|
|
.box-shadow(~"inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1)");
|
2012-07-31 01:08:27 +08:00
|
|
|
}
|
2012-02-22 13:12:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-06 02:01:42 +08:00
|
|
|
|
|
|
|
// NAVIGATION
|
|
|
|
// ----------
|
|
|
|
|
2012-01-08 12:40:28 +08:00
|
|
|
.navbar .nav {
|
2012-01-06 02:01:42 +08:00
|
|
|
position: relative;
|
|
|
|
left: 0;
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin: 0 10px 0 0;
|
2012-01-08 13:09:02 +08: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-26 03:32:29 +08:00
|
|
|
// Vertically center the text given @navbarHeight
|
2012-08-15 06:11:57 +08:00
|
|
|
padding: ((@navbarHeight - @baseLineHeight) / 2) 15px ((@navbarHeight - @baseLineHeight) / 2);
|
2012-01-28 05:20:02 +08:00
|
|
|
color: @navbarLinkColor;
|
2012-01-08 13:09:02 +08:00
|
|
|
text-decoration: none;
|
2012-07-31 01:08:27 +08:00
|
|
|
text-shadow: 0 1px 0 @navbarBackgroundHighlight;
|
2012-01-08 13:09:02 +08:00
|
|
|
}
|
2012-06-25 11:42:31 +08:00
|
|
|
.navbar .nav .dropdown-toggle .caret {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
2012-01-08 13:09:02 +08:00
|
|
|
// Hover
|
2012-05-17 15:23:11 +08:00
|
|
|
.navbar .nav > li > a:focus,
|
2012-01-08 13:09:02 +08:00
|
|
|
.navbar .nav > li > a:hover {
|
2012-02-13 06:01:58 +08:00
|
|
|
background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
|
2012-01-28 05:20:02 +08:00
|
|
|
color: @navbarLinkColorHover;
|
2012-01-08 13:09:02 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Active nav items
|
2012-08-18 02:22:45 +08:00
|
|
|
.navbar .nav > .active > a,
|
|
|
|
.navbar .nav > .active > a:hover,
|
|
|
|
.navbar .nav > .active > a:focus {
|
2012-03-11 03:23:05 +08:00
|
|
|
color: @navbarLinkColorActive;
|
2012-01-09 06:33:14 +08:00
|
|
|
text-decoration: none;
|
2012-03-11 03:23:05 +08:00
|
|
|
background-color: @navbarLinkBackgroundActive;
|
2012-07-31 01:08:27 +08:00
|
|
|
-webkit-box-shadow: inset 0 3px 8px rgba(0,0,0,.125);
|
|
|
|
-moz-box-shadow: inset 0 3px 8px rgba(0,0,0,.125);
|
|
|
|
box-shadow: inset 0 3px 8px rgba(0,0,0,.125);
|
2012-01-08 13:09:02 +08:00
|
|
|
}
|
|
|
|
|
2012-04-02 06:22:52 +08: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-25 11:26:48 +08:00
|
|
|
.buttonBackground(darken(@navbarBackgroundHighlight, 5%), darken(@navbarBackground, 5%));
|
2012-04-02 06:22:52 +08: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 13:09:02 +08:00
|
|
|
|
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
|
2012-01-08 13:09:02 +08:00
|
|
|
// Dropdown menus
|
|
|
|
// --------------
|
|
|
|
|
|
|
|
// Menu position and menu carets
|
2012-08-15 05:29:31 +08:00
|
|
|
.navbar .nav > li > .dropdown-menu {
|
2012-01-08 13:09:02 +08:00
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
border-left: 7px solid transparent;
|
|
|
|
border-right: 7px solid transparent;
|
|
|
|
border-bottom: 7px solid #ccc;
|
2012-03-13 00:57:10 +08:00
|
|
|
border-bottom-color: @dropdownBorder;
|
2012-01-08 13:09:02 +08:00
|
|
|
position: absolute;
|
|
|
|
top: -7px;
|
2012-01-13 07:29:16 +08:00
|
|
|
left: 9px;
|
2012-01-06 02:01:42 +08:00
|
|
|
}
|
2012-01-08 13:09:02 +08:00
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
border-left: 6px solid transparent;
|
|
|
|
border-right: 6px solid transparent;
|
2012-03-13 00:57:10 +08:00
|
|
|
border-bottom: 6px solid @dropdownBackground;
|
2012-01-08 13:09:02 +08:00
|
|
|
position: absolute;
|
|
|
|
top: -6px;
|
2012-01-13 07:29:16 +08:00
|
|
|
left: 10px;
|
2012-01-06 02:01:42 +08:00
|
|
|
}
|
2012-01-08 13:09:02 +08:00
|
|
|
}
|
2012-03-06 12:20:42 +08:00
|
|
|
// Menu position and menu caret support for dropups via extra dropup class
|
2012-08-15 05:29:31 +08:00
|
|
|
.navbar-fixed-bottom .nav > li > .dropdown-menu {
|
2012-01-30 06:50:47 +08:00
|
|
|
&:before {
|
|
|
|
border-top: 7px solid #ccc;
|
2012-03-13 00:57:10 +08:00
|
|
|
border-top-color: @dropdownBorder;
|
2012-01-30 06:50:47 +08:00
|
|
|
border-bottom: 0;
|
|
|
|
bottom: -7px;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
&:after {
|
2012-03-13 00:57:10 +08:00
|
|
|
border-top: 6px solid @dropdownBackground;
|
2012-01-30 06:50:47 +08:00
|
|
|
border-bottom: 0;
|
|
|
|
bottom: -6px;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
}
|
2012-01-08 13:09:02 +08:00
|
|
|
|
|
|
|
// Remove background color from open dropdown
|
2012-04-02 06:22:52 +08:00
|
|
|
.navbar .nav li.dropdown.open > .dropdown-toggle,
|
|
|
|
.navbar .nav li.dropdown.active > .dropdown-toggle,
|
|
|
|
.navbar .nav li.dropdown.open.active > .dropdown-toggle {
|
2012-07-31 01:08:27 +08:00
|
|
|
background-color: @navbarLinkBackgroundActive;
|
|
|
|
color: @navbarLinkColorActive;
|
2012-01-08 13:09:02 +08:00
|
|
|
}
|
2012-07-31 01:08:27 +08:00
|
|
|
.navbar .nav li.dropdown > .dropdown-toggle .caret {
|
|
|
|
border-top-color: @navbarLinkColor;
|
|
|
|
border-bottom-color: @navbarLinkColor;
|
|
|
|
}
|
|
|
|
.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
|
|
|
|
.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
|
|
|
|
.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
|
|
|
|
border-top-color: @navbarLinkColorActive;
|
|
|
|
border-bottom-color: @navbarLinkColorActive;
|
2012-01-13 07:29:16 +08:00
|
|
|
}
|
|
|
|
|
2012-01-08 13:09:02 +08:00
|
|
|
// Right aligned menus need alt position
|
2012-08-15 07:24:58 +08:00
|
|
|
.navbar .pull-right > li > .dropdown-menu,
|
|
|
|
.navbar .nav > li > .dropdown-menu.pull-right {
|
2012-01-28 13:25:35 +08:00
|
|
|
left: auto;
|
2012-01-08 13:09:02 +08:00
|
|
|
right: 0;
|
|
|
|
&:before {
|
|
|
|
left: auto;
|
|
|
|
right: 12px;
|
2012-01-06 02:01:42 +08:00
|
|
|
}
|
2012-01-08 13:09:02 +08:00
|
|
|
&:after {
|
|
|
|
left: auto;
|
|
|
|
right: 13px;
|
2012-01-06 02:01:42 +08:00
|
|
|
}
|
2012-08-15 05:32:03 +08:00
|
|
|
.dropdown-menu {
|
|
|
|
left: auto;
|
|
|
|
right: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: -1px;
|
|
|
|
.border-radius(6px 0 6px 6px);
|
|
|
|
}
|
2012-06-16 04:07:44 +08:00
|
|
|
}
|
2012-06-25 12:03:39 +08:00
|
|
|
|
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
// Inverted navbar
|
|
|
|
// -------------------------
|
2012-06-25 12:03:39 +08:00
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
.navbar-inverse {
|
|
|
|
color: @navbarInverseText;
|
2012-06-25 12:03:39 +08:00
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
.navbar-inner {
|
|
|
|
#gradient > .vertical(@navbarInverseBackgroundHighlight, @navbarInverseBackground);
|
|
|
|
border-color: @navbarInverseBorder;
|
|
|
|
}
|
2012-06-25 12:03:39 +08:00
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
.brand,
|
|
|
|
.nav > li > a {
|
|
|
|
color: @navbarInverseLinkColor;
|
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
|
|
&:hover {
|
|
|
|
color: @navbarInverseLinkColorHover;
|
|
|
|
}
|
|
|
|
}
|
2012-07-05 14:31:30 +08:00
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
.nav > li > a:focus,
|
|
|
|
.nav > li > a:hover {
|
|
|
|
background-color: @navbarInverseLinkBackgroundHover;
|
|
|
|
color: @navbarInverseLinkColorHover;
|
|
|
|
}
|
2012-07-05 14:31:30 +08:00
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
.nav .active > a,
|
|
|
|
.nav .active > a:hover,
|
|
|
|
.nav .active > a:focus {
|
|
|
|
color: @navbarInverseLinkColorActive;
|
|
|
|
background-color: @navbarInverseLinkBackgroundActive;
|
|
|
|
}
|
2012-06-25 12:03:39 +08:00
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
// Inline text links
|
|
|
|
.navbar-link {
|
|
|
|
color: @navbarInverseLinkColor;
|
|
|
|
&:hover {
|
|
|
|
color: @navbarInverseLinkColorHover;
|
|
|
|
}
|
|
|
|
}
|
2012-06-29 12:20:40 +08:00
|
|
|
|
2012-08-14 13:57:40 +08:00
|
|
|
// Dividers in navbar
|
|
|
|
.divider-vertical {
|
|
|
|
border-left-color: @navbarInverseBackground;
|
|
|
|
border-right-color: @navbarInverseBackgroundHighlight;
|
|
|
|
}
|
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
// Dropdowns
|
|
|
|
.nav li.dropdown.open > .dropdown-toggle,
|
|
|
|
.nav li.dropdown.active > .dropdown-toggle,
|
|
|
|
.nav li.dropdown.open.active > .dropdown-toggle {
|
|
|
|
background-color: @navbarInverseLinkBackgroundActive;
|
|
|
|
color: @navbarInverseLinkColorActive;
|
|
|
|
}
|
|
|
|
.nav li.dropdown > .dropdown-toggle .caret {
|
|
|
|
border-top-color: @navbarInverseLinkColor;
|
|
|
|
border-bottom-color: @navbarInverseLinkColor;
|
|
|
|
}
|
|
|
|
.nav li.dropdown.open > .dropdown-toggle .caret,
|
|
|
|
.nav li.dropdown.active > .dropdown-toggle .caret,
|
|
|
|
.nav li.dropdown.open.active > .dropdown-toggle .caret {
|
|
|
|
border-top-color: @navbarInverseLinkColorActive;
|
|
|
|
border-bottom-color: @navbarInverseLinkColorActive;
|
|
|
|
}
|
2012-06-25 12:03:39 +08:00
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
// Navbar search
|
|
|
|
.navbar-search {
|
|
|
|
.search-query {
|
|
|
|
color: @white;
|
|
|
|
background-color: @navbarInverseSearchBackground;
|
|
|
|
border-color: @navbarInverseSearchBorder;
|
|
|
|
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
|
|
|
|
.transition(none);
|
|
|
|
.placeholder(@navbarInverseSearchPlaceholderColor);
|
|
|
|
|
|
|
|
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
|
|
|
&:focus,
|
|
|
|
&.focused {
|
|
|
|
padding: 5px 15px;
|
|
|
|
color: @grayDark;
|
|
|
|
text-shadow: 0 1px 0 @white;
|
|
|
|
background-color: @navbarInverseSearchBackgroundFocus;
|
|
|
|
border: 0;
|
|
|
|
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-07-06 01:37:23 +08:00
|
|
|
|
2012-07-31 01:08:27 +08:00
|
|
|
// Navbar collapse button
|
|
|
|
.btn-navbar {
|
|
|
|
.buttonBackground(darken(@navbarInverseBackgroundHighlight, 5%), darken(@navbarInverseBackground, 5%));
|
2012-07-06 01:37:23 +08:00
|
|
|
}
|
|
|
|
|
2012-06-25 12:03:39 +08:00
|
|
|
}
|
|
|
|
|
2012-07-13 04:50:27 +08:00
|
|
|
|
|
|
|
|