Add margin and padding to pre blocks

This puts one character's worth of padding inside each pre block, making the text inside easier to read. It also changes the margin to match the spacing of paragraphs, ensuring that everything is aligned "on the line" as if it is displayed in a terminal.
This commit is contained in:
mntn 2021-07-31 21:34:03 -04:00 committed by GitHub
parent 1e6ebdbb52
commit 43feb8c94c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -130,6 +130,11 @@ kbd {
color: var(--bright-bg);
}
pre {
padding: 1.5rem 0.75rem;
margin: 0 0 1.5rem 0;
}
/* Emphasis */
b,
strong {