Skip to content

Commit ee4f50d

Browse files
committed
feat: improve code block
1 parent 3db7d29 commit ee4f50d

File tree

2 files changed

+15
-125
lines changed

2 files changed

+15
-125
lines changed

articles/screenshot-stabilization/index.mdx

-124
This file was deleted.

styles/globals.css

+15-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,21 @@
1919
}
2020

2121
.prose.prose {
22-
--tw-prose-pre-bg: #0d1117;
22+
--tw-prose-pre-bg: theme(backgroundColor.primary.ui);
23+
pre:has(code) {
24+
margin-top: -10px;
25+
}
26+
27+
:not(pre) > code {
28+
background-color: theme(backgroundColor.ui);
29+
border-radius: 4px;
30+
padding: 4px 6px;
31+
32+
&::before,
33+
&::after {
34+
content: "";
35+
}
36+
}
2337
}
2438

2539
/* Hide number input arrows */

0 commit comments

Comments
 (0)