Skip to content

Commit 64864ff

Browse files
committed
Set font size for write mobile
1 parent 8b6fc28 commit 64864ff

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/components/write/WriteMarkdownEditor.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const MarkdownEditorBlock = styled.div`
9696
font-family: 'Fira Mono', monospace;
9797
/* font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', */
9898
.cm-header {
99-
line-height: 2;
99+
line-height: 1.5;
100100
color: ${palette.gray9};
101101
}
102102
.cm-header-1 {
@@ -121,6 +121,24 @@ const MarkdownEditorBlock = styled.div`
121121
color: ${palette.gray5};
122122
font-style: italic;
123123
}
124+
125+
${media.custom(767)} {
126+
font-size: 0.875rem;
127+
.cm-header-1 {
128+
font-size: 2rem;
129+
}
130+
.cm-header-2 {
131+
font-size: 1.5rem;
132+
}
133+
.cm-header-3 {
134+
font-size: 1.15rem;
135+
}
136+
.cm-header-4,
137+
.cm-header-5,
138+
.cm-header-6 {
139+
font-size: 1rem;
140+
}
141+
}
124142
}
125143
`;
126144

0 commit comments

Comments
 (0)