-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.css
executable file
·77 lines (67 loc) · 1.53 KB
/
game.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
body {
background-color: #000;
color: #fff;
/* Allow mouse dragging. */
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
-webkit-user-select: none;
user-select: none;
/* disable touch panning/zooming */
-ms-touch-action: none;
touch-action: none;
/* Allow canvas to hit the edges of the browser viewport. */
margin: 0;
}
#screen canvas {
margin: auto;
/* Hide the gap for font descenders. */
display: block;
/* disable scaling interpolation */
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: optimize-contrast;
image-rendering: pixelated;
-ms-interpolation-mode: nearest-neighbor;
}
.ws-status {
position: fixed;
bottom: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.5);
color: white;
padding: 8px;
z-index: 1;
}
.state {
position: fixed;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: black;
font-size: 40px;
}
.chip {
position: fixed;
top: 8px;
right: 32px;
z-index: 1;
display: inline-flex;
justify-content: right;
height: 40px;
font-size: 16px;
line-height: 40px;
border-radius: 25px;
background-color: #dedede;
}
.chip img {
height: 50px;
width: 50px;
border-radius: 50%;
box-shadow: 0px 0px 3rem 0px #525050ee;
}