-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
126 lines (111 loc) · 2.34 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#canvas{
border-radius: 0px;
box-shadow: 0px 0px 10px black, 0px 0px 50px black;
margin: 0 auto;
position: relative;
display: block;
width: 100%;
transform-origin: top center;
transform: scale(1);
margin-top: 5vh;
max-width: 640px;
transition: margin .2s ease-in-out, transform .2s ease-in-out, box-shadow 0s;
image-rendering: optimizeSpeed; /* Older versions of FF */
image-rendering: -moz-crisp-edges; /* FF 6.0+ */
image-rendering: -webkit-optimize-contrast; /* Safari */
image-rendering: -o-crisp-edges; /* OS X & Windows Opera (12.02+) */
image-rendering: pixelated; /* Awesome future-browsers */
-ms-interpolation-mode: nearest-neighbor; /* IE */
}
@font-face {
font-family: "mario-kart";
src: url(fonts/mario-kart-ds.ttf) format("truetype");
}
@font-face {
font-family: "timer";
src: url(fonts/upheavtt.ttf) format("truetype");
}
@font-face {
font-family: "mario-maker";
src: url(fonts/mario-maker.ttf) format("truetype");
}
body{
margin: 0px;
background: #111;
overflow: hidden;
}
#dpad{
position: relative;
width: 200px;
height: 120px;
display: block;
float: left;
top: 30px;
}
button{
font-family: mario-maker;
border-radius: 5px;
border: none;
height: 50px;
width: 50px;
position: absolute;
background: #474747;
color: white;
box-shadow: 0px 0px 8px rgba(0,0,0,.2);
user-select: none;
}
#up{
top: 0px;
left: 70px;
width: 110px;
}
#down{
left: 70px;
top: 60px;
width: 110px;
}
#left{
height: 110px;
top: 0px;
left: 10px;
}
#right{
height: 110px;
left: 190px;
top: 0px;
}
#x{
top: 0px;
right: 10px;
height: 90px;
width: 90px;
}
#z{
right: 110px;
height: 90px;
width: 90px;
}
#buttons{
max-width: 640px;
margin: 0 auto;
position: relative;
display: block;
}
#zyButtons{
position: relative;
display: block;
top: -15px;
right: -40px;
float: right;
height: 100px;
width: 200px;
margin: 45px;
}
button:focus {outline:0;}
#keyboard-controlls{
opacity:0;
z-index: 100;
width: 0;
overflow: hidden;
position: absolute;
}