Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override mermaidChart font size #109

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/scss/typora.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ pre.md-meta-block {
font-family: var(--code-font), var(--ui-font), monospace;
}

/* 覆盖mermaid的默认字体大小(由于mermaid图像本身大小无法改变,如果设置typora字体过大或过小可能产生问题) */
[id *="mermaidChart"] {
font-size: 1em !important;
}

// override the default style for focused headings
#write > h3.md-focus:before,
#write > h4.md-focus:before,
Expand Down