-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
62 lines (58 loc) · 984 Bytes
/
Copy pathstyle.css
File metadata and controls
62 lines (58 loc) · 984 Bytes
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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
user-select: none;
}
canvas, #controls, #start{
position: absolute;
width: 640px;
height: 480px;
max-height: 100%;
max-width: 100%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
canvas{
border: 2px solid black;
background-color: black;
background: url('PongBackground_02.png');
background-position: center;
background-size: cover;
}
#controls{
z-index: 10;
border: 2px solid green;
}
#left{
position: absolute;
bottom: 0;
left: 0;
font-size: 3rem;
width: 20%;
}
#right{
position: absolute;
bottom: 0;
right: 0;
font-size: 3rem;
width: 20%;
}
button{
background: transparent;
color: white;
}
#start{
z-index: 10;
border: 2px solid white;
display: flex;
align-items: center;
justify-content: center;
}
#startButton {
font-size: 3rem;
}
img{
display: none;
}