From 3ef448679ee10578e81d8481cf5d5185be9dcd31 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Mon, 3 Oct 2016 16:59:27 -0400 Subject: [PATCH] Fix an issue with horizontal docs scrolling --- website/source/assets/stylesheets/_docs.scss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/website/source/assets/stylesheets/_docs.scss b/website/source/assets/stylesheets/_docs.scss index 319c13d95..71005ef5a 100755 --- a/website/source/assets/stylesheets/_docs.scss +++ b/website/source/assets/stylesheets/_docs.scss @@ -210,8 +210,15 @@ body.layout-intro{ -webkit-font-smoothing: antialiased; } - pre{ + pre { margin: 0 0 18px; + + // This will force the code to scroll horizontally on small screens + // instead of wrapping. + code { + overflow-wrap: normal; + white-space: pre; + } } a{