From 319fb4dc3f02da8fce973ab220ef9f32b8063986 Mon Sep 17 00:00:00 2001 From: Eston Bond Date: Wed, 8 Dec 2010 16:36:59 -0800 Subject: [PATCH] Add code block styling (for syntax highlighter) --- lib/gollum/frontend/public/css/template.css | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/lib/gollum/frontend/public/css/template.css b/lib/gollum/frontend/public/css/template.css index a2222e3f..63a28cdc 100755 --- a/lib/gollum/frontend/public/css/template.css +++ b/lib/gollum/frontend/public/css/template.css @@ -228,6 +228,36 @@ } /* @control syntax */ +#template .data { + border: 1px solid #ddd; + margin-top: 1em; + overflow: auto; +} + +#template .data pre { + margin: 0; + padding: 0; +} + +#template .data pre div { + padding: 0 0 0 1em; +} + +#template .data tr td { + font-family: "Consolas", "Monaco", "Andale Mono", "Courier New", monospace; + font-size: 1.2em; + line-height: 1.8em; + margin: 0; + padding: 0; +} + +#template .data td.line_numbers { + background: #f7f7f7; + border-right: 1px solid #999; + color: #999; + padding: 0 0 0 0.5em; +} + #template .highlight { background: #ffffff; } #template .highlight .c { color: #999988; font-style: italic } #template .highlight .err { color: #a61717; background-color: #e3d2d2 }