diff --git a/assets/scripts/editor.js b/assets/scripts/editor.js index 513c9c1..827e30d 100644 --- a/assets/scripts/editor.js +++ b/assets/scripts/editor.js @@ -22,13 +22,12 @@ let app = new Vue({ } ], sizeOption: [ - { label: '14px', value: '14px', desc: '稍小' }, - { label: '15px', value: '15px', desc: '默认' }, + { label: '14px', value: '14px', desc: '推荐' }, + { label: '15px', value: '15px', desc: '正常' }, { label: '16px', value: '16px', desc: '稍大' }, - { label: '17px', value: '17px', desc: '很大' }, ], themeOption: [ - { label: 'default', value: 'default', author: '杨立滨' }, + { label: 'default', value: 'default', author: '默认' }, ], styleThemes: { default: defaultTheme @@ -37,7 +36,7 @@ let app = new Vue({ }; d.currentEditorTheme = d.editorThemes[0].value; d.currentFont = d.builtinFonts[0].value; - d.currentSize = d.sizeOption[1].value; + d.currentSize = d.sizeOption[0].value; d.currentTheme = d.themeOption[0].value; return d; }, diff --git a/assets/scripts/themes/default.js b/assets/scripts/themes/default.js index 6d87da2..021e12b 100644 --- a/assets/scripts/themes/default.js +++ b/assets/scripts/themes/default.js @@ -7,39 +7,38 @@ let defaultTheme = { BASE_BLOCK: { 'margin': '1em 8px' }, - // block element block: { h1: { 'font-size': '1.2em', 'text-align': 'center', 'font-weight': 'bold', 'display': 'table', - 'margin': '2em auto 1em auto', + 'margin': '2em auto 1em', 'padding': '0 1em', - 'border-bottom': '1px solid rgb(248,57,41)' + 'border-bottom': '2px solid rgb(248,57,41)' }, h2: { 'font-size': '1.2em', 'text-align': 'center', 'font-weight': 'bold', 'display': 'table', - 'margin': '4em auto 2em auto', - 'padding': '0 1em', - 'border-bottom': '1px solid rgb(248,57,41)' + 'margin': '4em auto 2em', + 'padding': '0 0.2em', + 'background': 'rgb(248,57,41)', + 'color': '#fff' }, h3: { 'font-weight': 'bold', 'font-size': '1.1em', 'margin': '2em 8px 0.75em 0', - 'padding-bottom': '.1em', - // 'border-bottom': '1px solid #eaecef', + 'line-height': '1.2', 'padding-left': '8px', - 'border-left': '4px solid rgb(248,57,41)' + 'border-left': '3px solid rgb(248,57,41)' }, h4: { 'font-weight': 'bold', 'font-size': '1em', - 'margin': '2em 8px 0.5em 8px', + 'margin': '2em 8px 0.5em', }, p: { 'margin': '1.5em 8px', @@ -76,7 +75,7 @@ let defaultTheme = { 'border-radius': '4px', 'display': 'block', 'margin': '0.5em auto', - 'width': '100%' + 'width': '100% !important' }, image_org: { 'border-radius': '4px', @@ -100,7 +99,6 @@ let defaultTheme = { } }, inline: { - // inline element listitem: { 'text-indent': '-1em', 'display': 'block', @@ -146,4 +144,4 @@ let defaultTheme = { 'font-size': '0.8em' } } -}; +}; \ No newline at end of file diff --git a/index.html b/index.html index f0a9734..e57fe7c 100644 --- a/index.html +++ b/index.html @@ -36,14 +36,14 @@