-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.css
73 lines (73 loc) · 1.15 KB
/
index.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
body
{
margin: 0px;
overflow: hidden;
cursor: none;
}
#board
{
height: 100vh;
width: 100vw;
position: relative;
background-color: skyblue;
}
#enemy
{
height: 3vh;
width: 10vw;
background-color: black;
position: absolute;
z-index: 1;
left: 0px;
top: 0px;
transition: left 1ms linear;
}
#player
{
height: 3vh;
width: 10vw;
background-color: black;
position: absolute;
bottom: 0px;
left: 0px;
}
#ball
{
position: absolute;
height: 4vh;
width: 4vh;
z-index: 0;
background-color: red;
top: 48vh;
left: 48vw;
border-radius: 50%;
transition-property: left, top;
transition-duration: 100ms;
transition-timing-function: linear;
}
#over{
height: 100vh;
width: 100vw;
z-index: 3;
position: absolute;
background-color: grey;
color: white;
font-size: 3rem;
font-family: sans-serif;
text-align: center;
padding-top: 40vh;
display: none;
}
@media all and (orientation: portrait)
{
#ball{
height: 3vh;
width: 3vh;
}
#player{
width: 20vw;
}
#enemy{
width: 20vw;
}
}