-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathstyle.css
320 lines (265 loc) · 5.27 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
@charset "UTF-8";
* {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version */
}
html {
font-size: 16px;
}
body {
margin: 0;
font-family: 'Comic Sans MS', sans-serif;
}
button {
position: relative;
padding: .2em .5em;
border: 2px solid;
border-radius: .2em;
background-color: white;
color: hsl(210, 80%, 40%);
transition: .2s;
font-family: 'Comic Sans MS', sans-serif;
}
button:not(:disabled):hover {
border-color: hsl(210, 80%, 40%);
background-color: hsl(210, 80%, 40%);
color: white;
}
button:disabled {
color: hsl(210, 40%, 80%);
}
/* A little circle in the upper corner of a button */
.button-notification {
animation: plop .2s;
position: absolute;
top: 0;
right: 0;
margin-top: -1em;
margin-right: -1em;
padding: .5em;
width: 1em;
height: 1em;
border-radius: 50%;
background-color: hsl(210, 80%, 40%);
color: white;
font-size: .75em;
line-height: 1em;
}
@keyframes plop {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}
/* Helper class that centers a box */
.container {
margin: 0 auto;
width: 720px;
}
/* Top part of the site that stays the same across views */
.topbar {
border-bottom: 1px solid;
}
/* Add some white space to the page */
.topbar > .container {
padding: .5em 0;
}
/* The app's title */
.topbar-title {
margin: 0;
font-size: 2em;
text-align: center;
}
/* Links in the topbar (not necessarily <a> elements) */
.topbar-links {
margin-top: 1em;
text-align: center;
}
.topbar-link,
.topbar-link:active,
.topbar-link:visited {
color: blue;
text-decoration: none;
cursor: pointer;
}
/* "before every topbar-link *immediately* after a topbar-link" */
.topbar-link + .topbar-link:before {
content: ' · ';
}
/* Add some white space to the page */
.main > .container {
padding: .5em 0;
}
/* .main element on the clicker page */
.clicker {
}
/* The area where the player is supposed to click all the time */
.clicker-clickarea {
margin: 0 auto;
width: 300px;
height: 300px;
border: .5em solid white;
/* Make a circle */
border-radius: 50%;
/* Images must be 300x300 */
background-image: url('./resources/tichy_swt.jpg');
background-size: 100% 100%;
}
.clicker-clickarea:active {
border-color: hsl(210, 80%, 40%);
}
.clicker-clickarea > canvas {
width: 100%;
height: 100%;
}
/* The main score counter */
.clicker-counter {
margin-top: .5em;
font-size: 1.5em;
text-align: center;
}
.clicker-counter-label {
font-size: .5em;
}
/* The main income counters */
.clicker-incomes {
margin-top: .5em;
text-align: center;
}
.clicker-income {
display: inline-block;
}
.clicker-income.-rainbowmode {
animation: rainbowtext .5s linear 0s infinite;
}
.clicker-income.-rainbowmode:before {
display: block;
position: absolute;
content: attr(data-seconds) "s";
left: 0;
top: -1em;
right: 0;
height: 1em;
font-size: .75em;
text-align: center;
}
@keyframes rainbowtext {
0% {
color: hsl(0, 100%, 50%);
}
25% {
transform: translate(0, -.1em);
}
33.3% {
color: hsl(120, 100%, 50%);
}
50% {
transform: translate(0, 0);
}
66.6% {
color: hsl(240, 100%, 50%);
}
75% {
transform: translate(0, .1em);
}
100% {
color: hsl(360, 100%, 50%);
}
}
/* Area where the shop buttons etc are */
.clicker-controls {
margin-top: .5em;
text-align: center;
}
/* A button that leads to a shop */
.clicker-controls-shopbutton {
padding: .5em;
}
.clicker-controls-shopbutton + .clicker-controls-shopbutton {
margin-left: 1em;
}
/* main element on the shop pages */
.shop {
}
/* shop menu that can have some buttons and some info */
.shop-menu {
display: flex;
}
/* a button in the shop menu */
.shop-menu-buttom {
}
/* a text field in the shop menu. these should fill most of the space */
.shop-menu-info {
flex: 1;
text-align: right;
}
/* The shop's title */
.shop-title {
text-align: center;
}
/* A short (one line) description of the shop's items */
.shop-description {
text-align: center;
}
/* The items one can buy in this shop */
.shop-items {
padding: 0;
}
/* Items of the shop. On bigger screens, 2 should be on each "line" */
.shop-item {
display: block;
box-sizing: border-box;
padding: .25em;
float: left;
width: 50%;
list-style: none;
}
.shop-item:nth-child(2n+3) {
clear: left;
}
/* The name of the item */
.shop-item-name {
}
/* A short (one line) description of an item */
.shop-item-description {
font-size: .75em;
}
/* The button to buy the item */
.shop-item-buy {
box-sizing: border-box;
margin-top: .5em;
width: 100%;
}
/* The main element on text pages */
.text {
}
/* The title element */
.text-title {
text-align: center;
}
/* The text content */
.text-content {
line-height: 1.5em;
}
/* Responsive version for screens narrower than 720 pixels */
@media (max-width: 720px) {
.container {
margin: auto;
padding: .25em;
width: auto;
}
.main > .container {
padding: .5em .25em;
}
.shop-item {
float: none;
clear: none;
width: auto;
}
}