Improve code block styling

This commit is contained in:
Râu Cao 2024-10-22 15:53:54 +02:00
parent 28520c59b9
commit ce469bc37f
Signed by: raucao
GPG Key ID: 37036C356E56CC51
2 changed files with 11 additions and 0 deletions

View File

@ -48,6 +48,12 @@ code {
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
} }
pre {
overflow-x: auto;
white-space: pre;
max-width: 100%;
}
pre code { pre code {
display: block; display: block;
padding: 0.6rem 1rem; padding: 0.6rem 1rem;

View File

@ -20,6 +20,11 @@ code {
color: #027739; color: #027739;
} }
pre {
background-color: #333;
color: #ccc;
}
pre code { pre code {
background-color: #333; background-color: #333;
color: #ccc; color: #ccc;