Skip to content

Commit

Permalink
自动目录样式调整,无目录时自动隐藏,升级 Mermaid 为最新的 8.9.2,支持Class diagram/Git graph/Ent…
Browse files Browse the repository at this point in the history
…ity Relationship Diagram/User Journey Diagram
  • Loading branch information
mylxsw committed Mar 29, 2021
1 parent a7bb729 commit 57f8c99
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 100,932 deletions.
10 changes: 10 additions & 0 deletions public/assets/css/style-dark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/assets/css/style-dark.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions public/assets/css/style-dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ body.wz-dark-theme {
table {
background: #4e4e4e;
}
.editormd-toc-menu {
&>.markdown-toc > ul {
background: #4e4e4e;
color: #ffffff;
&>li>a {
color: #ffffff;
&:hover {
background-color: #0a001f;
}
}
}
}
}

.wz-theme-support-icon {
Expand Down
5 changes: 5 additions & 0 deletions public/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,11 @@ a:hover {
font-size: 1.2em!important;
}

.markdown-body .mermaid {
max-width: 100%;
overflow: auto;
}

.wz-page-content {
margin-top: 20px;
}
Expand Down
2 changes: 1 addition & 1 deletion public/assets/js/markdown-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ $.wz.mdEditor = function (editor_id, params) {
mdEditor.imagePaste();
});

editormd.loadPlugin('/assets/vendor/mermaid', function() {
editormd.loadPlugin('/assets/vendor/mermaid.min', function() {
mermaid.init(undefined, $(".markdown-body .mermaid"));
});

Expand Down
Loading

0 comments on commit 57f8c99

Please sign in to comment.