Commit 223e0321 authored by Mark Otto's avatar Mark Otto

Fix #9174: pad bottom of navbar collapsed content and clear floated contents

parent 6da34652
...@@ -2869,6 +2869,30 @@ button.close { ...@@ -2869,6 +2869,30 @@ button.close {
margin-bottom: 0; margin-bottom: 0;
} }
.nav-collapse {
padding-bottom: 15px;
}
.nav-collapse:before,
.nav-collapse:after {
display: table;
content: " ";
}
.nav-collapse:after {
clear: both;
}
.nav-collapse:before,
.nav-collapse:after {
display: table;
content: " ";
}
.nav-collapse:after {
clear: both;
}
@media (max-width: 768px) { @media (max-width: 768px) {
.nav-collapse-scrollable { .nav-collapse-scrollable {
max-height: 360px; max-height: 360px;
...@@ -3103,6 +3127,7 @@ button.close { ...@@ -3103,6 +3127,7 @@ button.close {
.nav-collapse.collapse { .nav-collapse.collapse {
display: block !important; display: block !important;
height: auto !important; height: auto !important;
padding-bottom: 0;
overflow: visible !important; overflow: visible !important;
} }
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -82,14 +82,18 @@ ...@@ -82,14 +82,18 @@
} }
.navbar-fixed-top { .navbar-fixed-top {
top: 0; top: 0;
.nav-collapse {
}
} }
.navbar-fixed-bottom { .navbar-fixed-bottom {
bottom: 0; bottom: 0;
margin-bottom: 0; // override .navbar defaults margin-bottom: 0; // override .navbar defaults
} }
.nav-collapse {
// Space out collapsed contents within the mobile navbar
padding-bottom: @navbar-padding-vertical;
// Clear floated elements and prevent collapsing of padding
.clearfix();
}
// Scrollable navbar navigation // Scrollable navbar navigation
// //
...@@ -353,6 +357,7 @@ ...@@ -353,6 +357,7 @@
.nav-collapse.collapse { .nav-collapse.collapse {
display: block !important; display: block !important;
height: auto !important; height: auto !important;
padding-bottom: 0; // Override default setting
overflow: visible !important; overflow: visible !important;
} }
......
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