-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
91 lines (80 loc) · 1.38 KB
/
style.css
File metadata and controls
91 lines (80 loc) · 1.38 KB
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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
margin: 0;
background-color: rgb(230, 228, 228);
font-family: 'Press Start 2P', monospace;
font-size: 12px;
color: #212121;
text-transform: uppercase;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
overflow: hidden;
height: 100dvh;
}
.container {
display: flex;
flex-direction: column;
height: 100dvh;
padding: 8px;
gap: 6px;
}
.header {
display: flex;
justify-content: space-between;
font-size: 11px;
flex-shrink: 0;
}
#canvas {
width: 100%;
height: auto;
flex-shrink: 0;
image-rendering: pixelated;
image-rendering: crisp-edges;
border-radius: 2px;
}
.jump-btn {
border: none;
flex: 1;
min-height: 48px;
font-family: inherit;
font-size: 12px;
text-transform: uppercase;
background-color: lightgray;
color: #212121;
cursor: pointer;
user-select: none;
-webkit-user-select: none;
border-radius: 2px;
transition: background-color 0.1s, color 0.1s;
}
.jump-btn:active {
background-color: silver;
color: gray;
}
.jump-btn:focus {
outline: none;
}
.jump-btn.game-over {
color: #c0392b;
}
.high-score {
font-size: 8px;
color: #888;
flex-shrink: 0;
text-align: center;
}
@media (min-width: 700px) {
.container {
max-width: 800px;
margin: 0 auto;
padding: 12px;
}
.jump-btn {
flex: 0;
height: 64px;
}
}