1
0
mirror of https://github.com/kuohuanhuan/x-markdown-css.git synced 2024-11-25 06:18:19 +00:00

feat: separate $font-display for more user customization

This commit is contained in:
2023-03-02 20:11:32 +08:00
parent f967cc6bad
commit 782b6f24e2
3 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,6 @@
.markdown-body {
color: var(--xm-c-general);
font-family: var(--xm-font-regular) !important;
font-family: var(--xm-font-display) !important;
pre {
&:not(.shiki, .highlight) {
margin: 0;
@ -12,7 +12,7 @@
.highlight {
margin: .5rem 0;
font-size: 1.05rem;
font-family: var(--xm-font-code) !important;
font-family: var(--xm-font-mono) !important;
line-height: 1.4;
&.shiki-light {
background: var(--xm-c-shiki-light) !important;