Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jbub/ghostwriter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jonsson <dannie92@gmail.com>2017-01-07 00:58:43 +0300
committerJuraj Bubniak <juraj.bubniak@gmail.com>2017-01-07 00:58:43 +0300
commita63e6bc2a25019e6a3ec0695c0c92a219177f4fc (patch)
tree504f8cdaea5067f03cc8b65d253ff3fcb3de056e
parentad7b023bd754778bbf64871fa15b118d37d98673 (diff)
Prevent <pre> from overflowing when JS is disabled
-rw-r--r--static/dist/styles.css2
-rw-r--r--static/styles/style.scss1
2 files changed, 2 insertions, 1 deletions
diff --git a/static/dist/styles.css b/static/dist/styles.css
index 680a6bb..4676ecf 100644
--- a/static/dist/styles.css
+++ b/static/dist/styles.css
@@ -87,7 +87,7 @@ ul li:last-of-type, ol li:last-of-type { margin-bottom: 0; }
blockquote { border-left: 1px dotted #f03838; margin: 40px 0; padding: 5px 30px; }
blockquote p { color: #aeadad; display: block; font-style: italic; margin: 0; width: 100%; }
img { display: block; margin: 40px 0; width: auto; max-width: 100%; }
-pre { background: #f1f0ea; border: 1px solid #dddbcc; border-radius: 3px; margin: 0 0 20px; padding: 10px; font-size: 16px; }
+pre { background: #f1f0ea; border: 1px solid #dddbcc; border-radius: 3px; margin: 0 0 20px; overflow-x: auto; padding: 10px; font-size: 16px; }
pre code { padding: 0; }
code { padding: 2px 4px; font-size: 90%; color: #f03838; background-color: #f1f0ea; border-radius: 4px; }
hr { border: none; border-bottom: 1px dotted #303030; margin: 45px 0; }
diff --git a/static/styles/style.scss b/static/styles/style.scss
index 3a0f412..d7da0f7 100644
--- a/static/styles/style.scss
+++ b/static/styles/style.scss
@@ -80,6 +80,7 @@ pre {
border: 1px solid #DDDBCC;
border-radius: 3px;
margin: 0 0 20px;
+ overflow-x: auto;
padding: 10px;
font-size: 16px;