all repos — honk @ f90b8c0b8ce088792b585ce2d4975ebdf0fb2656

my fork of honk

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