From c5ecf32775de9402e56f2123ca798fd2f8fbdd69 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Delhommeau Date: Mon, 4 Jul 2016 13:36:59 +0200 Subject: [PATCH] style: Improve render of example code --- less/all.less | 5 +++++ styles/syntax.css | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/less/all.less b/less/all.less index 4ecc4c8..744e501 100644 --- a/less/all.less +++ b/less/all.less @@ -139,6 +139,11 @@ pre{ pre{ padding: 5px 10px; + white-space: pre-wrap; + white-space: -moz-pre-wrap; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + word-wrap: break-word; } } diff --git a/styles/syntax.css b/styles/syntax.css index 1e651cf..f65ef4c 100644 --- a/styles/syntax.css +++ b/styles/syntax.css @@ -1,4 +1,4 @@ -.highlight { background: #ffffff; } +.highlight { background: #ffffff; margin: 0 4px; font-size: 0.8em; } .highlight .c { color: #999988; font-style: italic } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { font-weight: bold } /* Keyword */