From 304bd1fadab78c52265cd67cda69b4ebaeb92fb3 Mon Sep 17 00:00:00 2001 From: Saivann Date: Sat, 1 Aug 2015 22:27:18 -0400 Subject: [PATCH] Allow code samples to overflow on mobiles in the documentation --- _less/screen.less | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/_less/screen.less b/_less/screen.less index 6ee03313..571f7b82 100644 --- a/_less/screen.less +++ b/_less/screen.less @@ -1003,7 +1003,7 @@ div.post { padding-top: 20px; } -.highlight { background: #ffffff; } +.highlight { background: transparent; } .highlight .c { color: #999988; font-style: italic } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { font-weight: bold } /* Keyword */ @@ -2203,6 +2203,18 @@ h2 .rssicon{ h2{ text-align:center; } + .toccontent .multicode, + .toccontent .multicode pre, + .toccontent pre{ + display: table; /* Triggers a block formating context so the container expands with the content */ + } + .toccontent .multicode, + .toccontent pre{ + padding:10px; + } + .toccontent .multicode pre{ + padding:0; + } .titleicon, .warningicon{ display:block;