aboutsummaryrefslogtreecommitdiff
path: root/style.css
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-07 18:46:47 +0100
committerJoris Guyonvarch2015-03-07 18:46:47 +0100
commit6c1f5e10631a3f66f4c85a45b6f28ffd366105c5 (patch)
tree624d833aa62ad8ce5ed172144ff69a2846d55154 /style.css
parentae14beca0452b59ead64b8cdd6544824d59a55dc (diff)
Show best score in html layout
Diffstat (limited to 'style.css')
-rw-r--r--style.css39
1 files changed, 37 insertions, 2 deletions
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;
+ }
+}