From 566d146b051fcc8b81fcbba6ff6772cf4bbeab92 Mon Sep 17 00:00:00 2001 From: Jin <22962980+JYC333@users.noreply.github.com> Date: Fri, 13 Sep 2024 20:40:57 +0200 Subject: [PATCH] fix ckeditor table background color in dark mode --- src/public/stylesheets/style.css | 5 +++-- src/public/stylesheets/theme-dark.css | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 53e010165..63a028551 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -107,7 +107,7 @@ input::placeholder, /* Fix center vertical alignment of table cells */ vertical-align: middle; color: var(--main-text-color); - background: transparent; + background: var(--input-background-color); } .ck .todo-list__checkmark { @@ -718,7 +718,8 @@ div[data-notify="container"] { background-color: var(--accented-background-color); } -.ck-content .image > figcaption { +.ck-content .image > figcaption, +.ck-content .table > figcaption { color: var(--main-text-color) !important; background-color: var(--accented-background-color) !important; } diff --git a/src/public/stylesheets/theme-dark.css b/src/public/stylesheets/theme-dark.css index 718b67b5d..022f8f3c6 100644 --- a/src/public/stylesheets/theme-dark.css +++ b/src/public/stylesheets/theme-dark.css @@ -92,3 +92,7 @@ body .todo-list input[type="checkbox"]:not(:checked):before { .btn-close { filter: invert(1); } + +.ck-widget.table td.ck-editor__nested-editable:focus { + background: var(--input-background-color); +} \ No newline at end of file