You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2022/01/25 01:39:06 UTC

[echarts-www] branch master updated: optimize responsive

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

shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-www.git


The following commit(s) were added to refs/heads/master by this push:
     new a55b4da  optimize responsive
a55b4da is described below

commit a55b4dae0f91c49eb1e42b118a1a1e53005a43be
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Jan 25 09:38:33 2022 +0800

    optimize responsive
---
 _jade/zh/index.jade     | 11 ++++++-----
 _scss/_pages.index.scss | 20 +++++++++++++++-----
 js/index.js             |  4 ++--
 3 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/_jade/zh/index.jade b/_jade/zh/index.jade
index c82656f..a6bce25 100644
--- a/_jade/zh/index.jade
+++ b/_jade/zh/index.jade
@@ -30,11 +30,12 @@ block content
                                 +svgGithub('#081642')
                     .home-landing-animation
                         .home-landing-animation-cover
-                            include ../components/svg/entry-pie.svg
-                            #play-landing-animation
-                                include ../components/svg/play.svg
-                                .loading
-                                    include ../components/svg/loading.svg
+                            .home-landing-animation-svg-container
+                                include ../components/svg/entry-pie.svg
+                                #play-landing-animation
+                                    include ../components/svg/play.svg
+                                    .loading
+                                        include ../components/svg/loading.svg
                         #home-landing-animation-container
                             #home-landing-animation-viewport
                             #home-landing-animation-close-btn
diff --git a/_scss/_pages.index.scss b/_scss/_pages.index.scss
index 550b878..20c4c07 100644
--- a/_scss/_pages.index.scss
+++ b/_scss/_pages.index.scss
@@ -155,6 +155,10 @@ body {
         position: absolute;
         right: 50px;
 
+        .home-landing-animation-svg-container {
+            position: relative;
+        }
+
         svg {
             width: 700px;
             height: 700px;
@@ -270,9 +274,14 @@ body {
         display: block;
     }
 
+
     .home-landing-animation-cover {
         display: none;
     }
+    .navbar-toggle {
+        display: none;
+    }
+
     .navbar-default {
         background-color: rgba(255,255,255,0.5);
         backdrop-filter: blur(5px);
@@ -294,6 +303,8 @@ body {
             }
         }
     }
+
+
     #navbar-collapse {
         background-color: transparent;
     }
@@ -690,12 +701,11 @@ body {
 }
 
 @media (max-width: 768px) {
-
-    #play-landing-animation {
-        display: none;
-    }
-
     #main-content {
+
+        .home-info {
+            margin-top: 5vh;
+        }
         .home-brand {
             font-size: 48px;
         }
diff --git a/js/index.js b/js/index.js
index 1d18118..9674410 100644
--- a/js/index.js
+++ b/js/index.js
@@ -122,8 +122,8 @@ window.lazyLoadOptions = {
 
     function loadLandingAnimationScripts() {
         return new Promise((resolve) => {
-            // var landingAnimationURL = 'http://localhost/echarts-www-landing-animation/'
-            var landingAnimationURL = 'https://cdn.jsdelivr.net/npm/echarts-www-landing-animation/';
+            var landingAnimationURL = 'http://localhost/echarts-www-landing-animation/'
+            // var landingAnimationURL = 'https://cdn.jsdelivr.net/npm/echarts-www-landing-animation/';
             // Load script.
             var link = document.createElement('link');
             var script = document.createElement('script');

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org