Commit 8bb7def2 authored by Mark Otto's avatar Mark Otto

Navbar refactor

* Now responsive by default (fits better with mobile-first approach)
* Requires `.nav-header` to group `.navbar-brand` and `.navbar-toggle`
for proper mobile display.
* Changed `.nav-collapse` to `.navbar-collapse`
* Simplified examples in docs
parent eac61de1
...@@ -52,9 +52,7 @@ ...@@ -52,9 +52,7 @@
<li> <li>
<a href="#navbar">Navbar</a> <a href="#navbar">Navbar</a>
<ul class="nav"> <ul class="nav">
<li><a href="#navbar-basic">Basic navbar</a></li> <li><a href="#navbar-default">Default navbar</a></li>
<li><a href="#navbar-nav">Nav links</a></li>
<li><a href="#navbar-forms">Forms in navbars</a></li>
<li><a href="#navbar-buttons">Buttons in navbars</a></li> <li><a href="#navbar-buttons">Buttons in navbars</a></li>
<li><a href="#navbar-text">Text in navbars</a></li> <li><a href="#navbar-text">Text in navbars</a></li>
<li><a href="#navbar-links">Links in navbars</a></li> <li><a href="#navbar-links">Links in navbars</a></li>
...@@ -62,8 +60,6 @@ ...@@ -62,8 +60,6 @@
<li><a href="#navbar-fixed-top">Fixed top navbar</a></li> <li><a href="#navbar-fixed-top">Fixed top navbar</a></li>
<li><a href="#navbar-fixed-bottom">Fixed bottom navbar</a></li> <li><a href="#navbar-fixed-bottom">Fixed bottom navbar</a></li>
<li><a href="#navbar-static-top">Static top navbar</a></li> <li><a href="#navbar-static-top">Static top navbar</a></li>
<li><a href="#navbar-responsive">Responsive navbar</a></li>
<li><a href="#navbar-scrollable">Scrollable responsive navbar</a></li>
<li><a href="#navbar-inverted">Inverted navbar</a></li> <li><a href="#navbar-inverted">Inverted navbar</a></li>
</ul> </ul>
</li> </li>
......
<header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav" role="banner"> <header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav" role="banner">
<div class="container"> <div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse"> <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
...@@ -7,7 +8,8 @@ ...@@ -7,7 +8,8 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a href="{{ page.base_url }}" class="navbar-brand">Bootstrap 3 RC2</a> <a href="{{ page.base_url }}" class="navbar-brand">Bootstrap 3 RC2</a>
<nav class="nav-collapse collapse bs-navbar-collapse" role="navigation"> </div>
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li{% if page.slug == "getting-started" %} class="active"{% endif %}> <li{% if page.slug == "getting-started" %} class="active"{% endif %}>
<a href="{{ page.base_url }}getting-started">Getting started</a> <a href="{{ page.base_url }}getting-started">Getting started</a>
......
...@@ -56,6 +56,9 @@ body { ...@@ -56,6 +56,9 @@ body {
.bs-docs-nav { .bs-docs-nav {
background-color: #563d7c; background-color: #563d7c;
} }
.bs-docs-nav .navbar-collapse {
border-color: #463265;
}
.bs-docs-nav .navbar-brand { .bs-docs-nav .navbar-brand {
color: #fff; color: #fff;
} }
...@@ -385,11 +388,10 @@ body { ...@@ -385,11 +388,10 @@ body {
} }
/* Tweak display of the examples */ /* Tweak display of the examples */
.bs-example + .prettyprint,
.bs-example + .highlight { .bs-example + .highlight {
margin-top: 0; margin: 0 -15px;
border-top-left-radius: 0; border-radius: 0;
border-top-right-radius: 0; border-width: 0 0 1px;
} }
/* Tweak content of examples for optimum awesome */ /* Tweak content of examples for optimum awesome */
...@@ -796,6 +798,15 @@ input.focused { ...@@ -796,6 +798,15 @@ input.focused {
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
box-shadow: none; box-shadow: none;
} }
.bs-example + .prettyprint,
.bs-example + .highlight {
margin-top: 0;
margin-left: 0;
margin-right: 0;
border-width: 1px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.carbonad { .carbonad {
margin: 0 !important; margin: 0 !important;
......
This diff is collapsed.
...@@ -2377,6 +2377,10 @@ input[type="button"].btn-block { ...@@ -2377,6 +2377,10 @@ input[type="button"].btn-block {
position: relative; position: relative;
} }
.dropdown-toggle:focus {
outline: 0;
}
.dropdown-menu { .dropdown-menu {
position: absolute; position: absolute;
top: 100%; top: 100%;
...@@ -2990,11 +2994,8 @@ button.close { ...@@ -2990,11 +2994,8 @@ button.close {
.navbar { .navbar {
position: relative; position: relative;
min-height: 50px; min-height: 50px;
padding-right: 15px;
padding-left: 15px;
margin-bottom: 20px; margin-bottom: 20px;
background-color: #eeeeee; background-color: #eeeeee;
border-radius: 4px;
} }
.navbar:before, .navbar:before,
...@@ -3017,104 +3018,118 @@ button.close { ...@@ -3017,104 +3018,118 @@ button.close {
clear: both; clear: both;
} }
.navbar-nav > li > a { @media (min-width: 768px) {
padding-top: 15px; .navbar {
padding-bottom: 15px;
line-height: 20px;
color: #777777;
border-radius: 4px; border-radius: 4px;
}
} }
.navbar-nav > li > a:hover, .navbar-header {
.navbar-nav > li > a:focus { padding-right: 15px;
color: #333333; padding-left: 15px;
background-color: transparent;
} }
.navbar-nav > .active > a, .navbar-header:before,
.navbar-nav > .active > a:hover, .navbar-header:after {
.navbar-nav > .active > a:focus { display: table;
color: #555555; content: " ";
background-color: #d5d5d5;
} }
.navbar-nav > .disabled > a, .navbar-header:after {
.navbar-nav > .disabled > a:hover, clear: both;
.navbar-nav > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
} }
.navbar-nav.pull-right { .navbar-header:before,
width: 100%; .navbar-header:after {
display: table;
content: " ";
} }
.navbar-static-top { .navbar-header:after {
border-radius: 0; clear: both;
} }
.navbar-fixed-top, @media (min-width: 768px) {
.navbar-fixed-bottom { .navbar-header {
position: fixed; float: left;
right: 0; }
left: 0;
z-index: 1030;
border-radius: 0;
} }
.navbar-fixed-top { .navbar-collapse {
top: 0; max-height: 360px;
padding-top: 5px;
padding-bottom: 5px;
overflow-x: visible;
overflow-y: scroll;
border-top: 1px solid #dcdcdc;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
-webkit-overflow-scrolling: touch;
} }
.navbar-fixed-bottom { .navbar-collapse:before,
bottom: 0; .navbar-collapse:after {
margin-bottom: 0; display: table;
content: " ";
} }
.nav-collapse { .navbar-collapse:after {
padding-bottom: 15px;
clear: both; clear: both;
} }
.nav-collapse:before, .navbar-collapse:before,
.nav-collapse:after { .navbar-collapse:after {
display: table; display: table;
content: " "; content: " ";
} }
.nav-collapse:after { .navbar-collapse:after {
clear: both; clear: both;
} }
.nav-collapse:before, @media (min-width: 768px) {
.nav-collapse:after { .navbar-collapse {
display: table; width: auto;
content: " "; padding-top: 0;
padding-bottom: 0;
border-top: 0;
}
} }
.nav-collapse:after { @media (min-width: 768px) {
clear: both; .navbar-static-top {
border-radius: 0;
}
} }
.navbar-toggle + .nav-collapse { .navbar-fixed-top,
width: 100%; .navbar-fixed-bottom {
margin-top: 50px; position: fixed;
right: 0;
left: 0;
z-index: 1030;
} }
@media (max-width: 768px) { @media (min-width: 768px) {
.nav-collapse-scrollable { .navbar-fixed-top,
max-height: 360px; .navbar-fixed-bottom {
margin-bottom: 15px; border-radius: 0;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
} }
} }
.navbar-fixed-top {
top: 0;
}
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0;
}
.navbar-brand { .navbar-brand {
float: left; float: left;
padding-top: 15px; padding-top: 15px;
padding-bottom: 15px; padding-bottom: 15px;
margin-right: 15px; margin-right: 7.5px;
font-size: 18px; font-size: 18px;
line-height: 20px; line-height: 20px;
color: #777777; color: #777777;
...@@ -3132,7 +3147,6 @@ button.close { ...@@ -3132,7 +3147,6 @@ button.close {
float: right; float: right;
padding: 9px 10px; padding: 9px 10px;
margin-top: 8px; margin-top: 8px;
margin-right: -10px;
margin-bottom: 8px; margin-bottom: 8px;
background-color: transparent; background-color: transparent;
border: 1px solid #dddddd; border: 1px solid #dddddd;
...@@ -3156,9 +3170,82 @@ button.close { ...@@ -3156,9 +3170,82 @@ button.close {
margin-top: 4px; margin-top: 4px;
} }
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px;
color: #777777;
}
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
color: #333333;
background-color: transparent;
}
.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus {
color: #555555;
background-color: #d5d5d5;
}
.navbar-nav > .disabled > a,
.navbar-nav > .disabled > a:hover,
.navbar-nav > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
.navbar-nav.pull-right {
width: 100%;
}
@media (max-width: 767px) {
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
box-shadow: none;
}
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px;
}
.navbar-nav .open .dropdown-menu > li > a {
line-height: 20px;
color: #777777;
}
.navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-nav .open .dropdown-menu > li > a:focus {
color: #333333;
background-color: transparent;
background-image: none;
}
.navbar-nav .open .dropdown-menu > .active > a,
.navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-nav .open .dropdown-menu > .active > a:focus {
color: #555555;
background-color: #d5d5d5;
}
.navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
}
.navbar-form { .navbar-form {
width: 100%;
padding: 10px 15px;
margin-top: 8px; margin-top: 8px;
margin-bottom: 8px; margin-bottom: 8px;
border-top: 1px solid #dcdcdc;
border-bottom: 1px solid #dcdcdc;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
...@@ -3184,6 +3271,21 @@ button.close { ...@@ -3184,6 +3271,21 @@ button.close {
} }
} }
@media (max-width: 767px) {
.navbar-form .form-group {
margin-bottom: 5px;
}
}
@media (min-width: 768px) {
.navbar-form {
width: auto;
padding-top: 0;
padding-bottom: 0;
border: 0;
}
}
.navbar-nav > li > .dropdown-menu { .navbar-nav > li > .dropdown-menu {
margin-top: 0; margin-top: 0;
border-top-right-radius: 0; border-top-right-radius: 0;
...@@ -3281,6 +3383,10 @@ button.close { ...@@ -3281,6 +3383,10 @@ button.close {
background-color: #ffffff; background-color: #ffffff;
} }
.navbar-inverse .navbar-collapse {
border-top-color: #101010;
}
.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus { .navbar-inverse .navbar-nav > .open > a:focus {
...@@ -3306,9 +3412,6 @@ button.close { ...@@ -3306,9 +3412,6 @@ button.close {
} }
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.nav-collapse {
clear: none;
}
.navbar-nav { .navbar-nav {
float: left; float: left;
margin-top: 0; margin-top: 0;
...@@ -3318,7 +3421,8 @@ button.close { ...@@ -3318,7 +3421,8 @@ button.close {
float: left; float: left;
} }
.navbar-nav > li > a { .navbar-nav > li > a {
border-radius: 0; padding-top: 15px;
padding-bottom: 15px;
} }
.navbar-nav.pull-right { .navbar-nav.pull-right {
width: auto; width: auto;
...@@ -3329,7 +3433,7 @@ button.close { ...@@ -3329,7 +3433,7 @@ button.close {
left: auto; left: auto;
display: none; display: none;
} }
.nav-collapse.collapse { .navbar-collapse.collapse {
display: block !important; display: block !important;
height: auto !important; height: auto !important;
padding-bottom: 0; padding-bottom: 0;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -21,6 +21,11 @@ ...@@ -21,6 +21,11 @@
position: relative; position: relative;
} }
// Prevent the focus on the dropdown toggle when closing dropdowns
.dropdown-toggle:focus {
outline: 0;
}
// The dropdown menu (ul) // The dropdown menu (ul)
.dropdown-menu { .dropdown-menu {
position: absolute; position: absolute;
......
...@@ -2,69 +2,88 @@ ...@@ -2,69 +2,88 @@
// Navbars // Navbars
// -------------------------------------------------- // --------------------------------------------------
// Wrapper and base class // Wrapper and base class
//
// Provide a static navbar from which we expand to create full-width, fixed, and
// other navbar variations.
.navbar { .navbar {
position: relative; position: relative;
min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode) min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
margin-bottom: @navbar-margin-bottom; margin-bottom: @navbar-margin-bottom;
padding-left: @navbar-padding-horizontal;
padding-right: @navbar-padding-horizontal;
background-color: @navbar-bg; background-color: @navbar-bg;
border-radius: @navbar-border-radius;
// Prevent floats from breaking the navbar // Prevent floats from breaking the navbar
.clearfix(); .clearfix();
@media (min-width: @grid-float-breakpoint) {
border-radius: @navbar-border-radius;
}
} }
// Navbar nav links
// -------------------------
.navbar-nav { // Navbar heading
> li > a { //
padding-top: ((@navbar-height - @line-height-computed) / 2); // Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
padding-bottom: ((@navbar-height - @line-height-computed) / 2); // styling of responsive aspects.
color: @navbar-link-color;
line-height: @line-height-computed;
border-radius: @border-radius-base;
&:hover,
&:focus {
color: @navbar-link-hover-color;
background-color: @navbar-link-hover-bg;
}
}
> .active > a {
&,
&:hover,
&:focus {
color: @navbar-link-active-color;
background-color: @navbar-link-active-bg;
}
}
> .disabled > a {
&,
&:hover,
&:focus {
color: @navbar-link-disabled-color;
background-color: @navbar-link-disabled-bg;
}
}
// Right aligned contents .navbar-header {
// Make them full width first so that they align properly on mobile padding-left: @navbar-padding-horizontal;
&.pull-right { padding-right: @navbar-padding-horizontal;
width: 100%; .clearfix();
@media (min-width: @grid-float-breakpoint) {
float: left;
} }
} }
// Navbar collapse (body)
//
// Group your navbar content into this for easy collapsing and expanding across
// various device sizes. By default, this content is collapsed when <768px, but
// will expand past that for a horizontal display.
//
// To start (on mobile devices) the navbar links, forms, and buttons are stacked
// vertically and include a `max-height` to overflow in case you have too much
// content for the user's viewport.
.navbar-collapse {
padding-top: 5px;
padding-bottom: 5px;
border-top: 1px solid darken(@navbar-bg, 7%);
box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
// Clear floated elements and prevent collapsing of padding
.clearfix();
// This is not automatically added to the `.navbar-fixed-top` because it causes
// z-index bugs in iOS7 (possibly earlier).
max-height: 360px;
overflow-x: visible;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
@media (min-width: @grid-float-breakpoint) {
width: auto;
padding-top: 0;
padding-bottom: 0;
border-top: 0;
}
}
// //
// Navbar alignment options // Navbar alignment options
// -------------------------------------------------- //
// Display the navbar across the entirity of the page or fixed it to the top or
// bottom of the page.
// Static navbar // Static top (unfixed, but 100% wide) navbar
.navbar-static-top { .navbar-static-top {
@media (min-width: @grid-float-breakpoint) {
border-radius: 0; border-radius: 0;
}
} }
// Fix the top/bottom navbars when screen real estate supports it // Fix the top/bottom navbars when screen real estate supports it
...@@ -74,7 +93,11 @@ ...@@ -74,7 +93,11 @@
right: 0; right: 0;
left: 0; left: 0;
z-index: @zindex-navbar-fixed; z-index: @zindex-navbar-fixed;
// Undo the rounded corners
@media (min-width: @grid-float-breakpoint) {
border-radius: 0; border-radius: 0;
}
} }
.navbar-fixed-top { .navbar-fixed-top {
top: 0; top: 0;
...@@ -84,51 +107,12 @@ ...@@ -84,51 +107,12 @@
margin-bottom: 0; // override .navbar defaults margin-bottom: 0; // override .navbar defaults
} }
.nav-collapse {
// Prevent overlap of `.navbar-brand` and `.navbar-toggle`
clear: both;
// Space out collapsed contents within the mobile navbar
padding-bottom: @navbar-padding-vertical;
// Clear floated elements and prevent collapsing of padding
.clearfix();
// When there is no `.navbar-brand` present (which normally sits between the
// navbar brand and toggle), prevent the nav from overlapping the toggle.
.navbar-toggle + & {
width: 100%;
margin-top: @navbar-height;
}
}
// Scrollable navbar navigation
//
// Sometimes you might have too many links in your fixed navbar and you need to
// maintain access to all that content. To help, add `.nav-collapse-scrollable`
// to your `.nav-collapse` to prevent the the content from flowing past the max-
// height of your browser.
//
// This is not automatically added to the `.navbar-fixed-top` because it causes
// z-index bugs in iOS7 (possibly earlier).
@media (max-width: @screen-small) {
.nav-collapse-scrollable {
margin-bottom: @navbar-padding-vertical;
max-height: 360px;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
}
//
// Navbar optional components
// --------------------------------------------------
// Brand/project name // Brand/project name
.navbar-brand { .navbar-brand {
float: left; float: left;
margin-right: 15px; margin-right: (@navbar-padding-horizontal / 2);
padding-top: @navbar-padding-vertical; padding-top: @navbar-padding-vertical;
padding-bottom: @navbar-padding-vertical; padding-bottom: @navbar-padding-vertical;
font-size: @font-size-large; font-size: @font-size-large;
...@@ -142,13 +126,17 @@ ...@@ -142,13 +126,17 @@
} }
} }
// Collapsible navbar toggle
// Navbar toggle
//
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
// JavaScript plugin.
.navbar-toggle { .navbar-toggle {
position: relative; position: relative;
float: right; float: right;
padding: 9px 10px; padding: 9px 10px;
.navbar-vertical-align(34px); .navbar-vertical-align(34px);
margin-right: -10px;
background-color: transparent; background-color: transparent;
border: 1px solid @navbar-toggle-border-color; border: 1px solid @navbar-toggle-border-color;
border-radius: @border-radius-base; border-radius: @border-radius-base;
...@@ -171,12 +159,126 @@ ...@@ -171,12 +159,126 @@
} }
} }
// Navbar nav links
//
// Builds on top of the `.nav` components with it's own modifier class to make
// the nav the full height of the horizontal nav (above 768px).
.navbar-nav {
> li > a {
padding-top: 10px;
padding-bottom: 10px;
color: @navbar-link-color;
line-height: @line-height-computed;
&:hover,
&:focus {
color: @navbar-link-hover-color;
background-color: @navbar-link-hover-bg;
}
}
> .active > a {
&,
&:hover,
&:focus {
color: @navbar-link-active-color;
background-color: @navbar-link-active-bg;
}
}
> .disabled > a {
&,
&:hover,
&:focus {
color: @navbar-link-disabled-color;
background-color: @navbar-link-disabled-bg;
}
}
// Right aligned contents
// Make them full width first so that they align properly on mobile
&.pull-right {
width: 100%;
}
@media (max-width: @screen-phone-max) {
// Dropdowns get custom display
.open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
box-shadow: none;
> li > a,
.dropdown-header {
padding: 5px 15px 5px 25px;
}
> li > a {
color: @navbar-link-color;
line-height: @line-height-computed;
&:hover,
&:focus {
color: @navbar-link-hover-color;
background-color: @navbar-link-hover-bg;
background-image: none;
}
}
> .active > a {
&,
&:hover,
&:focus {
color: @navbar-link-active-color;
background-color: @navbar-link-active-bg;
}
}
> .disabled > a {
&,
&:hover,
&:focus {
color: @navbar-link-disabled-color;
background-color: @navbar-link-disabled-bg;
}
}
}
}
}
// Navbar form // Navbar form
//
// Extension of the `.form-inline` with some extra flavor for optimum display in
// our navbars.
.navbar-form { .navbar-form {
width: 100%; // Counteract the float from `.pull-` classes
padding: 10px @navbar-padding-horizontal;
border-top: 1px solid darken(@navbar-bg, 7%);
border-bottom: 1px solid darken(@navbar-bg, 7%);
// Mixin behavior for optimum display
.form-inline(); .form-inline();
.navbar-vertical-align(@input-height-base); // Vertically center in navbar
.form-group {
@media (max-width: @screen-phone-max) {
margin-bottom: 5px;
}
}
// Vertically center in expanded, horizontal navbar
.navbar-vertical-align(@input-height-base);
// Undo 100% width for pull classes
@media (min-width: @grid-float-breakpoint) {
width: auto;
border: 0;
padding-top: 0;
padding-bottom: 0;
}
} }
// Dropdown menus // Dropdown menus
// Menu position and menu carets // Menu position and menu carets
...@@ -285,6 +387,10 @@ ...@@ -285,6 +387,10 @@
} }
} }
.navbar-collapse {
border-top-color: darken(@navbar-inverse-bg, 7%);
}
// Dropdowns // Dropdowns
.navbar-nav { .navbar-nav {
> .open > a { > .open > a {
...@@ -323,11 +429,6 @@ ...@@ -323,11 +429,6 @@
@media screen and (min-width: @grid-float-breakpoint) { @media screen and (min-width: @grid-float-breakpoint) {
// Undo clearing to keep nav and brand horizontal
.nav-collapse {
clear: none;
}
.navbar-nav { .navbar-nav {
float: left; float: left;
// undo margin to make nav extend full height of navbar // undo margin to make nav extend full height of navbar
...@@ -337,7 +438,8 @@ ...@@ -337,7 +438,8 @@
> li { > li {
float: left; float: left;
> a { > a {
border-radius: 0; padding-top: ((@navbar-height - @line-height-computed) / 2);
padding-bottom: ((@navbar-height - @line-height-computed) / 2);
} }
} }
...@@ -353,7 +455,7 @@ ...@@ -353,7 +455,7 @@
left: auto; left: auto;
display: none; display: none;
} }
.nav-collapse.collapse { .navbar-collapse.collapse {
display: block !important; display: block !important;
height: auto !important; height: auto !important;
padding-bottom: 0; // Override default setting padding-bottom: 0; // Override default setting
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment