From 01515bd580d343ab86d442aa9c75c4951b7dccb3 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Thu, 9 Jan 2025 21:35:33 +0100 Subject: [PATCH] fix(styles): fix ck-editor checkboxes not showing checkmark while printing Due to CSS specificity using plain "input[checked]::before" does not work. fixes #901 --- src/public/stylesheets/print.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/public/stylesheets/print.css b/src/public/stylesheets/print.css index cf3595d37..d9674458e 100644 --- a/src/public/stylesheets/print.css +++ b/src/public/stylesheets/print.css @@ -25,4 +25,11 @@ border: 0.75pt solid gray !important; border-radius: 2pt !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 { + /* fallback to default ck-editor green */ + border-color: hsl(126, 64%, 41%); + } }