mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-26 14:34:27 +02:00
Disable elastic scrolling/bounce, hide scrollbar
This commit is contained in:
committed by
GitHub
parent
ebe42090ac
commit
50af5fe3df
@@ -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;
|
||||
|
Reference in New Issue
Block a user