fix code block style

This commit is contained in:
anna 2021-02-11 21:23:00 +01:00
parent 6367993098
commit 0b4677c147
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -47,7 +47,7 @@ h1, h2, h3, h4, h5, h6 {
border-bottom: thin solid rgba(255, 255, 255, 0.2); border-bottom: thin solid rgba(255, 255, 255, 0.2);
} }
p, code { p, code, ul, ol {
font-size: 1rem; font-size: 1rem;
line-height: 1.5rem; line-height: 1.5rem;
font-weight: 400; font-weight: 400;
@ -58,6 +58,18 @@ code {
border-radius: 4px; border-radius: 4px;
} }
pre {
display: block;
padding: 20px;
border-radius: 4px;
background-color: rgba(0, 0, 0, 0.5);
overflow-x: auto;
code {
background: none;
}
}
header h1 { header h1 {
text-align: center; text-align: center;
margin: 20px 0 0; margin: 20px 0 0;
@ -112,7 +124,6 @@ nav {
padding: 20px; padding: 20px;
display: inline-block; display: inline-block;
font-weight: 700; font-weight: 700;
text-decoration: none;
} }
} }
} }