2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Responsive: Navbar
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
2012-03-23 00:54:54 -04:00
|
|
|
// TABLETS AND BELOW
|
|
|
|
// -----------------
|
2012-11-30 18:33:56 -05:00
|
|
|
@media (max-width: @navbar-collapse-width) {
|
2012-03-23 00:54:54 -04:00
|
|
|
|
|
|
|
// UNFIX THE TOPBAR
|
|
|
|
// ----------------
|
|
|
|
// Remove any padding from the body
|
|
|
|
body {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
2012-06-28 23:59:16 -04:00
|
|
|
// Unfix the navbars
|
2012-05-14 01:11:35 -04:00
|
|
|
.navbar-fixed-top,
|
2012-08-17 19:32:34 -04:00
|
|
|
.navbar-fixed-bottom {
|
2012-03-23 00:54:54 -04:00
|
|
|
position: static;
|
2012-05-14 01:11:35 -04:00
|
|
|
}
|
|
|
|
.navbar-fixed-top {
|
2012-11-30 17:45:25 -05:00
|
|
|
margin-bottom: @line-height-base;
|
2012-03-23 00:54:54 -04:00
|
|
|
}
|
2012-05-14 01:11:35 -04:00
|
|
|
.navbar-fixed-bottom {
|
2012-11-30 17:45:25 -05:00
|
|
|
margin-top: @line-height-base;
|
2012-05-14 01:11:35 -04:00
|
|
|
}
|
2012-09-26 01:48:02 -04:00
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
2012-03-23 00:54:54 -04:00
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
.navbar .container {
|
|
|
|
width: auto;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
// Account for brand name
|
|
|
|
.navbar .brand {
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
margin: 0 0 0 -5px;
|
|
|
|
}
|
2012-04-15 02:06:00 -04:00
|
|
|
|
|
|
|
// COLLAPSIBLE NAVBAR
|
|
|
|
// ------------------
|
2012-03-23 00:54:54 -04:00
|
|
|
// Nav collapse clears brand
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse {
|
2012-04-05 15:48:17 -04:00
|
|
|
clear: both;
|
2012-03-23 00:54:54 -04:00
|
|
|
}
|
|
|
|
// Block-level the nav
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .nav {
|
2012-03-23 00:54:54 -04:00
|
|
|
float: none;
|
2012-11-30 17:45:25 -05:00
|
|
|
margin: 0 0 (@line-height-base / 2);
|
2012-03-23 00:54:54 -04:00
|
|
|
}
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .nav > li {
|
2012-03-23 00:54:54 -04:00
|
|
|
float: none;
|
|
|
|
}
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .nav > li > a {
|
2012-03-23 00:54:54 -04:00
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .nav > .divider-vertical {
|
2012-03-23 00:54:54 -04:00
|
|
|
display: none;
|
|
|
|
}
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .nav .nav-header {
|
2012-11-30 18:33:56 -05:00
|
|
|
color: @navbar-text;
|
2012-03-23 00:54:54 -04:00
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
// Nav and dropdown links in navbar
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .nav > li > a,
|
|
|
|
.nav-collapse .dropdown-menu a {
|
2012-08-01 22:18:42 -04:00
|
|
|
padding: 9px 15px;
|
2012-03-23 00:54:54 -04:00
|
|
|
font-weight: bold;
|
2012-11-30 18:33:56 -05:00
|
|
|
color: @navbar-link-color;
|
2012-10-01 02:11:54 -04:00
|
|
|
border-radius: 3px;
|
2012-03-23 00:54:54 -04:00
|
|
|
}
|
2012-04-01 18:22:52 -04:00
|
|
|
// Buttons
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .btn {
|
2012-04-01 18:22:52 -04:00
|
|
|
padding: 4px 10px 4px;
|
|
|
|
font-weight: normal;
|
2012-11-30 17:45:25 -05:00
|
|
|
border-radius: @border-radius-base;
|
2012-04-01 18:22:52 -04:00
|
|
|
}
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .dropdown-menu li + li a {
|
2012-03-23 00:54:54 -04:00
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .nav > li > a:hover,
|
|
|
|
.nav-collapse .dropdown-menu a:hover {
|
2012-11-30 18:33:56 -05:00
|
|
|
background-color: @navbar-background;
|
2012-03-23 00:54:54 -04:00
|
|
|
}
|
2012-10-08 00:43:37 -04:00
|
|
|
.navbar-inverse .nav-collapse .nav > li > a,
|
|
|
|
.navbar-inverse .nav-collapse .dropdown-menu a {
|
2012-11-30 18:33:56 -05:00
|
|
|
color: @navbar-inverse-link-color;
|
2012-10-08 00:43:37 -04:00
|
|
|
}
|
2012-08-01 12:18:00 -04:00
|
|
|
.navbar-inverse .nav-collapse .nav > li > a:hover,
|
|
|
|
.navbar-inverse .nav-collapse .dropdown-menu a:hover {
|
2012-11-30 18:33:56 -05:00
|
|
|
background-color: @navbar-inverse-background;
|
2012-08-01 12:18:00 -04:00
|
|
|
}
|
2012-04-01 18:22:52 -04:00
|
|
|
// Buttons in the navbar
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse.in .btn-group {
|
2012-04-01 18:22:52 -04:00
|
|
|
margin-top: 5px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2012-03-23 00:54:54 -04:00
|
|
|
// Dropdowns in the navbar
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .dropdown-menu {
|
2012-03-23 00:54:54 -04:00
|
|
|
position: static;
|
|
|
|
top: auto;
|
|
|
|
left: auto;
|
|
|
|
float: none;
|
2012-09-27 14:45:37 -04:00
|
|
|
display: none;
|
2012-03-23 00:54:54 -04:00
|
|
|
max-width: none;
|
|
|
|
margin: 0 15px;
|
|
|
|
padding: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
2012-10-01 02:11:54 -04:00
|
|
|
border-radius: 0;
|
2012-03-23 00:54:54 -04:00
|
|
|
.box-shadow(none);
|
|
|
|
}
|
2012-11-02 12:36:51 -04:00
|
|
|
.nav-collapse .open > .dropdown-menu {
|
|
|
|
display: block;
|
2012-09-27 14:45:37 -04:00
|
|
|
}
|
|
|
|
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .dropdown-menu:before,
|
|
|
|
.nav-collapse .dropdown-menu:after {
|
2012-03-23 00:54:54 -04:00
|
|
|
display: none;
|
|
|
|
}
|
2012-04-15 02:06:00 -04:00
|
|
|
.nav-collapse .dropdown-menu .divider {
|
2012-03-23 00:54:54 -04:00
|
|
|
display: none;
|
|
|
|
}
|
2012-08-21 17:07:20 -04:00
|
|
|
.nav-collapse .nav > li > .dropdown-menu {
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2012-03-23 00:54:54 -04:00
|
|
|
// Forms in navbar
|
2012-04-01 18:22:52 -04:00
|
|
|
.nav-collapse .navbar-form,
|
|
|
|
.nav-collapse .navbar-search {
|
2012-03-23 00:54:54 -04:00
|
|
|
float: none;
|
2012-11-30 17:45:25 -05:00
|
|
|
padding: (@line-height-base / 2) 15px;
|
|
|
|
margin: (@line-height-base / 2) 0;
|
2012-11-30 18:33:56 -05:00
|
|
|
border-top: 1px solid @navbar-background;
|
|
|
|
border-bottom: 1px solid @navbar-background;
|
2012-09-12 18:48:56 -04:00
|
|
|
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1)");
|
2012-03-23 00:54:54 -04:00
|
|
|
}
|
2012-08-21 17:07:20 -04:00
|
|
|
.navbar-inverse .nav-collapse .navbar-form,
|
|
|
|
.navbar-inverse .nav-collapse .navbar-search {
|
2012-11-30 18:33:56 -05:00
|
|
|
border-top-color: @navbar-inverse-background;
|
|
|
|
border-bottom-color: @navbar-inverse-background;
|
2012-08-21 17:07:20 -04:00
|
|
|
}
|
2012-03-23 00:54:54 -04:00
|
|
|
// Pull right (secondary) nav content
|
2012-04-01 18:22:52 -04:00
|
|
|
.navbar .nav-collapse .nav.pull-right {
|
2012-03-23 00:54:54 -04:00
|
|
|
float: none;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2012-04-15 02:06:00 -04:00
|
|
|
// Hide everything in the navbar save .brand and toggle button */
|
|
|
|
.nav-collapse,
|
|
|
|
.nav-collapse.collapse {
|
|
|
|
overflow: hidden;
|
|
|
|
height: 0;
|
2012-03-23 00:54:54 -04:00
|
|
|
}
|
|
|
|
// Navbar button
|
2012-04-01 18:22:52 -04:00
|
|
|
.navbar .btn-navbar {
|
2012-03-23 00:54:54 -04:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2012-04-15 02:06:00 -04:00
|
|
|
// STATIC NAVBAR
|
|
|
|
// -------------
|
2012-09-26 01:48:02 -04:00
|
|
|
.navbar-static {
|
2012-04-15 02:06:00 -04:00
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
2012-03-23 00:54:54 -04:00
|
|
|
}
|
2012-06-28 23:59:16 -04:00
|
|
|
|
|
|
|
|
2012-03-23 00:54:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DEFAULT DESKTOP
|
|
|
|
// ---------------
|
|
|
|
|
2012-11-30 18:33:56 -05:00
|
|
|
@media (min-width: @navbar-collapse-width-desktop) {
|
2012-06-25 00:03:39 -04:00
|
|
|
|
|
|
|
// Required to make the collapsing navbar work on regular desktops
|
2012-03-23 00:54:54 -04:00
|
|
|
.nav-collapse.collapse {
|
|
|
|
height: auto !important;
|
|
|
|
overflow: visible !important;
|
|
|
|
}
|
2012-06-25 00:03:39 -04:00
|
|
|
|
|
|
|
}
|