From 91e66310c316a1bc9d4ff51890521db6beb262be Mon Sep 17 00:00:00 2001 From: Coby Chapple Date: Thu, 4 Apr 2013 18:09:18 +0100 Subject: [PATCH] add code highlighting stuff back in --- site/css/style.css | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/site/css/style.css b/site/css/style.css index d9ffc00c..13123af6 100644 --- a/site/css/style.css +++ b/site/css/style.css @@ -518,6 +518,35 @@ p { width: 100%; } +/* Code Highlighting */ + + +pre, code { + white-space: pre; + display: inline-block; + margin: 0; + padding: 0; + font-family: Menlo, Consolas, "Courier New", Courier, "Liberation Mono", monospace; + font-size: 16px; + padding: 0 .5em; + line-height: 1.8em; +} + +.highlight, p > pre, p > code { + background: #333; + color: #fff; + border-radius: 5px; + box-shadow: inset 0 1px 10px rgba(0,0,0,.3), + 0 1px 0 rgba(255,255,255,.1), + 0 -1px 0 rgba(0,0,0,.5); +} + +.highlight { + padding: 10px 0; + width: 100%; + overflow: scroll; +} + /* Article HTML */ article h2,