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
|
/* #region --- Base */
* {
/* best practice for application */
box-sizing: border-box;
/* To allow flex/grid box to shrink smaller than content.
see: https://stackoverflow.com/a/36247448/686724 */
min-width: 0;
min-height: 0;
/* layout normalization */
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
font-size: 16px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
/* make sure the canvas is the browser window */
}
html {
overflow: hidden;
/* prevent the browser 'bounce' (but will prevent screen scroll as well)*/
}
/* #endregion --- Base */
div.hello {
cursor: pointer;
user-select: none;
-webkit-user-select: none;
padding: .5rem .5rem;
border: solid 1px #dedede;
color: #888;
font-size: 1.rem;
}
counter-button {
cursor: pointer;
user-select: none;
-webkit-user-select: none;
border: solid 1px hsl(210, 78%, 37%);
border-radius: 5px;
background: hsl(210, 90%, 76%);
padding: .875rem 3rem;
font-size: 1.5rem;
}
counter-button:active {
background: hsl(210, 90%, 84%);
}
counter-result {
border: solid 1px #dedede;
font-size: 1.5rem;
padding: 1.5rem 1rem;
}
panic-button {
cursor: pointer;
user-select: none;
-webkit-user-select: none;
border: solid 1px;
border-radius: 5px;
padding: .875rem 3rem;
}
backend-ping {
position: absolute;
top: 1rem;
right: 1rem;
border-radius: 3rem;
width: 1rem;
height: 1rem;
background-color: hsl(217, 100%, 50%);
transition: scale .125s;
}
backend-ping.on {
scale: 1.25;
background-color: hsl(120, 100%, 32%);
}
button {
cursor: pointer;
border: solid 1px hsl(210, 78%, 37%);
border-radius: 5px;
padding: .875rem 3rem;
font-size: 1.5rem;
}
/* Assigned mainly to buttons that contain unimplemented functionality */
.locked {
cursor: not-allowed;
}
/**
* Stupid way to make text input field containing game_path big enough to show whole path.
* Optimally, this should be done dynamically
*/
input {
width: 400px;
}
|