Commit bb059f28 authored by Mark Otto's avatar Mark Otto

only affix the sidenav in the docs if the viewport is >800px tall (fixes #8704 and avoids #8721)

parent 2bc67b33
...@@ -822,10 +822,6 @@ body { ...@@ -822,10 +822,6 @@ body {
.bs-sidebar { .bs-sidebar {
display: block; display: block;
} }
/* Show the hidden subnavs when space allows it */
.bs-sidebar .nav > .active > ul {
display: block;
}
/* Tweak display of docs jumbotrons */ /* Tweak display of docs jumbotrons */
.bs-masthead { .bs-masthead {
...@@ -850,7 +846,25 @@ body { ...@@ -850,7 +846,25 @@ body {
/* Tablets/desktops and up */ /* Tablets/desktops and up */
@media screen and (min-width: 992px) { @media screen and (min-width: 992px) {
.bs-header h1,
.bs-header p {
margin-right: 380px;
}
.carbonad {
position: absolute;
top: 20px;
right: 0;
padding: 15px !important;
width: 330px !important;
min-height: 132px;
}
}
@media screen and (min-width: 992px) and (min-height: 800px) {
/* Show the hidden subnavs when space allows it */
.bs-sidebar .nav > .active > ul {
display: block;
}
/* Widen the fixed sidebar */ /* Widen the fixed sidebar */
.bs-sidebar.affix, .bs-sidebar.affix,
.bs-sidebar.affix-bottom { .bs-sidebar.affix-bottom {
...@@ -868,18 +882,6 @@ body { ...@@ -868,18 +882,6 @@ body {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }
.bs-header h1,
.bs-header p {
margin-right: 380px;
}
.carbonad {
position: absolute;
top: 20px;
right: 0;
padding: 15px !important;
width: 330px !important;
min-height: 132px;
}
} }
/* Large desktops and up */ /* Large desktops and up */
......
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