X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/2b3726702d6dc4d0d0262e00f161ca06835cd42d..refs/pull/4467/head:/resources/sass/_tinymce.scss diff --git a/resources/sass/_tinymce.scss b/resources/sass/_tinymce.scss index 6add27f45..13b6f676b 100644 --- a/resources/sass/_tinymce.scss +++ b/resources/sass/_tinymce.scss @@ -35,6 +35,11 @@ body.page-content.mce-content-body { padding-bottom: 5rem; } +// Remove svg background line in toolbar items +.tox .tox-pop__dialog .tox-toolbar { + background: transparent !important; +} + // Center toolbar items .tox-toolbar__primary { justify-content: center; @@ -71,7 +76,7 @@ body.page-content.mce-content-body { .dark-mode .tox .tox-dialog__footer, .dark-mode .tox .tox-pop__dialog, .dark-mode .tox.tox-tinymce-aux .tox-toolbar__overflow { - background-color: #333; + background-color: #333 !important; } .dark-mode .tox .tox-tbtn svg, .dark-mode .tox .tox-tbtn, @@ -105,11 +110,43 @@ body.page-content.mce-content-body { border-left: 3px solid currentColor !important; } .tox-menu .tox-collection__item[title^="<"] > div > div { - font-family: $mono !important; + font-family: var(--font-code) !important; border: 1px solid #DDD !important; background-color: #EEE !important; padding: 4px 6px !important; } .tox-menu .tox-collection__item-label { line-height: normal !important; +} + +/** + * Fake task list checkboxes + */ +.page-content.mce-content-body .task-list-item { + margin-left: 0; + position: relative; +} +.page-content.mce-content-body .task-list-item > input[type="checkbox"] { + display: none; +} +.page-content.mce-content-body .task-list-item:before { + content: ''; + display: inline-block; + border: 2px solid #CCC; + width: 12px; + height: 12px; + border-radius: 2px; + margin-right: 8px; + vertical-align: text-top; + cursor: pointer; + position: absolute; + left: -24px; + top: 4px; +} + +.page-content.mce-content-body .task-list-item[checked]:before { + background-color: #CCC; + background-image: url('data:image/svg+xml;utf8,'); + background-position: 50% 50%; + background-size: 100% 100%; } \ No newline at end of file