aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-29 12:28:54 -0700
committerMark Otto <[email protected]>2013-07-29 12:28:54 -0700
commit7b42b8b0fefa3511862040c58aaaf8f8b6800cbb (patch)
treee79d8efbaed2260226d7c8e087f0d38858cf4b6a
parent6c44246dc9e61c552a5d6f1d30732e458933d653 (diff)
downloadbootstrap-7b42b8b0fefa3511862040c58aaaf8f8b6800cbb.tar.xz
bootstrap-7b42b8b0fefa3511862040c58aaaf8f8b6800cbb.zip
fixes #8797: only expand submenu docs links at >768px
-rw-r--r--assets/css/docs.css9
1 files changed, 5 insertions, 4 deletions
diff --git a/assets/css/docs.css b/assets/css/docs.css
index 2064df40b..af053d4b2 100644
--- a/assets/css/docs.css
+++ b/assets/css/docs.css
@@ -261,12 +261,9 @@ body {
/* Nav: second level (shown on .active) */
.bs-sidebar .nav .nav {
- display: none;
+ display: none; /* Hide by default, but at >768px, show it */
margin-bottom: 8px;
}
-.bs-sidebar .nav > .active > ul {
- display: block;
-}
.bs-sidebar .nav .nav > li > a {
padding-top: 3px;
padding-bottom: 3px;
@@ -792,6 +789,10 @@ input.focused {
.bs-sidebar {
display: block;
}
+ /* Show the hidden subnavs when space allows it */
+ .bs-sidebar .nav > .active > ul {
+ display: block;
+ }
/* Tweak display of docs jumbotrons */
.bs-masthead {