From 65a37b0acf7bd933de209e7c3a84966a135fc864 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Tue, 6 Oct 2015 07:33:44 +0200 Subject: [PATCH] Use `overflow: auto` for pre/code tags On index.html there is a code tag which shows an example script tag to include hogan.js on your site. This code tag is not scrollable and the majority of the content is hidden. Scrolling is not possible, which makes it really hard to copy the URL. This change sets `overflow` to `auto` on `code` and `pre` elements. The layout stays the same, but now the content is scrollable and it's possible to copy the script tag. --- stylesheets/layout.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylesheets/layout.css b/stylesheets/layout.css index 20e20cf..268af83 100755 --- a/stylesheets/layout.css +++ b/stylesheets/layout.css @@ -172,7 +172,7 @@ pre, code { padding: 5px 10px; margin-bottom: 20px; font-family: courier; - overflow: hidden; + overflow: auto; } pre code {