From 77f9b152faea486327555df94b14cfb62d0ba0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 30 Aug 2018 11:59:32 -0700 Subject: [PATCH] ux: minor fixes to loading screen --- public/views/index.template.html | 49 ++++++++++---------------------- 1 file changed, 15 insertions(+), 34 deletions(-) diff --git a/public/views/index.template.html b/public/views/index.template.html index e1699f74673..d28b7d99952 100644 --- a/public/views/index.template.html +++ b/public/views/index.template.html @@ -38,28 +38,32 @@ align-items: center; } - .preloader--light { + .theme-light .preloader { background: linear-gradient(-60deg, #f7f8fa, #f5f6f9 70%, #f7f8fa 98%); } - .preloader--dark { + .theme-dark .preloader { background: linear-gradient(180deg, #222426 10px, #161719 100px); } .preloader__enter { - animation-name: first-bounce; - animation-duration: .9s; + opacity: 0; + animation-name: preloader-fade-in; animation-iteration-count: 1; + animation-duration: 2s; + animation-delay: 2s; + animation-fill-mode: forwards; } .preloader__bounce { + text-align: center; animation-name: preloader-bounce; animation-duration: .9s; animation-iteration-count: infinite; } .preloader__logo { - display: block; + display: inline-block; animation-name: preloader-squash; animation-duration: .9s; animation-iteration-count: infinite; @@ -75,43 +79,20 @@ font-weight: 500; font-size: 14px; font-family: 'Roboto'; - opacity: 0; - animation-name: text-fade-in; - animation-duration: 1.35s; - animation-iteration-count: 1; - animation-delay: .45s; - animation-fill-mode: forwards; } - .preloader__text--light { + .theme-light .preloader__text { color: #52545c; } - .preloader__text--dark { + .theme-dark .preloader__text { color: #d8d9da; } - @keyframes first-bounce { - 0% { - transform: translateY(100px); - opacity: 0; - animation-timing-function: cubic-bezier(0.3, 0.0, 0.1, 1) - } - 50% { - transform: translateY(-50px); - opacity: .8; - animation-timing-function: cubic-bezier(.9, 0, .7, 1) - } - 100% { - transform: translateY(0px); - opacity: 1; - } - } - - @keyframes text-fade-in { + @keyframes preloader-fade-in { 0% { opacity: 0; - animation-timing-function: cubic-bezier(0, 0, .2, .9) + animation-timing-function: linear; } 100% { opacity: 1; @@ -165,14 +146,14 @@ } -
+
+
Loading Grafana
-
Loading Grafana