Skip to content

Commit 7d08dc8

Browse files
committed
fix: prevent code blocks from overflowing post layout
1 parent fe2969c commit 7d08dc8

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

assets/css/main.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,23 @@ a {
325325
padding-left: 1.5rem;
326326
}
327327

328+
.prose pre {
329+
max-width: 100%;
330+
overflow-x: auto;
331+
padding: 0.9rem;
332+
border: 1px solid var(--line);
333+
background: #101318;
334+
}
335+
336+
.prose code {
337+
font-family: "Courier New", "Lucida Console", monospace;
338+
font-size: 0.92em;
339+
}
340+
341+
.prose pre code {
342+
white-space: pre;
343+
}
344+
328345
.single-layout {
329346
display: grid;
330347
grid-template-columns: minmax(0, 1fr) 260px;

0 commit comments

Comments
 (0)