From bd638b689f6bfa17fab932e6fc9dde88fba7e3ae Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 1 Feb 2025 19:33:45 +0200 Subject: [PATCH] feat(print): improve todo list rendering --- src/public/stylesheets/print.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/public/stylesheets/print.css b/src/public/stylesheets/print.css index d412198fc..aa2339b94 100644 --- a/src/public/stylesheets/print.css +++ b/src/public/stylesheets/print.css @@ -158,9 +158,15 @@ span[style] { /* 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 { +.ck-content .todo-list .todo-list__label > input { + opacity: 1; + print-color-adjust: exact; + -webkit-print-color-adjust: exact; +} + +.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input[checked]::after { /* fallback to default ck-editor green */ - border-color: hsl(126, 64%, 41%); + border-color: hsl(126, 64%, 41%) !important; } .include-note .include-note-content {