Store best score in localStorage
Dependency injection and hide best score for incompatible browsers
This commit is contained in:
+15
-3
@@ -58,11 +58,15 @@ h1.title {
|
||||
}
|
||||
}
|
||||
|
||||
.score-container {
|
||||
.scores-container {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.score-container, .best-container {
|
||||
$height: 25px;
|
||||
|
||||
position: relative;
|
||||
float: right;
|
||||
display: inline-block;
|
||||
background: $game-container-background;
|
||||
padding: 15px 25px;
|
||||
font-size: $height;
|
||||
@@ -72,13 +76,13 @@ h1.title {
|
||||
border-radius: 3px;
|
||||
color: white;
|
||||
margin-top: 8px;
|
||||
text-align: center;
|
||||
|
||||
&:after {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: 10px;
|
||||
left: 0;
|
||||
content: "Score";
|
||||
text-transform: uppercase;
|
||||
font-size: 13px;
|
||||
line-height: 13px;
|
||||
@@ -100,6 +104,14 @@ h1.title {
|
||||
}
|
||||
}
|
||||
|
||||
.score-container:after {
|
||||
content: "Score";
|
||||
}
|
||||
|
||||
.best-container:after {
|
||||
content: "Best"
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
|
||||
Reference in New Issue
Block a user