Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
FogNetwork
GitHub Repository: FogNetwork/Tsunami
Path: blob/main/public/games/files/webretro/assets/base.css
1034 views
1
body {
2
overflow: hidden;
3
font-family: sans-serif;
4
}
5
6
#mainarea {
7
background-color: black;
8
position: absolute;
9
width: 100%;
10
height: 100%;
11
left: 0px;
12
right: 0px;
13
top: 0px;
14
bottom: 0px;
15
overflow: hidden;
16
}
17
18
#canvas {
19
display: block;
20
position: absolute;
21
top: 50%;
22
left: 50%;
23
transform: translate(-50%, -50%);
24
/*image-resolution: 2dppx;*/
25
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTAiIGhlaWdodD0iNTAiPjx0ZXh0IHN0eWxlPSJmb250OiAzMHB4IHNhbnMtc2VyaWY7IiBmaWxsPSJ3aGl0ZSIgeD0iNTAlIiB5PSI1MCUiIGRvbWluYW50LWJhc2VsaW5lPSJtaWRkbGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPkxvYWRpbmc8L3RleHQ+PC9zdmc+");
26
background-repeat: no-repeat;
27
background-position: center;
28
z-index: 4;
29
height: 100vh !important;
30
width: auto !important;
31
}
32
33
#canvasmask {
34
position: absolute;
35
top: 50%;
36
left: 50%;
37
transform: translateX(-100vw) translate(-50%, -50%);
38
z-index: 5;
39
}
40
41
@media (min-height: 75vw) {
42
#canvas {
43
height: auto !important;
44
width: 100vw !important;
45
}
46
}
47
48
#canvasmask>* {
49
transform: translateX(100vw);
50
}
51
52
#canvas.textureSmooth {
53
image-rendering: auto;
54
}
55
56
#canvas.texturePixelated {
57
image-rendering: crisp-edges;
58
image-rendering: pixelated;
59
}
60
61
.console, .consolemarker, .consoleinput {
62
display: block;
63
outline: none;
64
appearance: none;
65
margin: 0px;
66
padding: 2px;
67
border: none;
68
background-color: black;
69
color: #EEE;
70
font-family: monospace;
71
}
72
73
.console {
74
width: calc(100% - 4px);
75
height: calc(100% - 24px);
76
resize: none;
77
overflow: auto;
78
white-space: pre;
79
}
80
81
.console::selection, .consoleinput::selection {
82
background-color: #f3f3f3;
83
color: black;
84
}
85
86
.consolemarker {
87
width: 16px;
88
height: 16px;
89
float: left;
90
user-select: none;
91
text-align: center;
92
font-weight: bold;
93
color: #367cf1;
94
}
95
96
.consolemarker::after {
97
content: ">";
98
}
99
100
.consoleinput {
101
width: calc(100% - 24px);
102
height: 16px;
103
float: right;
104
}
105
106
ul {
107
list-style: none;
108
padding: 0;
109
margin: 0;
110
}
111
112
#menu {
113
position: fixed;
114
display: none;
115
background-color: #ffffff;
116
transition: opacity 0.3s ease;
117
z-index: 20;
118
opacity: 0;
119
}
120
121
#menu:hover, #menu.show {
122
opacity: 0.9;
123
}
124
125
#menuindicator {
126
position: absolute;
127
display: none;
128
left: 50%;
129
transform: translateX(-50%);
130
top: 50px;
131
background-color: black;
132
border-radius: 2px;
133
color: white;
134
text-align: center;
135
padding: 20px;
136
font-size: 20px;
137
}
138
139
#menuindicator.show {
140
display: block;
141
}
142
143
#menuindicator h1, #menuindicator h2 {
144
margin: 0px;
145
}
146
147
#menu li {
148
white-space: nowrap;
149
max-width: 250px;
150
position: relative;
151
}
152
153
#menu>li {
154
padding: 12px 16px;
155
cursor: pointer;
156
display: inline-block;
157
float: left;
158
}
159
160
#menu li:not(.disabled, .menu-nohover):hover {
161
background-color: rgba(0, 0, 0, .1);
162
}
163
164
#menu .menu-long {
165
white-space: normal;
166
}
167
168
#menu li input {
169
transform: scale(1.5);
170
cursor: pointer;
171
margin: 0px 12px 0px 0px;
172
}
173
174
#menu li a {
175
text-decoration: underline;
176
color: black;
177
}
178
179
/* both opacity AND visibility are important in this case */
180
#menu li:hover>ul {
181
visibility: visible;
182
opacity: 1;
183
}
184
185
#menu ul {
186
visibility: hidden;
187
opacity: 0;
188
position: absolute;
189
top: 100%;
190
left: 0;
191
background-color: rgb(245, 245, 245);
192
transition: opacity 0.3s ease;
193
}
194
195
#menu ul li {
196
padding: 4px 12px;
197
cursor: default;
198
}
199
200
#menu ul li.pointer {
201
cursor: pointer;
202
}
203
204
#menu li.disabled {
205
color: #666;
206
cursor: not-allowed !important;
207
}
208
209
#menu ul.disabled li:hover, #menu ul.menu-nohover li:hover {
210
background-color: rgb(245, 245, 245);
211
}
212
213
input[disabled] {
214
cursor: not-allowed !important;
215
}
216
217
#menu ul.xlmenu li {
218
max-width: none;
219
}
220
221
#ffd {
222
height: 200px;
223
width: 400px;
224
position: absolute;
225
background-color: #dddddd;
226
top: 50%;
227
left: 50%;
228
transform: translate(-50%, -50%);
229
text-align: center;
230
border-radius: 2px;
231
overflow: auto;
232
z-index: 8;
233
}
234
235
#ffd::before {
236
opacity: 0;
237
width: 100%;
238
height: 0px;
239
background-color: #333333;
240
content: "Drop File";
241
position: absolute;
242
top: 0px;
243
left: 0px;
244
z-index: 10;
245
display: flex;
246
align-items: center;
247
justify-content: center;
248
font-size: 30px;
249
font-weight: bold;
250
color: white;
251
}
252
253
#ffd.filehover::before {
254
opacity: 1;
255
height: 100%;
256
}
257
258
#ffd.filehover {
259
border: 2px dashed #dddddd;
260
background-color: #333333;
261
}
262
263
#ffd ul li {
264
margin-bottom: 3px;
265
}
266
267
#ffd ul li a {
268
text-decoration: none;
269
color: black;
270
}
271
272
input[type="file"] {
273
display: none;
274
}
275
276
.uploadbutton {
277
margin: 8px 10px;
278
display: inline-block;
279
user-select: none;
280
cursor: pointer;
281
}
282
283
.upload+.uploadlabel {
284
border: 1px solid rgb(118, 118, 118);
285
border-radius: 2px;
286
padding: 4px;
287
font-size: 13px;
288
background-color: white;
289
transition: ease .1s;
290
}
291
292
.upload+.uploadlabel:hover {
293
background-color: #eee;
294
}
295
296
.uploadimage {
297
width: 20px;
298
vertical-align: middle;
299
}
300
301
#ffdcontent {
302
height: calc(100% - 45px);
303
padding: 10px;
304
overflow: auto;
305
}
306
307
#ffd .source {
308
width: calc(100% - 10px);
309
height: 15px;
310
padding: 5px;
311
}
312
313
#ffd .source * {
314
text-decoration: none;
315
color: black;
316
font-size: 10px;
317
margin: 0px 5px;
318
vertical-align: top;
319
display: inline-block;
320
height: 15px;
321
line-height: 15px;
322
}
323
324
#versionindicator {
325
font-weight: bold;
326
position: absolute;
327
right: 5px;
328
cursor: help;
329
}
330
331
.greyer {
332
color: #404040 !important;
333
}
334
335
#resume {
336
z-index: 10;
337
position: absolute;
338
height: 100%;
339
width: 100%;
340
user-select: none;
341
display: none;
342
}
343
344
body.paused #canvas {
345
filter: blur(10px);
346
}
347
348
body.paused #resume {
349
display: block;
350
}
351
352
#resume div {
353
position: absolute;
354
top: 50%;
355
left: 50%;
356
transform: translate(-50%, -50%);
357
background-color: black;
358
color: white;
359
padding: 20px;
360
text-align: center;
361
border-radius: 2px;
362
}
363
364
#resume div h1 {
365
margin-top: 0px;
366
}
367
368
#resume div h3 {
369
margin-bottom: 0px;
370
}
371
372
#sidealertholder {
373
position: absolute;
374
right: 10px;
375
bottom: 0px;
376
width: 200px;
377
display: flex;
378
flex-direction: column;
379
justify-content: flex-end;
380
}
381
382
.sidealert {
383
background-color: rgb(49, 113, 152);
384
color: white;
385
user-select: none;
386
cursor: default;
387
margin: 0px;
388
padding: 5px 8px;
389
opacity: 0;
390
transition: all 0.1s ease-in;
391
position: relative;
392
}
393
394
.sidealert.on {
395
opacity: 1;
396
margin-bottom: 10px;
397
}
398
399
#startbutton {
400
position: absolute;
401
top: 50%;
402
left: 50%;
403
transform: translate(-50%, -50%);
404
font-size: 40px;
405
padding: 10px 20px;
406
z-index: 100;
407
outline: none;
408
border-radius: 4px;
409
cursor: pointer;
410
display: none;
411
}
412
413
#updatenotice {
414
position: absolute;
415
top: calc(50% + 120px);
416
left: 50%;
417
transform: translateX(-50%);
418
max-height: calc(50% - 140px);
419
max-width: 400px;
420
overflow-y: auto;
421
margin: 0px;
422
padding: 0px 10px;
423
color: white;
424
white-space: pre-wrap;
425
z-index: 8;
426
display: none;
427
}
428
429