-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
80 lines (79 loc) · 1.58 KB
/
styles.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
body {
margin: 0;
padding: 0;
overflow-y: hidden;
overflow-x: hidden;
overscroll-behavior: unset;
}
#mobileInterface {
position: fixed;
width: calc(100% - 20px);
height: 100vh;
pointer-events: none;
z-index: 11;
top: auto;
bottom: 120px;
left: 10px;
touch-action: manipulation;
}
#mobileInterface #joystickWrapper1 {
pointer-events: auto;
display: block;
position: absolute;
bottom: 0;
left: 0;
background-color: transparent;
width: 240px;
height: 240px;
z-index: 12;
touch-action: manipulation;
/* background-color: rgba(255, 0, 0, 0.2); */
}
#mobileInterface #joystickWrapper2 {
pointer-events: auto;
display: block;
position: absolute;
bottom: 0;
right: 0;
left: auto;
background-color: transparent;
width: 50vw;
height: 140px;
z-index: 12;
touch-action: manipulation;
display: none;
}
#mobileInterface #joystickWrapper2 #jumpButton {
position: absolute;
right: 0px;
top: 0px;
width: 120px;
height: 120px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.2);
opacity: 1;
touch-action: manipulation;
display: flex;
justify-content: center;
align-items: center;
pointer-events: auto;
}
#mobileInterface #joystickWrapper2 #jumpButton p {
position: relative;
display: inline-block;
color: white;
opacity: 1;
margin: 0;
padding: 0;
letter-spacing: 4px;
margin-left: 4px;
}
.noSelect {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}