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)
This commit is contained in:
Philipp Rudloff 2014-05-10 22:05:21 +02:00
parent 5e9b22fbb2
commit 7756adc75c
1 changed files with 6 additions and 2 deletions

View File

@ -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; }
}
}