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:
parent
5e9b22fbb2
commit
7756adc75c
|
@ -241,7 +241,11 @@ a:visited { color: #205caa; }
|
||||||
.post ul,
|
.post ul,
|
||||||
.post ol { margin-left: 1.35em; }
|
.post ol { margin-left: 1.35em; }
|
||||||
|
|
||||||
.post pre code { border: none; }
|
.post pre code {
|
||||||
|
border: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* terminal */
|
/* terminal */
|
||||||
.post pre.terminal {
|
.post pre.terminal {
|
||||||
|
@ -402,4 +406,4 @@ a:visited { color: #205caa; }
|
||||||
width: auto;
|
width: auto;
|
||||||
margin: 0 0 15px; }
|
margin: 0 0 15px; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue