From f2c77b6c0e7e90d453fd40b9a2fdaf6b6d154b13 Mon Sep 17 00:00:00 2001 From: Maciej Smolinski Date: Wed, 3 Aug 2016 08:00:23 +0200 Subject: [PATCH] Highlight: Keep highlighted code tags at 1.05em font-size. --- resources/public/style.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/public/style.css b/resources/public/style.css index 82a435b..150d14f 100644 --- a/resources/public/style.css +++ b/resources/public/style.css @@ -373,15 +373,15 @@ pre, code, code.hljs { font-family: monospace; border-radius: 3px; background: #f0f0f0; + font-size: 1.05em; } -/* Non-syntax highlighted code tag to be slightly bigger so it outstands in text */ -code:not(.hljs) { - font-size: 1.05em; +/* Don't increase the size of code in pre tag, pre tag already did it. + Otherwise code size would be even bigger (1.05em * 1.05em = 1.1025em) */ +pre code { + font-size: 1em; } -/* Syntax highlighted code tag to get some padding and keep font-size */ code.hljs { - font-size: 1em; padding: 1em; }