Skip to content

Commit

Permalink
chore(content-theme): 调整公式块样式
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyggge authored and Thysrael committed May 27, 2023
1 parent 9d36fb0 commit 47d3e27
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"electron-log": "^4.0.6",
"eslint": "^8.38.0",
"eslint-plugin-vue": "^8.0.3",
"ficus-editor": "^1.1.17",
"ficus-editor": "^1.1.21",
"ficus-mindmap": "0.6.27",
"fs-extra": "^11.1.1",
"husky": "^8.0.3",
Expand Down
11 changes: 7 additions & 4 deletions public/ficus-editor/dist/css/content-theme/classic.css
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,18 @@ pre.vditor-sv:focus {

.vditor-reset span.katex-html {
font-size: 16px;
padding-top: 10px;
padding: 10px 0;
}

.vditor-reset mjx-container svg {
height: 12px;
padding-top: 0;
height: 11px;
vertical-align: 0 !important;
}

.vditor-reset .math-block-preview {
background: var(--SwissCoffee-500);
}

/** 内联公式编辑区域 **/

.vditor-reset code[data-type="math-inline"] {
Expand All @@ -247,7 +250,7 @@ pre.vditor-sv:focus {
/** 公式块编辑区域 **/

.vditor-reset code[data-type="math-block"] {
background-color: var(--SwissCoffee-500);
background-color: var(--TextLight);
font-size: 16px;
line-height: 30px;
padding: 0.6em 0.6em !important;
Expand Down
11 changes: 7 additions & 4 deletions public/ficus-editor/dist/css/content-theme/modern.css
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,18 @@ pre.vditor-sv:focus {

.vditor-reset span.katex-html {
font-size: 16px;
padding-top: 10px;
padding: 10px 0;
}

.vditor-reset mjx-container svg {
height: 12px;
padding-top: 0;
height: 11px;
vertical-align: 0 !important;
}

.vditor-reset .math-block-preview {
background: var(--SwissCoffee-500);
}

/** 内联公式编辑区域 **/

.vditor-reset code[data-type="math-inline"] {
Expand All @@ -247,7 +250,7 @@ pre.vditor-sv:focus {
/** 公式块编辑区域 **/

.vditor-reset code[data-type="math-block"] {
background-color: var(--SwissCoffee-500);
background-color: var(--TextLight);
font-size: 16px;
line-height: 30px;
padding: 0.6em 0.6em !important;
Expand Down

0 comments on commit 47d3e27

Please sign in to comment.