diff options
author | Joris Guyonvarch | 2015-03-07 18:46:47 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-07 18:46:47 +0100 |
commit | 6c1f5e10631a3f66f4c85a45b6f28ffd366105c5 (patch) | |
tree | 624d833aa62ad8ce5ed172144ff69a2846d55154 /style.css | |
parent | ae14beca0452b59ead64b8cdd6544824d59a55dc (diff) |
Show best score in html layout
Diffstat (limited to 'style.css')
-rw-r--r-- | style.css | 39 |
1 files changed, 37 insertions, 2 deletions
@@ -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; + } +} |