-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.css
87 lines (73 loc) · 1.33 KB
/
main.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
@font-face {
font-family: "Pokemon Classic";
src: url("Pokemon_Classic.ttf") format("truetype");
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
overflow: hidden;
}
#main {
width: 100vw;
height: 100vh;
}
#sprite {
position: absolute;
right: 10%;
top: 20%;
height: 60%;
max-width: 50%;
image-rendering: pixelated;
object-fit: contain;
}
#legend-container {
position: absolute;
font-size: min(2.25vw, 70px);
font-weight: bold;
font-family: "Pokemon Classic", monospace;
height: 100%;
display: flex;
align-items: flex-end;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#legend {
width: 100%;
padding: 2em;
}
#debug {
font-size: 1em;
padding: 1em;
display: none;
position: absolute;
}
#number {
cursor: pointer;
}
/* mobile */
@media only screen and (max-width: 480px) {
#sprite {
left: 10%;
top: 10%;
height: 60%;
max-width: 80%;
}
#legend-container {
font-size: 5vw;
text-align: center;
height: 100%;
width: 100%;
}
#legend {
padding: 0.5em;
padding-bottom: 15vh;
}
#debug {
font-size: 0.75em;
height: 100vh;
width: 100vw;
}
}