From a2759b7bd2dcb007252802e1d887543e5e63fb1f Mon Sep 17 00:00:00 2001 From: Shane Nelson Date: Fri, 13 Oct 2017 19:09:28 -0400 Subject: [PATCH] Prevent horizontal scroll on mobile browsers if page wrapper is pushed off-screen --- src/theme/book.css | 4 ++-- src/theme/stylus/general.styl | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/theme/book.css b/src/theme/book.css index cce56a22..32cbbf1b 100644 --- a/src/theme/book.css +++ b/src/theme/book.css @@ -1,7 +1,7 @@ -html, -body { +html { font-family: "Open Sans", sans-serif; color: #333; + overflow-x: hidden; } body { margin: 0; diff --git a/src/theme/stylus/general.styl b/src/theme/stylus/general.styl index 9d2ff94c..1145e8fa 100644 --- a/src/theme/stylus/general.styl +++ b/src/theme/stylus/general.styl @@ -1,6 +1,7 @@ -html, body { +html { font-family: "Open Sans", sans-serif color: #333 + overflow-x: hidden } body {