From 9d235a714504c44f461dd090fd4306a6f2cd36b3 Mon Sep 17 00:00:00 2001 From: ninabreznik Date: Tue, 23 Jan 2018 02:34:48 +0800 Subject: [PATCH] Fixed styling --- src/app/ui/tooltip.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/app/ui/tooltip.js b/src/app/ui/tooltip.js index 93c6b7c08a..0f58d70ae1 100644 --- a/src/app/ui/tooltip.js +++ b/src/app/ui/tooltip.js @@ -18,22 +18,23 @@ var css = csjs` bottom: -300; left: 40%; font-size: 12px; + text-align: center; -webkit-animation-name: animatebottom; -webkit-animation-duration: 6s; animation-name: animatebottom; animation-duration: 6s } - @-webkit-keyframes animatebottom { - 0% {bottom: -300px; opacity: 0} - 20% {bottom: 0; opacity: 0.8} - 50% {bottom: 0; opacity: 1} - 100% {bottom: -300px; opacity: 0} + @-webkit-keyframes animatebottom { + 0% {bottom: -300px} + 20% {bottom: 0} + 50% {bottom: 0} + 100% {bottom: -300px} } - @keyframes animatebottom { - 0% {bottom: -300px; opacity: 0} - 20% {bottom: 0; opacity: 0.8} - 50% {bottom: 0; opacity: 1} - 100% {bottom: -300px; opacity: 0} 1} + @keyframes animatebottom { + 0% {bottom: -300px} + 20% {bottom: 0} + 50% {bottom: 0} + 100% {bottom: -300px} } `