From d1a5d317edad9aaf16ef52663bdcf98cf61e16b2 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 31 Jan 2025 23:57:50 +0200 Subject: [PATCH] feat(print): improve rendering of tables --- src/public/stylesheets/print.css | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/public/stylesheets/print.css b/src/public/stylesheets/print.css index ef3f6e2a7..86a5e8085 100644 --- a/src/public/stylesheets/print.css +++ b/src/public/stylesheets/print.css @@ -1,6 +1,7 @@ :root { --main-background-color: white; - --input-text-color: black; + --main-text-color: black; + --input-text-color: var(--main-text-color); } .no-print, @@ -100,6 +101,26 @@ span[style] { -webkit-print-color-adjust: exact; } +/* + * Text note specific fixes + */ +.ck-widget { + outline: none !important; +} + +.ck-widget__type-around, +.ck-widget__selection-handle { + display: none !important; +} + +.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused, +.ck-widget.table td.ck-editor__nested-editable:focus, +.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused, +.ck-widget.table th.ck-editor__nested-editable:focus { + background: unset !important; + outline: unset !important; +} + /* Fix visibility of checkbox checkmarks see https://github.com/TriliumNext/Notes/issues/901 */ .ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input[checked]::after {