aboutsummaryrefslogtreecommitdiff
path: root/examples/offcanvas/offcanvas.css
diff options
context:
space:
mode:
authorUTCWebDev <[email protected]>2013-08-28 15:55:45 -0400
committerUTCWebDev <[email protected]>2013-08-28 15:55:45 -0400
commitee2e2ae0ae9991432b16ffd69eb4f22ccfb2869a (patch)
tree5c7754f234aef96c01e59a68bf8338d1be60a3bc /examples/offcanvas/offcanvas.css
parent5ce4b8c7ff95a01c0a02b940479d9b6ad21cb4de (diff)
downloadbootstrap-ee2e2ae0ae9991432b16ffd69eb4f22ccfb2869a.tar.xz
bootstrap-ee2e2ae0ae9991432b16ffd69eb4f22ccfb2869a.zip
Prevent X-scroll on small screens
html overflow-x must be hidden to prevent accidental x-scroll on small screens. This is more apparent with touch screens, where the user often gestures diagonally instead of a true vertical gesture.
Diffstat (limited to 'examples/offcanvas/offcanvas.css')
-rw-r--r--examples/offcanvas/offcanvas.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/offcanvas/offcanvas.css b/examples/offcanvas/offcanvas.css
index 8303a8630..06aad4bda 100644
--- a/examples/offcanvas/offcanvas.css
+++ b/examples/offcanvas/offcanvas.css
@@ -2,6 +2,9 @@
* Style tweaks
* --------------------------------------------------
*/
+html {
+ overflow-x: hidden;
+}
body {
padding-top: 70px;
}