From dcae8c157b4e754917a1ea5901ba02dc226a6d4b Mon Sep 17 00:00:00 2001 From: "O.S.Tezer" Date: Sun, 4 May 2014 13:25:03 +0100 Subject: [PATCH] Introduce x-axe scrolling to code-blocks. This improvement introduces x-axe scrolling to code-blocks by overriding certain default bootstrap word-wrapping constraints. This PR closes: https://github.com/dotcloud/docker/issues/5279 Docker-DCO-1.1-Signed-off-by: O.S. Tezer (github: ostezer) --- docs/theme/mkdocs/css/base.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/theme/mkdocs/css/base.css b/docs/theme/mkdocs/css/base.css index 999a0dedbe..956e17a263 100644 --- a/docs/theme/mkdocs/css/base.css +++ b/docs/theme/mkdocs/css/base.css @@ -59,6 +59,11 @@ h6, padding: 0.5em 0.75em !important; line-height: 1.8em; background: #fff; + overflow-x: auto; +} +#content pre code { + word-wrap: normal; + white-space: pre; } #content blockquote { background: #fff;