From f63106005b3050b5a99833ec47b78667dc4766b2 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 19 Feb 2016 02:59:05 -0500 Subject: [PATCH] better codeblocks on mobile --- docs/_templates/hacks.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/_templates/hacks.html b/docs/_templates/hacks.html index 4763b26b..ba032452 100644 --- a/docs/_templates/hacks.html +++ b/docs/_templates/hacks.html @@ -19,6 +19,9 @@ @media screen and (max-width: 1008px) { div.sphinxsidebar {display: none;} div.document {width: 100%!important;} + + /* Have code blocks escape the document right-margin. */ + div.highlight pre {margin-right: -30px;} }