From fe7f341663b1853d2e1f5fdcfc3c7ae7d84e8f31 Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Thu, 14 May 2020 19:49:25 +0530 Subject: [PATCH] chore: remove rain animation --- app/app/templates/shared/rain.html | 19 -- app/assets/v2/css/rain.css | 175 ------------------ app/dashboard/templates/ens/base.html | 1 - app/dashboard/templates/onepager/base.html | 1 - .../templates/shared/waiting_state.html | 1 - .../grants/shared/waiting_state.html | 1 - app/kudos/templates/transaction/base.html | 1 - .../templates/bounties/contributor/hero.html | 3 +- .../templates/bounties/funder/hero.html | 3 +- app/retail/templates/shared/head.html | 1 - app/retail/templates/shared/minihero.html | 1 - app/retail/templates/verified.html | 1 - 12 files changed, 2 insertions(+), 206 deletions(-) delete mode 100644 app/app/templates/shared/rain.html delete mode 100644 app/assets/v2/css/rain.css diff --git a/app/app/templates/shared/rain.html b/app/app/templates/shared/rain.html deleted file mode 100644 index 2137aa52887..00000000000 --- a/app/app/templates/shared/rain.html +++ /dev/null @@ -1,19 +0,0 @@ -{% comment %} - Copyright (C) 2020 Gitcoin Core - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -{% endcomment %} -{% for i in "1234567890" %} - -{% endfor %} diff --git a/app/assets/v2/css/rain.css b/app/assets/v2/css/rain.css deleted file mode 100644 index d2da8abc056..00000000000 --- a/app/assets/v2/css/rain.css +++ /dev/null @@ -1,175 +0,0 @@ -.rain { - position: absolute; - top: -50%; - background: white; - height: 100px; - width: 6px; - border-radius: 15px; - z-index: 0; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; - will-change: transform, top, left; - -webkit-animation-name: rains-fall, rains-shake; - animation-name: rains-fall, rains-shake; - -webkit-animation-duration: 20s, 8s; - animation-duration: 20s, 8s; - -webkit-animation-timing-function: linear, linear; - animation-timing-function: linear, linear; - -webkit-animation-iteration-count: infinite, infinite; - animation-iteration-count: infinite, infinite; - -webkit-animation-play-state: running, running; - animation-play-state: running, running; - display: none; -} - -.transaction .rain, -.tips .rain { - position: fixed; -} - -@media (min-width: 768px) { - .rain { - display: block; - } -} - -.rain:nth-of-type(3n+0) { - background: rgba(13, 13, 109, 0.4); -} - -.rain:nth-of-type(3n+1) { - background: rgba(244, 31, 122, 0.4); -} - -.rain:nth-of-type(3n+2) { - background: rgba(74, 235, 168, 0.4); -} - -.rain.grey { - background: rgba(241,225,255,0.2); -} - -.rain.purple { - background-color: rgba(13,7,100, 0.2); -} - -@-webkit-keyframes rains-fall { - 0% { - top: -100%; - } - 100% { - top: 100%; - } -} - -@keyframes rains-fall { - 0% { - top: -100%; - } - 100% { - top: 100%; - } -} - -@-webkit-keyframes rains-shake { - 0% { - -webkit-transform: rotate(45deg) translate(0, -100vw); - transform: rotate(45deg) translate(0, -100vw); - } - 100% { - -webkit-transform: rotate(45deg) translate(0, 100vw); - transform: rotate(45deg) translate(0, 100vw); - } -} - -@keyframes rains-shake { - 0% { - -webkit-transform: rotate(45deg) translate(0, -100vw); - transform: rotate(45deg) translate(0, -100vw); - } - 100% { - -webkit-transform: rotate(45deg) translate(0, 100vw); - transform: rotate(45deg) translate(0, 100vw); - } -} - -.rain:nth-of-type(10) { - left: 1%; - -webkit-animation-delay: 0s, 0s; - animation-delay: 0s, 0s; - width: 10px; - height: 100px; -} - -.rain:nth-of-type(1) { - left: 10%; - -webkit-animation-delay: 6s, 6s; - animation-delay: 6s, 6s; - width: 8px; - height: 80px; -} - -.rain:nth-of-type(2) { - left: 20%; - -webkit-animation-delay: 6s, 0.5s; - animation-delay: 6s, 0.5s; - width: 15px; - height: 120px; -} - -.rain:nth-of-type(3) { - left: 30%; - -webkit-animation-delay: 4s, 2s; - animation-delay: 4s, 2s; - width: 12px; - height: 95px; -} - -.rain:nth-of-type(4) { - left: 40%; - -webkit-animation-delay: 2s, 2s; - animation-delay: 2s, 2s; - width: 8px; - height: 100px; -} - -.rain:nth-of-type(5) { - left: 50%; - -webkit-animation-delay: 8s, 3s; - animation-delay: 8s, 3s; - width: 14px; - height: 110px; -} - -.rain:nth-of-type(6) { - left: 60%; - -webkit-animation-delay: 6s, 2s; - animation-delay: 6s, 2s; - width: 8px; - height: 90px; -} - -.rain:nth-of-type(7) { - left: 70%; - -webkit-animation-delay: 2.5s, 1s; - animation-delay: 2.5s, 1s; - width: 16px; - height: 100px; -} - -.rain:nth-of-type(8) { - left: 80%; - -webkit-animation-delay: 1s, 0s; - animation-delay: 1s, 0s; - width: 10px; - height: 100px; -} - -.rain:nth-of-type(9) { - left: 90%; - -webkit-animation-delay: 3s, 1.5s; - animation-delay: 3s, 1.5s; -} diff --git a/app/dashboard/templates/ens/base.html b/app/dashboard/templates/ens/base.html index 4852ef18540..993735b2493 100644 --- a/app/dashboard/templates/ens/base.html +++ b/app/dashboard/templates/ens/base.html @@ -31,7 +31,6 @@ {% block 'world' %} {% endblock %} - {% include 'shared/rain.html' with class="color" %}
{% include 'shared/onepager_auth.html' with source='authed' %} diff --git a/app/dashboard/templates/onepager/base.html b/app/dashboard/templates/onepager/base.html index ba0f0990de3..a6b82973d91 100644 --- a/app/dashboard/templates/onepager/base.html +++ b/app/dashboard/templates/onepager/base.html @@ -84,7 +84,6 @@ {% endif %}
- {% include 'shared/rain.html' with class="color" %} {% include 'shared/footer_scripts.html' with slim=1 %} diff --git a/app/dashboard/templates/shared/waiting_state.html b/app/dashboard/templates/shared/waiting_state.html index 8fb60f3727d..e6782847943 100644 --- a/app/dashboard/templates/shared/waiting_state.html +++ b/app/dashboard/templates/shared/waiting_state.html @@ -18,7 +18,6 @@ {% include 'shared/bounty_waiting_state.html' with can_close=True %} - -{% include 'shared/rain.html' with class="grey" %} + \ No newline at end of file diff --git a/app/retail/templates/shared/head.html b/app/retail/templates/shared/head.html index 1b4b53f6003..e77cce58bce 100644 --- a/app/retail/templates/shared/head.html +++ b/app/retail/templates/shared/head.html @@ -44,7 +44,6 @@ {% endif %} - diff --git a/app/retail/templates/shared/minihero.html b/app/retail/templates/shared/minihero.html index 431aed12429..3de0bb9d895 100644 --- a/app/retail/templates/shared/minihero.html +++ b/app/retail/templates/shared/minihero.html @@ -34,5 +34,4 @@

{{h1}}

{% endif %} {% endif %} - {% include 'shared/rain.html' with class="grey" %} diff --git a/app/retail/templates/verified.html b/app/retail/templates/verified.html index 9f225a6800b..2e8c77a11da 100644 --- a/app/retail/templates/verified.html +++ b/app/retail/templates/verified.html @@ -47,7 +47,6 @@
- {% include 'shared/rain.html' with class="grey" %}