From e298864ab469d7fd941e71e17958dd329c28aa73 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 18 Jul 2023 15:01:52 +0200 Subject: [PATCH] Suppress button hover states on touch devices See https://www.woltlab.com/community/thread/300684-mobil-ist-es-nicht-erkennbar-wenn-man-eine-formatierung-deaktiviert/ --- wcfsetup/install/files/style/ui/ckeditor.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/style/ui/ckeditor.scss b/wcfsetup/install/files/style/ui/ckeditor.scss index 58be5fbd05..a480cb2f53 100644 --- a/wcfsetup/install/files/style/ui/ckeditor.scss +++ b/wcfsetup/install/files/style/ui/ckeditor.scss @@ -192,6 +192,13 @@ } } +@media (pointer: coarse) { + .ck-button:not(.ck-disabled, .ck-on) { + background: var(--ck-color-button-default-background) !important; + color: var(--ck-color-text) !important; + } +} + .ck-body-wrapper { .ck.ck-balloon-panel { box-shadow: var(--wcfBoxShadow); -- 2.20.1