Skip to content

Commit c0fd12b

Browse files
unhappychoiceclaude
andcommitted
fix(frontend): style h6 and drop unused markdown CSS variables
h6 had no rule at all, so it missed the shared margin and font-weight that h1 through h5 share. Merge it into the h4/h5 rule, which already had identical declarations. Also remove --markdown-pre-background-color and --markdown-code-background-color. Both were declared in :root and [data-theme="dark"] but never referenced. Code block and inline code backgrounds come from the selected syntax highlighter theme in MarkdownCode.tsx, so wiring these variables up would conflict with it. Refs #857 Co-Authored-By: Claude Opus 5 <[email protected]>
1 parent 1c22012 commit c0fd12b

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

‎packages/frontend/public/markdown.css‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
:root {
22
--markdown-border-color: rgba(0, 0, 0, .12);
3-
--markdown-pre-background-color: #f4f5f7;
4-
--markdown-code-background-color: #f4f5f7;
53
--markdown-blockquote-color: rgba(0, 0, 0, .24);
64
--markdown-link-color: #1976d2;
75
}
86

97
[data-theme="dark"] {
108
--markdown-border-color: rgba(255, 255, 255, .12);
11-
--markdown-pre-background-color: #161819;
12-
--markdown-code-background-color: #161819;
139
--markdown-blockquote-color: rgba(255, 255, 255, .24);
1410
}
1511

@@ -37,13 +33,7 @@
3733
font-weight: 500;
3834
}
3935

40-
h4 {
41-
margin: 48px 0 24px;
42-
font-size: 1.143rem;
43-
font-weight: 400;
44-
}
45-
46-
h5 {
36+
h4, h5, h6 {
4737
margin: 48px 0 24px;
4838
font-size: 1.143rem;
4939
font-weight: 400;

0 commit comments

Comments
 (0)