X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/c622b785a969075bbc59129471d42d2df7377ea8..refs/pull/5313/head:/resources/sass/_tinymce.scss diff --git a/resources/sass/_tinymce.scss b/resources/sass/_tinymce.scss index c4336da7c..129e47821 100644 --- a/resources/sass/_tinymce.scss +++ b/resources/sass/_tinymce.scss @@ -21,6 +21,7 @@ padding-block-end: 1rem; outline: 0; display: block; + max-width: 870px; } .wysiwyg-input.mce-content-body { @@ -30,6 +31,13 @@ display: block; } +.wysiwyg-input.mce-content-body:before { + padding: 1rem; + top: 4px; + font-style: italic; + @include lightDark(color, rgba(34,47,62,.5), rgba(155,155,155,.5)) +} + // Default styles for our custom root nodes .page-content.mce-content-body doc-root { display: block; @@ -38,11 +46,6 @@ display: block; } -// In editor line height override -.page-content.mce-content-body p { - line-height: 1.6; -} - // Pad out bottom of editor body.page-content.mce-content-body { padding-bottom: 5rem; @@ -103,6 +106,16 @@ body.page-content.mce-content-body { float: none !important; } +.page-content.mce-content-body td[data-mce-selected]::after, +.page-content.mce-content-body th[data-mce-selected]::after { + top: 1px; + left: 1px; + bottom: 1px; + right: 1px; + outline: 1px dashed #1a85ff; + outline-offset: 0; +} + /** * Dark Mode Overrides */ @@ -160,7 +173,7 @@ body.page-content.mce-content-body { * Fake task list checkboxes */ .page-content.mce-content-body .task-list-item { - margin-left: 0; + margin-inline-start: 0; position: relative; } .page-content.mce-content-body .task-list-item > input[type="checkbox"] { @@ -173,11 +186,11 @@ body.page-content.mce-content-body { width: 12px; height: 12px; border-radius: 2px; - margin-right: 8px; + margin-inline-end: 8px; vertical-align: text-top; cursor: pointer; position: absolute; - left: -24px; + inset-inline-start: -24px; top: 4px; }