From 7756adc75c6b886bf801b80c4d5204f9e5e7e49b Mon Sep 17 00:00:00 2001 From: Philipp Rudloff Date: Sat, 10 May 2014 22:05:21 +0200 Subject: [PATCH] Fixing spacing issue for `code` inside `pre` Regular (one-line) code inside a `code` tag has some padding around it. This leads to some weird spacing when dealing with code blocks (e.g. inside `pre`). Removing the horizontal paddings for these. (Also replacing `border: none;` with `border: 0;` because it's shorter) --- lib/site_template/css/main.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/site_template/css/main.css b/lib/site_template/css/main.css index 93ab284a..b94ca8fb 100644 --- a/lib/site_template/css/main.css +++ b/lib/site_template/css/main.css @@ -241,7 +241,11 @@ a:visited { color: #205caa; } .post ul, .post ol { margin-left: 1.35em; } -.post pre code { border: none; } +.post pre code { + border: 0; + padding-right: 0; + padding-left: 0; +} /* terminal */ .post pre.terminal { @@ -402,4 +406,4 @@ a:visited { color: #205caa; } width: auto; margin: 0 0 15px; } -} \ No newline at end of file +}