diff --git a/assets/css/loading.css b/assets/css/loading.css index 9533f45..f91fef5 100644 --- a/assets/css/loading.css +++ b/assets/css/loading.css @@ -29,8 +29,8 @@ width: 35px; height: 35px; border: 5px solid rgba(189, 189, 189, 0.25); - border-left-color: rgba(3, 155, 229, 1); - border-top-color: rgba(3, 155, 229, 1); + border-left-color: rgba(66, 185, 131, 0.9); + border-top-color: rgba(66, 185, 131, 0.9); border-radius: 50%; display: inline-block; animation: rotate 600ms infinite linear; diff --git a/assets/scripts/editor.js b/assets/scripts/editor.js index 68dc48a..3aa4e34 100644 --- a/assets/scripts/editor.js +++ b/assets/scripts/editor.js @@ -78,7 +78,7 @@ let app = new Vue({ if (this.wxRenderer.hasFootnotes()) { // 去除第一行的 margin-top output = output.replace(/(style=".*?)"/, '$1;margin-top: 0"'); - // 引用注脚 + // 引用脚注 output += this.wxRenderer.buildFootnotes(); // 附加的一些 style output += this.wxRenderer.buildAddition(); diff --git a/assets/scripts/renderers/wx-renderer.js b/assets/scripts/renderers/wx-renderer.js index df76110..b9f1a44 100644 --- a/assets/scripts/renderers/wx-renderer.js +++ b/assets/scripts/renderers/wx-renderer.js @@ -65,7 +65,7 @@ let WxRenderer = function (opts) { } return `[${x[0]}] ${x[1]}: ${x[2]}
` }); - return `

引用链接

${footnoteArray.join('\n')}

` + return `

引用链接

${footnoteArray.join('\n')}

` }; this.buildAddition = function () { diff --git a/assets/scripts/themes/default-theme.js b/assets/scripts/themes/default-theme.js index 9c41d04..917c950 100644 --- a/assets/scripts/themes/default-theme.js +++ b/assets/scripts/themes/default-theme.js @@ -46,6 +46,7 @@ let default_theme = { 'font-weight': 'bold', 'font-size': '1em', 'margin': '2em 8px 0.5em', + 'color': 'rgba(66, 185, 131, 0.9)' }, // 段落样式 @@ -85,8 +86,8 @@ let default_theme = { image: { 'border-radius': '4px', 'display': 'block', - 'margin': '0.5em auto', - 'width': '100% !important' + 'margin': '0.1em auto 0.5em', + 'width': '100% !important', }, image_org: { 'border-radius': '4px', @@ -113,7 +114,7 @@ let default_theme = { listitem: { 'text-indent': '-1em', 'display': 'block', - 'margin': '0.5em 8px' + 'margin': '0.2em 8px' }, codespan: { 'font-size': '90%', diff --git a/assets/scripts/util.js b/assets/scripts/util.js index 3dac172..a0144c9 100644 --- a/assets/scripts/util.js +++ b/assets/scripts/util.js @@ -5,6 +5,7 @@ function setColorWithTemplate(template) { custom_theme.block.h1['border-bottom'] = `2px solid ${color}`; custom_theme.block.h2['background'] = color; custom_theme.block.h3['border-left'] = `3px solid ${color}`; + custom_theme.block.h4['color'] = color; custom_theme.inline.strong['color'] = color; return custom_theme };