Fix width of pre element for code blocks
This commit is contained in:
parent
d12a3bf069
commit
71c0e0f07c
|
@ -242,9 +242,13 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
max-width: calc(100vw - 2em);
|
max-width: 90vw;
|
||||||
overflow-x: auto;
|
overflow: auto;
|
||||||
padding: 0.8em 1.4em;
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre > code {
|
||||||
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
|
||||||
summary {
|
summary {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<subtitle>Leilukin's personal website.</subtitle>
|
<subtitle>Leilukin's personal website.</subtitle>
|
||||||
<link href="https://leilukin.neocities.org/feed.xml" rel="self"/>
|
<link href="https://leilukin.neocities.org/feed.xml" rel="self"/>
|
||||||
<link href="https://leilukin.neocities.org"/>
|
<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>
|
<id>https://leilukin.neocities.org</id>
|
||||||
<author>
|
<author>
|
||||||
<name>Leilukin</name>
|
<name>Leilukin</name>
|
||||||
|
|
|
@ -242,9 +242,13 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
max-width: calc(100vw - 2em);
|
max-width: 90vw;
|
||||||
overflow-x: auto;
|
overflow: auto;
|
||||||
padding: 0.8em 1.4em;
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre > code {
|
||||||
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
|
||||||
summary {
|
summary {
|
||||||
|
|
Loading…
Reference in New Issue