From 50af5fe3dfa5cffcbdacde655bb9806fea490509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Ant=C3=BAnez?= Date: Mon, 27 Feb 2017 20:40:39 +0100 Subject: [PATCH] Disable elastic scrolling/bounce, hide scrollbar --- static/css/base.css | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index 224b1c9..3f59465 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -302,6 +302,8 @@ dd { 1. Base --> Baseline: 8px = .8rem =========================================== */ +/* -- Disable elastic scrolling/bounce -- */ + html, body { width: 100%; @@ -309,15 +311,22 @@ body { overflow: hidden; } - #webslides { height: 100vh; overflow-x: hidden; overflow-y: scroll; -webkit-overflow-scrolling: touch; } +/* -- Hide scrollbar, but still being able to scroll -- */ -/* == Prototype faster - Vertical rhythm == */ +#webslides { + -ms-overflow-style: none; /* IE 10+ */ +} +#webslides::-webkit-scrollbar { + display: none; /* Safari and Chrome */ +} + +/* -- Prototype faster - Vertical rhythm -- */ body.baseline { background: url(../images/baseline.png) left top .8rem/.8rem;