From a0356f9de9b739ad33725391c5f0d4b00a1e987b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 9 Sep 2023 18:11:39 +0200 Subject: [PATCH] Fix the color values when hovering drop-down menus See --- wcfsetup/install/files/style/ui/ckeditor.scss | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/style/ui/ckeditor.scss b/wcfsetup/install/files/style/ui/ckeditor.scss index 3492ff75c6..3536e70313 100644 --- a/wcfsetup/install/files/style/ui/ckeditor.scss +++ b/wcfsetup/install/files/style/ui/ckeditor.scss @@ -234,11 +234,19 @@ } &.ck-on { - color: var(--ck-color-list-button-on-text); + background-color: var(--wcfDropdownBackgroundActive); + color: var(--wcfDropdownLinkActive); } } } +@media (hover: hover) { + .ck-body-wrapper .ck.ck-list__item .ck-button:not(.ck-disabled, .ck-on):hover { + background-color: var(--wcfDropdownBackgroundActive); + color: var(--wcfDropdownLinkActive); + } +} + .ck.ck-content td { /* Workaround for an ancient bug in Firefox that cause the background color to overlap the collapsed border: https://bugzilla.mozilla.org/show_bug.cgi?id=688556#c43 */ -- 2.20.1