]> _ Git - fluidbook-html5.git/commitdiff
fix #3792 @0:20
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 17 Jul 2020 07:12:02 +0000 (09:12 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 17 Jul 2020 07:12:02 +0000 (09:12 +0200)
style/mixins.less
style/mmenu/mmenu.less

index 7f1a55c2873d927e9e25e45f64a8c54817f089de..94178d1f43227cf5360b85a635ab8f255fb421f4 100644 (file)
   }
 
   .chapters {
-    a:hover {
+    a {
+      .menu-hover-item();
+    }
+  }
+}
 
-      background-color: @button;
+.menu-hover-item() {
+  background-color: transparent;
+  transition: background-color 250ms;
+
+  &:hover {
+    background-color: @menu-button-background;
+  }
+
+  &:focus {
+    .keyboard-navigating & {
+      background-color: @menu-button-background;
     }
   }
 }
index 4299a2977777108517afc926d9171f8d8fd807db..0551ba42d2708258ef3f38d1c3510000df43e69b 100644 (file)
@@ -290,15 +290,7 @@ html.mm-opening .mm-menu.mm-opened[class*=mm-pagedim] ~ #mm-blocker {
     height: auto;
     position: relative;
 
-    &:hover {
-      background-color: @menu-button-background;
-    }
-
-    &:focus {
-      .keyboard-navigating & {
-        background-color: @menu-button-background;
-      }
-    }
+    .menu-hover-item();
 
     // > arrow
     &:after {