Skip to content

Build your personal knowledge base with Trilium Notes

feat(print): improve rendering of tables

Elian Dorand1a5d317edad
diff --git a/src/public/stylesheets/print.css b/src/public/stylesheets/print.css
index ef3f6e2a7a..86a5e8085e 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 {