Frans 7 years ago
parent
commit
3546a71697
1 changed files with 23 additions and 2 deletions
  1. 23 2
      sites/doc/index.vue

+ 23 - 2
sites/doc/index.vue

@@ -581,6 +581,7 @@ export default {
       line-height: 64px;
       line-height: 64px;
       cursor: pointer;
       cursor: pointer;
       color: #fff;
       color: #fff;
+      position: relative;
       & > a {
       & > a {
         display: block;
         display: block;
         height: 100%;
         height: 100%;
@@ -598,8 +599,28 @@ export default {
       margin-left: 20px;
       margin-left: 20px;
       font-size: 12px;
       font-size: 12px;
     }
     }
-    li:hover {
-      border-bottom: 2px solid #fff;
+    
+    li::before{
+      content:'';
+      position: absolute;
+      top:0;
+      left:100%;
+      width:0;
+      height:100%;
+      border-bottom:2px solid #fff;
+      transition:0.2s all linear;
+
+    }
+    li:hover:before{
+      width:100%;
+      top:0;
+      left:0;
+      transition-delay:0.1s;
+      border-bottom-color:#fff;
+      z-index:-1;
+    }
+    li:hover ~ li::before{
+      left:0;
     }
     }
     .github-icon {
     .github-icon {
       display: inline-block;
       display: inline-block;