Skip to content

Instantly share code, notes, and snippets.

@FooBarWidget
Created January 15, 2012 17:58
Show Gist options
  • Save FooBarWidget/1616591 to your computer and use it in GitHub Desktop.
Save FooBarWidget/1616591 to your computer and use it in GitHub Desktop.
From bd2e1311aa25b341be015a8d96deddeda7e88c47 Mon Sep 17 00:00:00 2001
From: "Hongli Lai (Phusion)" <hongli@phusion.nl>
Date: Sun, 15 Jan 2012 18:56:12 +0100
Subject: [PATCH] Set 'overflow: auto' on 'pre' tags so that the browser will
show horizontal scroll bars for long code examples.
---
stylesheets/asciidoc.css | 1 +
themes/flask/flask.css | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/stylesheets/asciidoc.css b/stylesheets/asciidoc.css
index 55df5a2..05c235c 100644
--- a/stylesheets/asciidoc.css
+++ b/stylesheets/asciidoc.css
@@ -82,6 +82,7 @@ ul > li > * { color: black; }
pre {
padding: 0;
margin: 0;
+ overflow: auto;
}
#author {
diff --git a/themes/flask/flask.css b/themes/flask/flask.css
index 03abe3b..61b6335 100644
--- a/themes/flask/flask.css
+++ b/themes/flask/flask.css
@@ -82,6 +82,7 @@ ul > li > * { color: black; }
pre {
padding: 0;
margin: 0;
+ overflow: auto;
}
#author {
--
1.7.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment