From 262202fbad21eb1dca0c8dc5a9a73c2f3e246adf Mon Sep 17 00:00:00 2001 From: Maciej Smolinski Date: Wed, 20 Jul 2016 16:55:58 +0200 Subject: [PATCH] Styles: Prevent syntax-highlighted code from being over-sized. --- resources/public/style.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/public/style.css b/resources/public/style.css index 6705e3b..8e3faaa 100644 --- a/resources/public/style.css +++ b/resources/public/style.css @@ -186,11 +186,20 @@ blockquote { } code, pre { - font-size: 1.05em; background: #efefef; font-family: monospace; } +/* Code tags alone to be slightly bigger than defaults */ +code { + font-size: 1.05em; +} + +/* Prevent over-sized code in when syntax-highlighted */ +pre code { + font-size: 1em; +} + pre { border: 1px solid #aaa; padding: 0.5em;