You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/10/11 15:26:44 UTC

[skywalking-website] branch master updated: Update the style of the drop-down (#343)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-website.git


The following commit(s) were added to refs/heads/master by this push:
     new c181c8d  Update the style of the drop-down (#343)
c181c8d is described below

commit c181c8d6175ebe034c0dabdf64b51362bd20ea4a
Author: Juntao Zhang <71...@qq.com>
AuthorDate: Mon Oct 11 23:26:40 2021 +0800

    Update the style of the drop-down (#343)
---
 themes/docsy/assets/scss/_custom_docs.scss | 30 ++++++++++++++++--------------
 themes/docsy/layouts/docs/baseof.html      |  8 +++++---
 2 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/themes/docsy/assets/scss/_custom_docs.scss b/themes/docsy/assets/scss/_custom_docs.scss
index 7878ad3..cea5ba0 100644
--- a/themes/docsy/assets/scss/_custom_docs.scss
+++ b/themes/docsy/assets/scss/_custom_docs.scss
@@ -79,23 +79,25 @@
       box-shadow: none;
     }
 
-      .card-body{
-          padding-bottom: 50px;
-          position: relative;
-      }
+    .card-body{
+        padding-bottom: 50px;
+        position: relative;
+    }
     .doc-box {
-        padding: 0 1.25rem;
+      padding: 0 1.25rem;
       display: flex;
       justify-content: space-between;
-        width:100%;
-        position: absolute;
-        bottom: 20px;
-        left: 0;
-    }
-      .dropdown-menu{
-          min-width: 6rem;
-          width: 100%;
-      }
+      width:100%;
+      position: absolute;
+      bottom: 20px;
+      left: 0;
+    }
+    .dropdown-menu{
+      min-width: 6rem;
+      width: 100%;
+      max-height: 208px;
+      overflow-y: auto;
+    }
   }
 
   .title-box {
diff --git a/themes/docsy/layouts/docs/baseof.html b/themes/docsy/layouts/docs/baseof.html
index afe75f5..bb4af12 100644
--- a/themes/docsy/layouts/docs/baseof.html
+++ b/themes/docsy/layouts/docs/baseof.html
@@ -54,9 +54,11 @@
                           docs
                         </button>
                         <div class="dropdown-menu">
-                          {{range .docs}}
-                          <a class="dropdown-item" target="_blank" href="{{.link}}">{{.version}}</a>
-                          {{end}}
+                          <div>
+                            {{range .docs}}
+                            <a class="dropdown-item" target="_blank" href="{{.link}}">{{.version}}</a>
+                            {{end}}
+                          </div>
                         </div>
                       </div>
                       {{end}}