diff --git a/customize.dist/src/less2/include/markdown.less b/customize.dist/src/less2/include/markdown.less index ac6f901d9..e98c0920c 100644 --- a/customize.dist/src/less2/include/markdown.less +++ b/customize.dist/src/less2/include/markdown.less @@ -1,6 +1,7 @@ .markdown_main() { blockquote { background: #e5e5e5; + background: rgba(128,128,128,0.5); padding: 10px; border-left: 3px solid #999; padding-right: 0; diff --git a/www/code/app-code.less b/www/code/app-code.less index ddd0762b2..cb1be214d 100644 --- a/www/code/app-code.less +++ b/www/code/app-code.less @@ -63,10 +63,31 @@ height: 100%; border-left: 1px solid black; box-sizing: border-box; - font-family: Calibri,Ubuntu,sans-serif; + //font-family: Calibri,Ubuntu,sans-serif; + font: @colortheme_app-font; word-wrap: break-word; position: relative; flex: 1; + h1, h2, h3, h4, h5, h6 { + font-weight: bold; + padding-bottom: 0.3em; + border-bottom: 1px solid #eee; + } + li { + min-height: 22px; + } + .todo-list-item { + list-style: none; + .fa { + position: absolute; + margin-left: -17px; + margin-top: 4px; + &.fa-check-square { + font-size: 15px; + margin-top: 5px; + } + } + } media-tag { * { max-width:100%; diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 467dfa3e6..93a079e4d 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -53,22 +53,22 @@ define([ var hasBogusInput = bogusCheckPtn.test(text); if (isCheckedTaskItem) { text = text.replace(checkedTaskItemPtn, - ' ') + '\n'; + '') + '\n'; } if (isUncheckedTaskItem) { text = text.replace(uncheckedTaskItemPtn, - ' ') + '\n'; + '') + '\n'; } if (!isCheckedTaskItem && !isUncheckedTaskItem && hasBogusInput) { if (/checked/.test(text)) { text = text.replace(bogusCheckPtn, - ' ') + '\n'; + '') + '\n'; } else if (/disabled/.test(text)) { text = text.replace(bogusCheckPtn, - ' ') + '\n'; + '') + '\n'; } } - var cls = (isCheckedTaskItem || isUncheckedTaskItem) ? ' class="todo-list-item"' : ''; + var cls = (isCheckedTaskItem || isUncheckedTaskItem || hasBogusInput) ? ' class="todo-list-item"' : ''; return '' + text + '\n'; }; renderer.image = function (href, title, text) {