Fixes to codeblock (pre)

- Set a value for top and bottom margins.
- Fix the line height being too large.
This commit is contained in:
Foster Hangdaan 2023-11-28 21:42:12 -05:00
parent f50f2b37d3
commit 7291d5ef22
Signed by: foster
GPG key ID: E48D7F49A852F112

View file

@ -98,6 +98,8 @@ code {
} }
pre { pre {
margin-top: 1rem;
margin-bottom: 1rem;
padding: 1rem; padding: 1rem;
border-radius: 5px; border-radius: 5px;
display: block; display: block;
@ -106,9 +108,9 @@ pre {
page-break-inside: avoid; page-break-inside: avoid;
word-wrap: break-word; word-wrap: break-word;
font-family: var(--font--mono); font-family: var(--font--mono);
line-height: initial;
code { code {
font-size: 1rem; font-size: 1rem;
line-height: normal;
padding: 0; padding: 0;
border-radius: 0; border-radius: 0;
background-color: transparent; background-color: transparent;