add movement check, score addition
This commit is contained in:
@@ -22,6 +22,33 @@ h1.title {
|
||||
display: block;
|
||||
float: left; }
|
||||
|
||||
@-webkit-keyframes move-up {
|
||||
0% {
|
||||
top: 25px;
|
||||
opacity: 1; }
|
||||
|
||||
100% {
|
||||
top: -50px;
|
||||
opacity: 0; } }
|
||||
|
||||
@-moz-keyframes move-up {
|
||||
0% {
|
||||
top: 25px;
|
||||
opacity: 1; }
|
||||
|
||||
100% {
|
||||
top: -50px;
|
||||
opacity: 0; } }
|
||||
|
||||
@keyframes move-up {
|
||||
0% {
|
||||
top: 25px;
|
||||
opacity: 1; }
|
||||
|
||||
100% {
|
||||
top: -50px;
|
||||
opacity: 0; } }
|
||||
|
||||
.score-container {
|
||||
position: relative;
|
||||
float: right;
|
||||
@@ -45,6 +72,19 @@ h1.title {
|
||||
line-height: 13px;
|
||||
text-align: center;
|
||||
color: #eee4da; }
|
||||
.score-container .score-addition {
|
||||
position: absolute;
|
||||
right: 30px;
|
||||
color: red;
|
||||
font-size: 25px;
|
||||
line-height: 25px;
|
||||
font-weight: bold;
|
||||
color: rgba(119, 110, 101, 0.9);
|
||||
z-index: 100;
|
||||
-webkit-animation: move-up 600ms ease-in;
|
||||
-moz-animation: move-up 600ms ease-in;
|
||||
-webkit-animation-fill-mode: both;
|
||||
-moz-animation-fill-mode: both; }
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
|
||||
@@ -46,6 +46,18 @@ h1.title {
|
||||
float: left;
|
||||
}
|
||||
|
||||
@include keyframes(move-up) {
|
||||
0% {
|
||||
top: 25px;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
top: -50px;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.score-container {
|
||||
$height: 25px;
|
||||
|
||||
@@ -73,6 +85,19 @@ h1.title {
|
||||
text-align: center;
|
||||
color: $tile-color;
|
||||
}
|
||||
|
||||
.score-addition {
|
||||
position: absolute;
|
||||
right: 30px;
|
||||
color: red;
|
||||
font-size: $height;
|
||||
line-height: $height;
|
||||
font-weight: bold;
|
||||
color: rgba($text-color, .9);
|
||||
z-index: 100;
|
||||
@include animation(move-up 600ms ease-in);
|
||||
@include animation-fill-mode(both);
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
|
||||
Reference in New Issue
Block a user