-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
97 lines (84 loc) · 1.54 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
@import url('https://fonts.googleapis.com/css?family=Hind');
*, *::before, *::after {
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
}
body {
display: flex;
justify-content: center;
align-items: center;
margin: 0;
color: #dee2e6;
background-color: #212529;
font-family: 'Hind', sans-serif;
text-transform: uppercase;
}
.container {
position: relative;
line-height: 0;
}
.score {
position: absolute;
top: 10px;
line-height: 1;
}
.score span {
font-size: 3.25rem;
}
.current-score {
left: 10px;
}
.high-score {
text-align: right;
right: 10px;
}
.trigger {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
position: absolute;
width: 80px;
height: 80px;
bottom: 10px;
border: 0;
border-radius: 50%;
color: inherit;
background-color: #e64980;
text-align: center;
line-height: 80px;
font-size: 1.25rem;
text-transform: inherit;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
outline: none;
}
.left-trigger {
left: 10px;
}
.right-trigger {
right: 60px;
}
canvas {
overflow: hidden;
border-radius: 5px;
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.75);
}
/* responsive scaling, because pinball tables are tall */
@media (min-height: 0px) {
.container { transform: scale(0.25); }
}
@media (min-height: 400px) {
.container { transform: scale(0.5); }
}
@media (min-height: 600px) {
.container { transform: scale(0.75); }
}
@media (min-height: 800px) {
.container { transform: scale(1); }
}