Fix the hover state of buttons in the image viewer
authorAlexander Ebert <ebert@woltlab.com>
Sat, 29 Jul 2023 10:17:40 +0000 (12:17 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 29 Jul 2023 10:17:40 +0000 (12:17 +0200)
See https://www.woltlab.com/community/thread/300776-bilder-lightbox-buttons-schwer-erkennbar-und-fehlendes-hover/

wcfsetup/install/files/style/ui/imageViewer.scss

index c50f7d04aa0fe45dabe921a729f18c647c96db0a..3bb34c64ab7eed6ec7f1ce493854682cbabff887 100644 (file)
@@ -14,7 +14,7 @@
        top: 0;
        z-index: 399;
 
-       .icon {
+       fa-icon {
                color: rgb(158, 158, 158);
        }
 
@@ -55,7 +55,9 @@
                                opacity: 0;
                                visibility: hidden;
 
-                               transition: visibility 0s linear 0.24s, opacity 0.24s linear;
+                               transition:
+                                       visibility 0s linear 0.24s,
+                                       opacity 0.24s linear;
                        }
 
                        > div > ul > li.pointer {
                        z-index: 10;
 
                        &.animateTransformation {
-                               transition: left 0.24s, margin-top 0.24s, height 0.24s, width 0.24s, opacity 0.24s;
+                               transition:
+                                       left 0.24s,
+                                       margin-top 0.24s,
+                                       height 0.24s,
+                                       width 0.24s,
+                                       opacity 0.24s;
                        }
 
                        &.active {
        }
 
        &:not(.wcfImageViewerMobile) {
-               .icon:hover {
+               .pointer:hover fa-icon,
+               .wcfImageViewerButtonClose:hover fa-icon {
                        color: rgb(255, 255, 255);
                }