Skip to content

Commit d4fb5d4

Browse files
committed
style(markdown): improve code font-family formatting and add spacing for headings
- Reformatted the font-family declaration for better readability. - Added margin-top and margin-bottom spacing for h1, h2, and h3 headings.
1 parent f6768dc commit d4fb5d4

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

src/styles/markdown.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,19 @@
3939
code {
4040
@apply bg-(--inline-code-bg) text-(--inline-code-color) px-1 py-0.5 rounded-md overflow-hidden;
4141

42-
font-family: var(--ec-codeFontFml, "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
42+
font-family: var(
43+
--ec-codeFontFml,
44+
"JetBrains Mono Variable",
45+
"JetBrains Mono",
46+
ui-monospace,
47+
SFMono-Regular,
48+
Menlo,
49+
Monaco,
50+
Consolas,
51+
"Liberation Mono",
52+
"Courier New",
53+
monospace
54+
);
4355

4456
&:before,
4557
&:after {
@@ -61,6 +73,11 @@
6173
}
6274
}
6375

76+
/* --- 标题间距 --- */
77+
:is(h1, h2, h3) {
78+
@apply mt-4 mb-2;
79+
}
80+
6481
/* --- 列表 --- */
6582
ul,
6683
ol {

0 commit comments

Comments
 (0)