Skip to content

Commit 28e23d9

Browse files
committed
css: apply basic styles to indented code blocks
Signed-off-by: David Karlsson <[email protected]>
1 parent cbb8988 commit 28e23d9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

assets/css/code.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@
2424
}
2525
}
2626

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");
38+
}
39+
}
40+
2741
.highlight {
2842
@apply my-4 overflow-x-auto p-3;
2943

0 commit comments

Comments
 (0)