Skip to content

Commit 4241f60

Browse files
authored
Merge pull request #19877 from dvdksn/fix-codespan-wrap
code rendering fixes
2 parents cf427b8 + 5f563c6 commit 4241f60

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

assets/css/code.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,21 @@
2020
overflow-wrap: anywhere;
2121
padding: 0 4px;
2222
table & {
23-
overflow-wrap: nowrap;
23+
overflow-wrap: unset;
24+
}
25+
}
26+
27+
/* Indented code blocks */
28+
:not(.highlight) > pre {
29+
@apply my-4 overflow-x-auto p-3;
30+
font-size: 0.875em;
31+
border: 1px solid;
32+
border-radius: theme("spacing.1");
33+
background: theme("colors.white");
34+
border-color: theme("colors.gray.light.300");
35+
.dark & {
36+
background: theme("colors.gray.dark.200");
37+
border-color: theme("colors.gray.dark.300");
2438
}
2539
}
2640

hugo_stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@
274274
"lg:grid-cols-3",
275275
"lg:grid-cols-main-lg",
276276
"lg:hidden",
277+
"lg:max-w-[300px]",
277278
"lg:no-underline",
278279
"lg:pb-2",
279280
"lg:scale-100",
@@ -286,7 +287,6 @@
286287
"max-h-full",
287288
"max-w-56",
288289
"max-w-[1400px]",
289-
"max-w-[300px]",
290290
"max-w-[840px]",
291291
"max-w-full",
292292
"max-w-none",

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
$store.showSidebar = false;
2626
"
2727
>
28-
<div class="max-w-[300px] ml-auto p-2">
28+
<div class="w-full max-w-none lg:max-w-[300px] ml-auto p-2">
2929
{{ block "left" . }}
3030
{{ end }}
3131
</div>

0 commit comments

Comments
 (0)