Suppress button hover states on touch devices
authorAlexander Ebert <ebert@woltlab.com>
Tue, 18 Jul 2023 13:01:52 +0000 (15:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 18 Jul 2023 13:01:52 +0000 (15:01 +0200)
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

index 58be5fbd05bb43d89fc8a290c2c99f72c8315b54..a480cb2f53b47ee849dab3d281b8267f587cc86f 100644 (file)
        }
 }
 
+@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);