views/style.css (view raw)
1:root {
2 --bg-page: #f4f4f4;
3 --bg-dark: #ccc;
4 --bg-limited: #e4e4e4;
5 --hover: #ddd;
6 --fg: #222;
7 --fg-subtle: #6a6a6a;
8 --fg-limited: #777;
9 --hl: #ddd;
10 --header: #f4f4f4;
11 --header-fg: var(--fg);
12}
13
14::selection {
15 background: var(--fg-limited);
16 color: white;
17}
18
19@media (prefers-color-scheme: dark) {
20 :root {
21 --bg-page: #111;
22 --bg-dark: #222;
23 --fg: #ccc;
24 --hl: #444;
25 --fg-subtle: #ccc;
26 --fg-limited: #509c93;
27 --bg-limited: #333;
28 --header: #509c93;
29 --header-fg: #111;
30 --hover: (--bg-limited);
31 }
32}
33
34* {
35 font-size: 1rem !important;
36}
37@media (prefers-color-scheme: dark) {
38.noise img:not(.emu) {
39 opacity: .5;
40 transition: opacity .5s ease-in-out;
41}
42.noise img:not(.emu):hover {
43 opacity: 1;
44}
45}
46@media (prefers-color-scheme: dark) {
47.noise img:not(.emu) {
48 opacity: .5;
49 transition: opacity .5s ease-in-out;
50}
51.noise img:not(.emu):hover {
52 opacity: 1;
53}
54}
55
56body {
57 padding: 0px;
58 margin: 0px;
59 background: var(--bg-page);
60 color: var(--fg);
61 font-size: 1rem !important;
62 word-wrap: break-word;
63 font-family: "InterVar", -apple-system, sans-serif, "Noto Color Emoji";
64 line-height: 1.2;
65 overscroll-behavior-y: contain;
66 overflow: overlay;
67}
68pre, code {
69 white-space: pre-wrap;
70}
71blockquote {
72 margin-left: 0em;
73 margin-bottom: 0em;
74 padding-left: 0.5em;
75 border-left: 1px solid var(--fg-subtle);
76}
77cite {
78 margin-left: 2em;
79}
80table {
81 display: block;
82 max-width: 100%;
83 overflow-x: auto;
84}
85
86form, input, textarea {
87 font-family: "InterVar", -apple-system, sans-serif, "Noto Color Emoji";
88}
89p {
90 margin-top: 1em;
91 margin-bottom: 1em;
92}
93input {
94 background: var(--bg-page);
95 color: var(--fg);
96 font-size: 1.0em;
97 line-height: 1.2em;
98 padding: 0.4em;
99 border: 1px solid var(--hl);
100}
101#honkform input {
102 font-size: 0.8em;
103}
104body > header {
105 background: var(--header);
106 max-width: 100%;
107 max-height: 100%;
108 margin: 0px;
109 padding: 1em 0em 2em 0em;
110 font-size: 1.5em;
111 color: var(--header-fg);
112}
113body > header span {
114 margin-left: 2em;
115}
116
117.easylinks a {
118 text-decoration: none !important;
119 color: var(--header-fg);
120}
121
122header > details {
123 padding: 1em 1em 1em 1em;
124 color: var(--header-fg);
125 position: absolute;
126 top: 0;
127 left: 0;
128 display: inline;
129 overflow: auto;
130 opacity: 1;
131 overscroll-behavior: contain;
132 z-index: 2;
133}
134header > details[open] {
135 color: var(--fg);
136 padding: 1em 1em 0em 1em;
137 background: var(--bg-dark);
138 margin-bottom: 1em;
139 opacity: 1.0;
140}
141header > details summary span {
142 display: none;
143}
144header > details[open] summary span {
145 display: inline;
146}
147header > details li {
148 margin: 1em 0em 1em 0em;
149}
150details summary {
151 cursor: pointer;
152}
153main {
154 max-width: 655px;
155 margin: auto;
156 font-size: 1.5em;
157}
158hr {
159 border-color: var(--hl);
160}
161.info {
162 background: var(--bg-page);
163 border: 1px solid var(--hl);
164 margin-bottom: 1em;
165 margin-top: 1em;
166 padding-left: 1em;
167 padding-right: 1em;
168}
169.info div {
170 margin-top: 1em;
171 margin-bottom: 1em;
172}
173label {
174 font-size: 0.8em;
175}
176label.button, button, select {
177 border: none;
178 font-size: 1rem;
179 font-family: "InterVar", -apple-system, sans-serif, "Noto Color Emoji";
180 color: var(--fg);
181 padding: 0.2em;
182 background: var(--bg-dark);
183 white-space: nowrap;
184}
185
186button:hover {
187 background: var(--hover);
188}
189
190.buttonarray {
191 margin-top: -2.0em;
192}
193.buttonarray button, .buttonarray > span {
194 margin-top: 2.0em;
195 display: inline-block;
196}
197button a {
198 text-decoration: none;
199}
200button {
201 cursor: pointer;
202}
203form {
204 margin-top: 1em;
205}
206textarea {
207 border: 1px solid var(--hl);
208 padding: 0.5em;
209 font-size: 1em;
210 background: var(--bg-page);
211 color: var(--fg);
212 width: 100%;
213 height: 4em;
214 margin-bottom: 0.5em;
215 box-sizing: border-box;
216 max-width: 100%;
217}
218textarea#honknoise {
219 height: 10em;
220}
221input[type="checkbox"] {
222 position: fixed;
223 top: -9999px;
224}
225input[type="checkbox"] + span:after {
226 content: "no";
227}
228input[type="checkbox"]:checked + span:after {
229 content: "yes";
230}
231input[type="checkbox"]:focus + span:after {
232 outline: 1px solid var(--hl);
233}
234input[type=file] {
235 display: none;
236}
237
238.glow {
239 box-shadow: 0px 0px 16px var(--hl);
240}
241.honk {
242 margin: auto;
243 background: var(--bg-page);
244 /*border-top: 1px solid var(--hl);
245 border-left: 1px solid var(--hl);
246 border-right: 1px solid var(--hl);*/
247 padding-left: 0.3em;
248 padding-right: 0.3em;
249 padding-top: 0.7em;
250 overflow: hidden;
251}
252
253.level1 {
254 padding-left: 1em;
255 padding-right: 1em;
256 margin-left: 0.7em;
257 border-left: 1px solid var(--hl);
258}
259
260
261.level2 {
262 padding-left: 1em;
263 padding-right: 1em;
264 margin-left: 1.4em;
265 border-left: 1px solid var(--hl);
266}
267
268.level3 {
269 padding-left: 1em;
270 padding-right: 1em;
271 margin-left: 2.1em;
272 border-left: 1px solid var(--hl);
273}
274
275.level4 {
276 padding-left: 1em;
277 padding-right: 1em;
278 margin-left: 2.8em;
279 border-left: 1px solid var(--hl);
280}
281
282.chat {
283 border-bottom: 0.5px solid var(--fg-subtle);
284 padding-left: 1em;
285}
286.chat p {
287 margin-top: 0.2em;
288 margin-bottom: 0.2em;
289}
290.chattarget {
291 border-bottom: 1px solid var(--fg-subtle);
292}
293.chatstamp {
294 margin-left: -1em;
295}
296
297.honk #honkform {
298 padding: 1em;
299 border: 1px solid var(--hl);
300}
301.honk a {
302 color: var(--fg);
303}
304.honk header {
305 white-space: nowrap;
306 overflow: hidden;
307 text-overflow: ellipsis;
308 font-size: 0.8em;
309 line-height: 1.1;
310 margin-top: 1em;
311}
312
313.honk header .clip a {
314 color: var(--fg-subtle);
315}
316
317.clip {
318 text-transform: lowercase;
319}
320
321.honk header img {
322 float: left;
323 margin-right: 1em;
324 border-radius: 10%;
325 width: 64px;
326 height: 64px;
327}
328.honk header p {
329 margin-top: 0px;
330}
331
332.honk .noise {
333 line-height: 1.4;
334}
335
336.honk .noise code .kw { font-weight: bold; }
337.honk .noise code .bi { font-weight: bold; }
338.honk .noise code .st { color: var(--fg-subtle); }
339.honk .noise code .nm { color: #ba88ff; }
340.honk .noise code .op { color: #ba88ff; }
341.honk .noise code .tp { font-weight: bold; }
342.honk .noise code .cm { color: var(--fg-subtle); font-style: italic; }
343.honk .noise code .al { color: #aaffbb; }
344.honk .noise code .dl { color: #ffaabb; }
345
346details > summary {
347 list-style: none;
348}
349details > summary::-webkit-details-marker {
350 display: none;
351}
352
353details > summary:after {
354 content: ' \2192'
355}
356
357details[open] > summary:after {
358 content: ' \2193';
359}
360
361.honk details.actions summary {
362 color: var(--fg-subtle);
363}
364
365#emupicker{height:300px;overflow-y:scroll;padding:3px;background:var(--bg-dark);border:solid 5px var(--fg-subtle);text-align:center;display:none;}
366#emupicker img{margin:0;}
367.emuload{background:var(--bg-page);padding:0.5em;}
368
369.subtle .noise {
370 color: var(--fg-subtle);
371 font-size: 0.8em;
372}
373.subtle .noise a {
374 color: var(--fg-subtle);
375}
376.limited {
377 background: var(--bg-limited);
378 color: var(--fg-subtle);
379}
380.limited .glow {
381 box-shadow: 0px 0px 16px var(--fg-limited);
382}
383.limited .noise {
384 color: var(--fg-subtle);
385}
386.limited .noise a {
387 color: var(--fg-limited);
388}
389.limited details.actions summary {
390 color: var(--fg-limited);
391}
392details.noise[open] summary.noise {
393 display: none;
394}
395h1, h2 {
396 font-family: "InterDisplay", sans-serif;
397 font-weight: 500;
398 font-size: 1.6em;
399}
400h3, h4 {
401 font-family: "InterDisplay", sans-serif;
402 font-weight: 500;
403 font-size: 1.1em;
404}
405
406#topmenu ul {
407 list-style: none;
408 padding-left: 1em;
409}
410
411header a {
412 text-decoration: none;
413 color: var(--header-fg);
414}
415
416main header a {
417 text-decoration: underline;
418}
419
420header details a {
421 color: var(--fg);
422}
423
424.honkmeta {
425 color: var(--fg-subtle);
426 float: right;
427 display: inline-flex;
428 padding: 0;
429 margin: 0;
430 list-style: none;
431}
432
433.honkmeta a {
434 color: var(--fg-subtle);
435}
436
437.honkmeta li:after {
438 content: '\00B7';
439 padding-right: 2px;
440 padding-left: 2px;
441}
442
443.honkmeta li:last-child:after {
444 content: '';
445}
446
447.honkmeta li {
448 padding-left: 2px;
449 display: inline-block;
450}
451
452nav {
453 float: right;
454 max-width: 100%;
455}
456
457nav ul {
458 padding: 0;
459 margin: 0;
460 list-style: none;
461 padding-bottom: 20px;
462}
463
464nav ul li {
465 padding-right: 10px;
466 display: inline-block;
467}
468
469img:not(.emu) {
470 background: var(--bg-page);
471}
472img, video {
473 max-width: 100%;
474 object-fit: scale-down;
475 width: auto;
476 height: auto;
477}
478.noise img:not(.emu) {
479 display: block;
480}
481.noise img.donk {
482 max-height: 400px;
483 max-width: 48%;
484 display: inline;
485}
486.noise img.donk {
487 max-height: 400px;
488 max-width: 48%;
489 display: inline;
490}
491img.emu {
492 height: 2em;
493 vertical-align: middle;
494}
495.nophone {
496 position: fixed;
497 opacity: 0.7;
498 cursor: pointer;
499}
500
501#emupicker{height:300px;overflow-y:scroll;padding:3px;background:var(--bg-dark);border:solid 1px var(--fg-subtle);text-align:center;}
502#emupicker img{margin:0;}
503
504a {
505 color: var(--fg);
506}
507
508a:hover {
509 background: var(--hover);
510}
511
512
513
514@media screen and (max-width: 1360px) {
515 .nophone {
516 display: none;
517 }
518}
519@media screen and (max-width: 740px) {
520 body {
521 font-size: 12px;
522 }
523
524 .info {
525 border: none;
526 margin-top: 0px;
527 padding-left: 1em;
528 padding-right: 1em;
529 }
530
531 .honk {
532 padding-left: 1em;
533 padding-right: 1em;
534 }
535
536 .honk header img {
537 width: 48px;
538 height: 48px;
539 border-radius: 10%;
540 }
541 details summary {
542 outline: none;
543 }
544
545 .actions > div {
546 float: right;
547 }
548}
549@media print {
550 #topmenu, #topspacer, #infobox, #refreshbox, .actions {
551 display: none;
552 }
553 html {
554 --bg-page: white;
555 --bg-dark: white;
556 --fg: black;
557 --fg-subtle: black;
558 --fg-limited: #a79;
559 }
560}
561
562/*
563 * CSP: style-src: self
564 */
565
566li.details {
567 list-style-type: none;
568 margin-left: -1em;
569}
570
571.left1em {
572 margin-left: 1em;
573}
574
575.hide {
576 display: none;
577}
578
579.text-left {
580 text-align: left;
581}
582.text-right {
583 text-align: right;
584}
585.text-center {
586 text-align: center;
587}
588
589.font08em {
590 font-size: 0.8em;
591}
592
593.font18em {
594 font-size: 1.8em;
595}
596
597.wsnowrap {
598 white-space: nowrap;
599}
600
601.skinny main {
602 max-width: 700px;
603}
604
605.fontmonospace {
606 font-family: monospace;
607}
608
609#searchbox {
610 width: 95%;
611}
612
613#mecount {
614 border-radius: 50%;
615 text-align: center;
616 color: var(--darker);
617 background: var(--bg-dark);
618 display: inline-block;
619 margin-left: 5px;
620 box-sizing: content-box;
621}