Fix width of pre element for code blocks

This commit is contained in:
Helen Chong 2024-05-10 02:01:32 +08:00
parent d12a3bf069
commit 71c0e0f07c
3 changed files with 15 additions and 7 deletions

View File

@ -242,9 +242,13 @@ pre {
}
pre {
max-width: calc(100vw - 2em);
overflow-x: auto;
padding: 0.8em 1.4em;
max-width: 90vw;
overflow: auto;
padding: 1rem;
}
pre > code {
white-space: pre;
}
summary {

View File

@ -4,7 +4,7 @@
<subtitle>Leilukin&#39;s personal website.</subtitle>
<link href="https://leilukin.neocities.org/feed.xml" rel="self"/>
<link href="https://leilukin.neocities.org"/>
<updated>2024-05-09T17:12:48Z</updated>
<updated>2024-05-09T18:00:34Z</updated>
<id>https://leilukin.neocities.org</id>
<author>
<name>Leilukin</name>

View File

@ -242,9 +242,13 @@ pre {
}
pre {
max-width: calc(100vw - 2em);
overflow-x: auto;
padding: 0.8em 1.4em;
max-width: 90vw;
overflow: auto;
padding: 1rem;
}
pre > code {
white-space: pre;
}
summary {