1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 08:39:56 +02:00

fix broken navbar collapse

This commit is contained in:
Mark Otto
2012-01-29 16:35:55 -08:00
parent d637db1a23
commit 702d3b6dfe
13 changed files with 36 additions and 23 deletions

View File

@@ -22,6 +22,7 @@
}
// UP TO LANDSCAPE PHONE
// ---------------------
@@ -103,11 +104,11 @@
}
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
// --------------------------------------------------
@media (max-width: 768px) {
// GRID & CONTAINERS
// -----------------
// Remove width from containers
@@ -133,6 +134,7 @@
}
// PORTRAIT TABLET TO DEFAULT DESKTOP
// ----------------------------------
@@ -225,6 +227,7 @@
}
// TABLETS AND BELOW
// -----------------
@media (max-width: 940px) {
@@ -335,17 +338,25 @@
}
// Hide everything in the navbar save .brand and toggle button */
.nav-collapse.collapse {
.nav-collapse {
overflow: hidden;
height: 0;
}
.nav-collapse.collapse.in {
height: auto;
}
}
// DEFAULT DESKTOP
// ---------------
@media (min-width: 940px) {
.nav-collapse.collapse {
height: auto !important;
}
}
// LARGE DESKTOP & UP
// ------------------