From c891fae175ecb096a847877d2e4f238ceef9f34b Mon Sep 17 00:00:00 2001 From: Artem Shitov Date: Wed, 26 Aug 2015 16:20:57 +0300 Subject: [PATCH 1/2] Fix keyboard scrolling in rustbook --- src/rustbook/static/rustbook.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rustbook/static/rustbook.css b/src/rustbook/static/rustbook.css index 3e0537c5551f6..84cccda8172be 100644 --- a/src/rustbook/static/rustbook.css +++ b/src/rustbook/static/rustbook.css @@ -27,7 +27,7 @@ h1, h2, h3, h4, h5, h6 { @media only screen { #toc { - position: absolute; + position: fixed; left: 0px; top: 0px; bottom: 0px; @@ -48,7 +48,6 @@ h1, h2, h3, h4, h5, h6 { left: 310px; right: 0px; top: 0px; - bottom: 0px; box-sizing: border-box; background: none repeat scroll 0% 0% #FFF; -webkit-overflow-scrolling: touch; From b39201637dcd8be3994b1755550d2ab4d63e3657 Mon Sep 17 00:00:00 2001 From: Artem Shitov Date: Wed, 26 Aug 2015 16:28:31 +0300 Subject: [PATCH 2/2] Remove redundant overflowing rule --- src/rustbook/static/rustbook.css | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rustbook/static/rustbook.css b/src/rustbook/static/rustbook.css index 84cccda8172be..6b9e7aa58f247 100644 --- a/src/rustbook/static/rustbook.css +++ b/src/rustbook/static/rustbook.css @@ -44,7 +44,6 @@ h1, h2, h3, h4, h5, h6 { #page-wrapper { position: absolute; - overflow-y: auto; left: 310px; right: 0px; top: 0px;