From 6c1f5e10631a3f66f4c85a45b6f28ffd366105c5 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Sat, 7 Mar 2015 18:46:47 +0100 Subject: Show best score in html layout --- style.css | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'style.css') diff --git a/style.css b/style.css index a32951d..6499535 100644 --- a/style.css +++ b/style.css @@ -11,9 +11,9 @@ h1 { color: white; margin: 0; font-size: 36px; - padding-top: 30px; - padding-bottom: 30px; text-align: center; + line-height: 100px; + height: 100px; } #game { @@ -32,3 +32,38 @@ p { font-style: italic; font-size: 17px; } + +.bestScore { + position: absolute; + top: 100px; + left: 0px; + padding: 0 20px; + background-color: #222222; + color: rgba(0, 0, 0, 0); + height: 0px; + line-height: 0px; + margin: 0; +} + +.isDefined { + animation: reveal 1s ease; + height: 50px; + line-height: 50px; + color: white; +} + +@keyframes reveal { + 0% { + height: 0px; + line-height: 0px; + color: rgba(0, 0, 0, 0); + } + 30% { + color: rgba(0, 0, 0, 0); + } + 100% { + height: 50px; + line-height: 50px; + color: white; + } +} -- cgit v1.2.3