mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
fix responsive navbar
This commit is contained in:
parent
a5552a1d70
commit
a62810918f
Binary file not shown.
3
docs/assets/css/bootstrap-responsive.css
vendored
3
docs/assets/css/bootstrap-responsive.css
vendored
@ -667,7 +667,8 @@
|
|||||||
.btn-navbar {
|
.btn-navbar {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.nav-collapse {
|
.nav-collapse,
|
||||||
|
.nav-collapse.collapse {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
2
docs/assets/css/bootstrap.css
vendored
2
docs/assets/css/bootstrap.css
vendored
@ -2804,7 +2804,7 @@ input[type="submit"].btn.btn-mini {
|
|||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
}
|
}
|
||||||
.navbar-inner {
|
.navbar-inner {
|
||||||
height: 40px;
|
min-height: 40px;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
background-color: #2c2c2c;
|
background-color: #2c2c2c;
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="">
|
<li class="">
|
||||||
<a href="./index.html">Overview</a>
|
<a href="./index.html">Overview</a>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="">
|
<li class="">
|
||||||
<a href="./index.html">Overview</a>
|
<a href="./index.html">Overview</a>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="">
|
<li class="">
|
||||||
<a href="./index.html">Overview</a>
|
<a href="./index.html">Overview</a>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="">
|
<li class="">
|
||||||
<a href="./index.html">Overview</a>
|
<a href="./index.html">Overview</a>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="">
|
<li class="">
|
||||||
<a href="./index.html">Overview</a>
|
<a href="./index.html">Overview</a>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="active">
|
<li class="active">
|
||||||
<a href="./index.html">Overview</a>
|
<a href="./index.html">Overview</a>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="">
|
<li class="">
|
||||||
<a href="./index.html">Overview</a>
|
<a href="./index.html">Overview</a>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="">
|
<li class="">
|
||||||
<a href="./index.html">Overview</a>
|
<a href="./index.html">Overview</a>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="">
|
<li class="">
|
||||||
<a href="./index.html">Overview</a>
|
<a href="./index.html">Overview</a>
|
||||||
|
2
docs/templates/layout.mustache
vendored
2
docs/templates/layout.mustache
vendored
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="{{index}}">
|
<li class="{{index}}">
|
||||||
<a href="./index.html">{{_i}}Overview{{/i}}</a>
|
<a href="./index.html">{{_i}}Overview{{/i}}</a>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="./index.html">Bootstrap</a>
|
<a class="brand" href="./index.html">Bootstrap</a>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse collapse">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="">
|
<li class="">
|
||||||
<a href="./index.html">Overview</a>
|
<a href="./index.html">Overview</a>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
|
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
|
||||||
.navbar-inner {
|
.navbar-inner {
|
||||||
height: @navbarHeight;
|
min-height: @navbarHeight;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Hide everything in the navbar save .brand and toggle button */
|
// Hide everything in the navbar save .brand and toggle button */
|
||||||
.nav-collapse {
|
.nav-collapse, .nav-collapse.collapse {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
@ -128,4 +128,4 @@
|
|||||||
height: auto !important;
|
height: auto !important;
|
||||||
overflow: visible !important;
|
overflow: visible !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user