Rollup merge of #28013 - artemshitov:rustbook-scrolling, r=steveklabnik

As of now, when you open a page in the Rust book and other books made with `rustbook`, you cannot scroll with your keyboard, whether using spacebar or arrow keys, unless you explicitly focus on the content div by clicking.

This PR fixes the issue by removing the bound on the content div size and by sticking the TOC with `position: fixed` rather than restricting the content to the window height.

r? @steveklabnik
This commit is contained in:
Manish Goregaokar 2015-08-28 03:38:36 +05:30
commit 71ecc42eed

View file

@ -27,7 +27,7 @@ h1, h2, h3, h4, h5, h6 {
@media only screen {
#toc {
position: absolute;
position: fixed;
left: 0px;
top: 0px;
bottom: 0px;
@ -44,11 +44,9 @@ h1, h2, h3, h4, h5, h6 {
#page-wrapper {
position: absolute;
overflow-y: auto;
left: 310px;
right: 0px;
top: 0px;
bottom: 0px;
box-sizing: border-box;
background: none repeat scroll 0% 0% #FFF;
-webkit-overflow-scrolling: touch;