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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0747c8c846 [INLONG-806] Download page optimization download button 
(#807)
0747c8c846 is described below

commit 0747c8c8466d5a57e6e4a3ee5a4ce11dde88574c
Author: Lizhen <88174078+bluew...@users.noreply.github.com>
AuthorDate: Mon Jul 24 17:34:41 2023 +0800

    [INLONG-806] Download page optimization download button (#807)
---
 src/pages/downloads/download.module.less | 45 ++++++--------------------------
 src/pages/downloads/index.js             |  7 -----
 2 files changed, 8 insertions(+), 44 deletions(-)

diff --git a/src/pages/downloads/download.module.less 
b/src/pages/downloads/download.module.less
index 7ca83fb469..5674b3a04f 100644
--- a/src/pages/downloads/download.module.less
+++ b/src/pages/downloads/download.module.less
@@ -66,55 +66,30 @@
   }
 }
 
-.buttonDown {
-  width: auto;
-  padding: 12px 18px;
-  font-size: 18px;
-  font-weight: 600;
-  border-radius: 0.5rem;
-  transition: all 0.3s;
-  background: var(--ifm-color-primary);
-  color: white;
-  border: none;
-  box-sizing: border-box;
-  flex-direction: row;
-  align-items: center;
-  justify-content: center;
-  cursor: pointer;
-  &:hover {
-    filter: brightness(105%);
-  }
-  svg {
-    height: 22px;
-    margin-right: 4px;
-    padding-bottom: 2px;
-  }
-}
-
 .styledDropdown {
-  top: 45px;
+  list-style-type: none;
+  top: 0px;
   left: 0;
   position: absolute;
-  margin-top: 0.25rem;
+  margin-top: 0.15rem;
   border-radius: 0.5rem;
-  border: 1px solid #eee;
   z-index: 100;
-  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
-  0 4px 6px -2px rgba(0, 0, 0, 0.05);
-  visibility: hidden;
   transition-delay: 0.6s;
 }
 
 .dropdownItem {
   margin: 0.2rem;
-  padding: 0.2rem 1rem 0.2rem 0.5rem;
+  padding: 0.2rem 1rem 0.2rem 1rem;
   border-radius: 5px;
   cursor: pointer;
   font-weight: 500;
   display: block;
+  border: 1px solid #eee;
+  float: left;
   color: inherit;
   &:hover {
-    color: inherit;
+    color: white;
+    background: var(--ifm-color-primary);
     text-decoration: none;
   }
 }
@@ -136,10 +111,6 @@
   line-height: 10px;
 }
 
-.buttonDown:hover + .styledDropdown{
-  visibility: inherit;
-}
-
 .styledDropdown:hover {
   visibility: inherit;
 }
diff --git a/src/pages/downloads/index.js b/src/pages/downloads/index.js
index 21342ed3bb..6d127aa091 100644
--- a/src/pages/downloads/index.js
+++ b/src/pages/downloads/index.js
@@ -32,9 +32,6 @@ export default function() {
                             </div>
                             <div className={styles.buttonRow}>
                                 <div className={styles.buttonCard}>
-                                    <button className={styles.buttonDown}>
-                                        Download
-                                    </button>
                                     <div className={styles.styledDropdown}>
                                         <a className={styles.dropdownItem} 
href={`https://downloads.apache.org/inlong/${version}/apache-inlong-${version}-src.tar.gz`}>SRC</a>
                                         <a target="_blank" 
className={styles.dropdownItem} 
href={`https://downloads.apache.org/inlong/${version}/apache-inlong-${version}-src.tar.gz.asc`}>ASC</a>
@@ -59,9 +56,6 @@ export default function() {
                             </div>
                             <div className={styles.buttonRow}>
                                 <div className={styles.buttonCard}>
-                                    <button className={styles.buttonDown}>
-                                        Download
-                                    </button>
                                     <div className={styles.styledDropdown}>
                                         <a className={styles.dropdownItem} 
href={`https://downloads.apache.org/inlong/${version}/apache-inlong-${version}-bin.tar.gz`}>BIN</a>
                                         <a target="_blank" 
className={styles.dropdownItem} 
href={`https://downloads.apache.org/inlong/${version}/apache-inlong-${version}-bin.tar.gz.asc`}>ASC</a>
@@ -85,7 +79,6 @@ export default function() {
                             </div>
                             <div className={styles.buttonRow}>
                                 <div className={styles.buttonCard}>
-                                    <button 
className={styles.buttonDown}>Download</button>
                                     <div className={styles.styledDropdown}>
                                         <a className={styles.dropdownItem} 
href={`https://downloads.apache.org/inlong/${version}/apache-inlong-${version}-sort-connectors.tar.gz`}>BIN</a>
                                         <a target="_blank" 
className={styles.dropdownItem} 
href={`https://downloads.apache.org/inlong/${version}/apache-inlong-${version}-sort-connectors.tar.gz.asc`}>ASC</a>

Reply via email to