-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
82 lines (81 loc) · 1.42 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
body{
background-color: black;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1,h2,h3,h4{
margin:0px;
font-weight: bold;
color: #333;
}
div{
display: block;
}
.container{
position: relative;
background: white;
width:700px;
margin: 40px auto;
padding:40px;
}
.container.flash{
-webkit-animation-name: flashBackground;
-webkit-animation-duration: 100ms;
/*-webkit-animation-timing-function: ease-in-out;*/
-webkit-animation-direction: alternate;
-webkit-animation-iteration-count: 1;
}
@-webkit-keyframes flashBackground{
from{
background: white;
}
to{
background: red;
}
}
#scores{
position: absolute;
padding:10px;
top:30px;
right:40px;
width: 200px;
background: #ddd;
text-align: right;
border-radius: 3px;
}
#scores span{
display: inline-block;
width:50px;
}
#gameBoard{
position: relative;
display:block;
}
.enemy{
/*fill: red;*/
stroke-width: 2;
stroke: black;
}
.player{
fill: #fff373;
stroke: black;
stroke-width: 2;
}
.player.active{
-webkit-animation-name: flash;
-webkit-animation-duration: 500ms;
-webkit-animation-timing-function: ease-in-out;
-webkit-animation-direction: alternate;
-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes flash{
from{
fill:#70ed3b;
stroke:#ff2300;
stroke-width:4;
}
to{
fill:#ff2300;
stroke:black;
stroke-width:1;
}
}