forked from gwern/gwern.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
2777 lines (2487 loc) · 97.6 KB
/
404.html
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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="author" content="N/A" />
<meta name="description" content="404 Not Found Error: no page by this name!" />
<meta name="robots" content="noindex, nofollow, nosnippet, nocache, noarchive">
<meta name="dc.date.issued" content="2009-01-27">
<meta name="dcterms.modified" content="2021-02-02">
<title>404 Not Found</title>
<!-- CSS+JS inline for speed -->
<style id="inlined-styles-colors">
:root {
/* General.
*/
--GW-body-background-color: #fff;
--GW-body-text-color: #000;
--GW-body-link-color: #272727;
--GW-body-link-hover-color: #888;
/* Selection.
*/
--GW-text-selection-background-color: #333;
--GW-text-selection-color: #fff;
/* Link underlining.
*/
--GW-link-underline-background-color: var(--GW-body-background-color);
--GW-link-underline-gradient-line-color: #333;
--GW-link-underline-gradient-line-color-hover: #999;
/* Blockquotes.
*/
--GW-blockquote-border-color-level-one: #ccc;
--GW-blockquote-border-color-level-two: #c4c4c4;
--GW-blockquote-border-color-level-three: #b3b3b3;
--GW-blockquote-border-color-level-four: #a6a6a6;
--GW-blockquote-background-color-level-one: #f8f8f8;
--GW-blockquote-background-color-level-two: #e6e6e6;
--GW-blockquote-background-color-level-three: #d8d8d8;
/* Abstracts.
*/
--GW-abstract-border-color: #bbb;
--GW-abstract-background-color: var(--GW-blockquote-background-color-level-one);
/* Sidebar.
*/
--GW-sidebar-horizontal-rule-color: #aaa;
--GW-sidebar-mobile-link-border-color: #000;
/* Table of contents.
*/
--GW-TOC-border-color: #ccc;
--GW-TOC-background-color: #f8f8f8;
--GW-TOC-link-hover-background-color: #ececec;
--GW-TOC-link-hover-color: #000;
--GW-TOC-link-hover-indicator-bar-color: #ccc;
--GW-TOC-number-color: #909090;
--GW-TOC-number-hover-color: #313131;
/* Collapse blocks.
*/
--GW-collapse-summary-blockquote-hover-color: #eee;
--GW-collapse-disclosure-button-color: #eee;
--GW-collapse-disclosure-button-hover-color: #ddd;
--GW-collapse-disclosure-button-top-part-text-color: #bbb;
--GW-collapse-disclosure-button-bottom-part-text-color: #aaa;
--GW-collapse-disclosure-button-text-hover-color: #fff;
/* Headings.
*/
--GW-H1-box-shadow-background-color: var(--GW-body-background-color);
--GW-H1-box-shadow-line-color: #888;
--GW-H2-bottom-border-color: #888;
/* Comments.
*/
--GW-comment-section-top-border-color: #999;
/* Lists.
*/
--GW-bulleted-list-marker-color: #808080;
/* Figures.
*/
--GW-figure-outline-color: #888;
--GW-figure-caption-outline-color: #888;
/* Epigraphs.
*/
--GW-epigraph-quotation-mark-color: #808080;
/* Footnotes.
*/
--GW-footnote-border-color: #aaa;
--GW-footnote-highlighted-border-color: #aaa;
--GW-footnotes-section-top-rule-color: #ccc;
--GW-footnote-backlink-border-color: #000;
--GW-footnote-backlink-border-hover-color: #999;
--GW-footnote-backlink-after-bordered-block-background-color: var(--GW-body-background-color);
/* Footnote references.
*/
--GW-footnote-ref-highlight-box-shadow-color: #aaa;
--GW-footnote-ref-highlight-background-color: rgba(255,255,255,0.75);
/* Sidenotes.
*/
--GW-sidenote-highlight-background-color: var(--GW-body-background-color);
--GW-sidenote-highlight-box-shadow-color: #aaa;
--GW-sidenote-border-color: #aaa;
--GW-sidenote-scrollbar-track-color: var(--GW-body-background-color);
--GW-sidenote-scrollbar-thumb-color: #aaa;
--GW-sidenote-scrollbar-thumb-hover-color: #999;
--GW-sidenote-self-link-border-color: #aaa;
/* Tables.
*/
--GW-table-border-color: #000;
--GW-table-full-width-background-color: var(--GW-body-background-color);
--GW-table-caption-border-color: #000;
--GW-table-row-horizontal-border-color: #000;
--GW-table-cell-vertical-border-color: var(--GW-body-background-color);
--GW-table-scrollbar-track-color: var(--GW-body-background-color);
--GW-table-scrollbar-thumb-color: #aaa;
--GW-table-scrollbar-thumb-hover-color: #999;
--GW-table-scrollbar-border-color: #000;
--GW-table-column-heading-hover-background-color: #e2f0f2;
--GW-table-sorted-column-heading-background-color: #8bd0ed;
--GW-table-sorted-column-heading-text-color: #fff;
--GW-table-sorted-column-heading-text-shadow-color: #000;
--GW-table-zebra-stripe-alternate-row-background-color: #f6f6f6;
--GW-table-row-hover-outline-color: #000;
/* Code blocks.
*/
--GW-code-element-border-color: #c8c8c8;
--GW-code-element-background-color: #fafafa;
--GW-pre-element-border-color: #c8c8c8;
--GW-pre-element-background-color: #fafafa;
--GW-pre-element-scrollbar-track-color: #fafafa;
--GW-pre-element-scrollbar-thumb-color: #ccc;
--GW-pre-element-scrollbar-thumb-hover-color: #999;
/* Syntax highlight theme.
*/
--GW-syntax-highlight-color-normal: #1f1c1b;
--GW-syntax-highlight-color-attribute: #002561;
--GW-syntax-highlight-color-data-type: inherit;
--GW-syntax-highlight-color-variable: #666666;
--GW-syntax-highlight-color-other: inherit;
--GW-syntax-highlight-color-preprocessor: inherit;
--GW-syntax-highlight-color-extension: #888888;
--GW-syntax-highlight-color-comment: #888888;
--GW-syntax-highlight-color-control-flow: #003900;
--GW-syntax-highlight-color-keyword: #002561;
--GW-syntax-highlight-color-operator: #002561;
--GW-syntax-highlight-color-special-char: #607880;
--GW-syntax-highlight-color-built-in: #002561;
--GW-syntax-highlight-color-function: #002561;
--GW-syntax-highlight-color-constant: inherit;
--GW-syntax-highlight-color-base-n: inherit;
--GW-syntax-highlight-color-dec-val: inherit;
--GW-syntax-highlight-color-float: inherit;
--GW-syntax-highlight-color-information: inherit;
--GW-syntax-highlight-color-char: inherit;
--GW-syntax-highlight-color-string: inherit;
--GW-syntax-highlight-color-verbatim-string: inherit;
--GW-syntax-highlight-color-alert: #bf0303;
--GW-syntax-highlight-color-error: #ff0000;
--GW-syntax-highlight-color-import: #777777;
--GW-syntax-highlight-color-special-string: #666666;
/* Math.
*/
--GW-math-block-background-color: #f6f6f6;
--GW-math-block-scrollbar-border-color: #ccc;
--GW-math-block-scrollbar-track-color: var(--GW-body-background-color);
--GW-math-block-scrollbar-thumb-color: #ccc;
--GW-math-block-scrollbar-thumb-hover-color: #999;
/* Drop caps.
*/
--GW-drop-caps-yinit-color: #0d0d0d;
--GW-drop-caps-yinit-text-shadow-color: #777;
--GW-drop-caps-de-zs-color: #1b1b1b;
--GW-drop-caps-cheshire-color: #191919;
--GW-drop-caps-kanzlei-color: #191919;
/* Admonitions.
*/
--GW-admonition-default-left-border-color: #909090;
--GW-admonition-default-background-color: #d8d8d8;
--GW-admonition-tip-left-border-color: #d8d8d8;
--GW-admonition-tip-background-color: #f0f0f0;
--GW-admonition-warning-left-border-color: #5a5a5a;
--GW-admonition-warning-background-color: #9a9a9a;
--GW-admonition-warning-text-color: #fff;
--GW-admonition-warning-title-background-color: #5a5a5a;
--GW-admonition-warning-icon-color: #fff;
--GW-admonition-error-left-border-color: #2d2d2d;
--GW-admonition-error-background-color: #5a5a5a;
--GW-admonition-error-text-color: #fff;
--GW-admonition-error-title-background-color: #2d2d2d;
--GW-admonition-error-icon-color: #fff;
--GW-admonition-reversed-link-color: #ddd;
--GW-admonition-reversed-link-color-hover: #ccc;
--GW-admonition-reversed-link-underline-gradient-line-color: #ccc;
--GW-admonition-reversed-link-underline-gradient-line-color-hover: #bbb;
--GW-admonition-reversed-footnote-ref-highlight-background-color: rgba(90,90,90,0.75);
/* Sequential nav UI.
*/
--GW-sequential-nav-link-background-color: var(--GW-body-background-color);
/* Page-specific styles.
*/
--GW-index-page-bottom-ornament-line-color: #808080;
/* Pop-frames (popups or popins).
*/
--GW-raw-code-popframe-line-highlight-background-color: #ffd;
--GW-raw-code-popframe-line-hightlight-border-color: #ddd;
--GW-raw-code-popframe-line-number-color: #aaa;
--GW-raw-code-popframe-line-number-divider-color: #ccc;
/* Popups.
*/
--GW-popups-body-background-color: var(--GW-body-background-color);
--GW-popups-popup-background-color: var(--GW-body-background-color);
--GW-popups-popup-border-color: #ccc;
--GW-popups-box-shadow-color: #ccc;
--GW-popups-popup-border-focused-color: #aaa;
--GW-popups-box-shadow-focused-color: #aaa;
--GW-popups-popup-title-bar-background-color: #f6f6f6;
--GW-popups-popup-title-bar-button-color: #bbb;
--GW-popups-popup-title-bar-button-color-hover: #000;
--GW-popups-popup-title-color: #aaa;
--GW-popups-popup-title-link-hover-color: var(--GW-body-link-hover-color);
--GW-popups-popup-title-bar-background-focused-color: #e6e6e6;
--GW-popups-popup-title-bar-button-focused-color: #777;
--GW-popups-popup-title-bar-button-focused-color-hover: #000;
--GW-popups-popup-title-bar-submenu-box-shadow-color: #ddd;
--GW-popups-popup-title-focused-color: #000;
--GW-popups-popup-title-link-hover-focused-color: var(--GW-body-link-hover-color);
--GW-popups-popup-scrollbar-track-color: var(--GW-body-background-color);
--GW-popups-popup-scrollbar-thumb-color: #ddd;
--GW-popups-popup-scrollbar-thumb-hover-color: #bbb;
--GW-popups-popup-scrollbar-thumb-focused-color: #ccc;
--GW-popups-popup-scrollbar-thumb-hover-focused-color: #999;
--GW-popups-popup-options-dialog-backdrop-background-color: rgba(255,255,255,0.95);
--GW-popups-popup-options-dialog-background-color: var(--GW-body-background-color);
--GW-popups-popup-options-dialog-border-color: #aaa;
--GW-popups-popup-options-dialog-box-shadow-color: #444;
--GW-popups-popup-options-dialog-horizontal-rule-color: #ccc;
--GW-popups-popup-options-dialog-button-background-color: var(--GW-body-background-color);
--GW-popups-popup-options-dialog-button-text-color: #000;
--GW-popups-popup-options-dialog-button-border-color: #000;
--GW-popups-popup-options-dialog-button-hover-box-shadow-color: #000;
--GW-popups-popup-options-dialog-option-button-explanation-text-color: #777;
--GW-popups-popup-options-dialog-option-button-hover-text-color: #777;
--GW-popups-popup-options-dialog-radio-button-border-color: #000;
--GW-popups-show-popup-options-dialog-button-color: #999;
/* Popins.
*/
--GW-popins-body-background-color: var(--GW-body-background-color);
--GW-popins-popin-background-color: var(--GW-body-background-color);
--GW-popins-popin-border-color: #aaa;
--GW-popins-box-shadow-color: #aaa;
--GW-popins-popin-title-bar-background-color: #fff;
--GW-popins-popin-title-bar-button-color: #777;
--GW-popins-popin-scrollbar-thumb-color: #ccc;
--GW-popins-popin-scrollbar-track-color: var(--GW-body-background-color);
--GW-popins-popin-scrollbar-thumb-hover-color: #999;
/* Image focus.
*/
--GW-image-focus-image-hover-drop-shadow-color: #777;
/* Mode selector (light/dark mode).
*/
--GW-mode-selector-background-color: var(--GW-body-background-color);
--GW-mode-selector-border-hover-color: #aaa;
--GW-mode-selector-button-text-color: #777;
--GW-mode-selector-button-hover-text-color: #000;
/* “Back to top” link.
*/
--GW-back-to-top-link-color: #ccc;
--GW-back-to-top-link-hover-color: #999;
}
</style>
<style id="inlined-styles">
/*********/
/* FONTS */
/*********/
/* fonts are now loaded from /static/css/fonts.css */
/**********/
/* COLORS */
/**********/
/* colors are now in /static/css/colors.css or dark-mode.css */
/*************/
/* VARIABLES */
/*************/
:root {
--GW-serif-font-stack: "Source Serif Pro", "Apple Garamond", "Baskerville", "Libre Baskerville", "Times New Roman", "Droid Serif", "Times", serif;
--GW-sans-serif-font-stack: "Lucida Sans Unicode", "Source Sans Pro", Helvetica, "Trebuchet MS", sans-serif;
--GW-monospaced-font-stack: "IBM Plex Mono", "Liberation Mono", Consolas, Courier, monospace;
--GW-body-text-font-size: 1rem;
}
/***********/
/* GENERAL */
/***********/
html {
padding: 0;
margin: 0;
background-color: var(--GW-body-background-color);
color: var(--GW-body-text-color);
font-weight: 400;
font-family: var(--GW-serif-font-stack);
}
body {
max-width: 1120px;
font-size: var(--GW-body-text-font-size);
}
@media only screen and (max-width: 649px) {
html {
font-size: 18px;
}
}
@media only screen and (min-width: 650px) {
body {
padding: 0 15px 0 5px;
margin: 0 auto;
}
@media only screen and (min-width: 1185px) {
body {
padding: 0 60px 0 5px;
}
}
main {
min-height: 100vh;
display: flex;
flex-flow: column;
}
/* Breakpoint for sidenotes.
*/
@media only screen and (min-width: 1761px) {
main {
position: relative;
right: 40px;
}
}
article {
flex: 1 1 auto;
}
#sidebar {
position: absolute;
}
header,
article {
margin-left: 155px;
}
@media only screen and (max-width: 1200px) {
header,
article {
margin-left: 145px;
}
}
@media only screen and (max-width: 1120px) {
header,
article {
margin-left: 140px;
}
}
@media only screen and (max-width: 1040px) {
header,
article {
margin-left: 135px;
}
}
@media only screen and (max-width: 960px) {
header,
article {
margin-left: 130px;
}
}
}
@media only screen and (max-width: 649px) {
body {
margin: 0 20px;
}
}
svg {
fill: currentColor;
}
/***********/
/* SIDEBAR */
/***********/
#sidebar a {
display: block;
}
@media only screen and (min-width: 650px) {
#sidebar {
font-variant: small-caps;
padding: 0 40px 0 10px;
width: 100px;
}
#sidebar a#logo {
margin: 1em 0 2em 0;
}
#sidebar a#logo svg {
width: 64px;
}
#sidebar a.new,
#sidebar a.patreon {
border-top: 1px dotted var(--GW-sidebar-horizontal-rule-color);
}
#sidebar a.new {
padding-top: 0.45em;
margin-top: 0.55em;
}
#sidebar a.patreon {
padding-top: 0.6em;
margin-top: 0.55em;
font-size: 0.9em;
white-space: nowrap;
line-height: 1.35;
}
}
@media only screen and (max-width: 649px) {
#sidebar {
justify-content: center;
margin: 1.4em 0 0.5em 0;
}
#sidebar a {
border: 1px dotted var(--GW-sidebar-mobile-link-border-color);
padding: 4px 10px 3px 10px;
text-align: center;
margin: 1px;
}
#sidebar a#logo {
padding: 8px 5px 3px 5px;
}
#sidebar,
#sidebar-links {
display: flex;
}
#sidebar-links {
flex-flow: row wrap;
flex: 1 1 100%;
margin: 0.5em 0 0 0;
}
#sidebar a.site,
#sidebar a.links {
flex: 1 1 40%;
}
#sidebar a.new,
#sidebar a.mail {
flex: 1 1 auto;
}
#sidebar a.patreon {
display: none;
}
#sidebar #logo {
margin: calc(0.5em + 1px) 1px 1px 0;
}
#sidebar #logo svg {
width: 2.5rem;
}
}
/***************/
/* PAGE HEADER */
/***************/
header {
overflow: auto;
}
header h1 {
margin: 0.75em 0;
text-align: center;
text-transform: none;
font-variant: small-caps;
font-size: 2.5em;
line-height: 1.15;
font-weight: 600;
letter-spacing: -1px;
}
@media only screen and (max-width: 649px) {
header h1 {
font-size: 2em;
}
}
/***********************/
/* PAGE METADATA BLOCK */
/***********************/
@media only screen and (max-width: 649px) {
#page-metadata {
text-align: center;
}
}
#page-metadata hr {
display: none;
}
#page-metadata {
margin: 0 0 2rem 0;
overflow: auto;
font-size: 0.95em;
line-height: 1.5;
}
#page-metadata p {
text-align: left;
}
/* Override normal handling of italics: before, we wrapped descriptions in `<em>`; however, they compile to HTML which can contain italics of their own (eg. book titles). This causes HTML Tidy to warn about nested italics (which is valid HTML but *usually* means you've made an error - this often triggers when I mess up bolding, for example, like on /GPT-3 ). So we removed the wrapper in favor of the above `font-style: italic`. However, now the titles don't unitalicize automatically like they would for nested italics! So we force italicized titles back to normal Roman font to match the expected typographic convention. */
#page-metadata #page-description {
display: block;
margin: 0 auto 0.75em auto;
font-style: italic;
text-align: justify;
}
#page-metadata #page-description em {
font-style: normal;
}
#page-metadata #page-description ~ * {
font-size: 0.9em;
}
#page-metadata #page-description + br {
display: none;
}
#page-metadata-block span:nth-of-type(n+3) {
white-space: nowrap;
}
/* interpunct separators for the metadata fields; looks nicer than semicolons or slashes */
#page-metadata-block > span:not(:last-child)::after {
content: "\00B7"; /* interpunct MIDDLE DOT (U+00B7) '·' */
display: inline-block;
margin: 0 0.35em 0 0.65em;
}
#page-tags,
#page-metadata-block {
hyphens: none;
}
/*=--------=*/
/*= /index =*/
/*=--------=*/
/* on the index page, we hide article-related formatting, begging, comments, to make it more compact & classy */
body.index #sidebar a.patreon,
body.tags #sidebar a.patreon,
body.index #TOC,
body.index #page-metadata,
body.index #comments,
body.index #disqus_thread,
body.index header {
display: none;
}
/* No index self-link. */
body.index #sidebar a#logo {
pointer-events: none;
}
/* Make the sections reflow; better than fixed-width tables. */
body.index article section {
display: inline-block;
vertical-align: top;
}
/* Abstract is not a real abstract, just an introduction, no need for the abstract formatting.
*/
body.index .abstract {
padding: 0;
border: none;
margin: 0;
box-shadow: none;
}
@media only screen and (min-width: 1200px) {
/* Leave enough horizontal room to show multiple sections simultaneously, table-like */
body.index #markdownBody {
width: 1350px;
max-width: calc(50vw + 420px);
}
body.index p,
body.index hr {
max-width: 970px;
}
}
/* Add some vertical padding for the introduction.
*/
body.index #markdownBody {
padding-top: 15px;
}
/* Headings on the home page.
*/
body.index #markdownBody h1 {
margin: 1.125em 0 0 0;
}
/* Lists on the home page.
*/
body.index #markdownBody li,
body.index #markdownBody li p {
text-align: left;
}
body.index #markdownBody ul,
body.tags #markdownBody ul {
margin: 1em 3em 0 0;
padding: 0 0 0 1.375em;
}
body.index #markdownBody li > ul,
body.tags #markdownBody li > ul {
margin: 0.25em 0 0.25em 0;
}
body.index #markdownBody li,
body.tags #markdownBody li {
margin-top: 0;
}
body.index #markdownBody ul > li:nth-of-type(n+2) {
margin: 0;
}
@media only screen and (max-width: 649px) {
body.index #sidebar #logo {
border: 1px dotted transparent;
align-self: flex-start;
padding: 7px 5px 6px 5px;
}
body.index #markdownBody section {
max-width: 100%;
}
body.index #markdownBody ul,
body.tags #markdownBody ul {
overflow-wrap: break-word;
margin-right: 0;
}
body.index #markdownBody li,
body.tags #markdownBody li {
padding: 1px 0;
margin: 2px 0 0 0;
}
body.index #markdownBody ul > li::before,
body.tags #markdownBody ul > li::before {
top: 0.25em;
}
}
/*********************/
/* TABLE OF CONTENTS */
/*********************/
#TOC {
border: 1px solid var(--GW-TOC-border-color);
background-color: var(--GW-TOC-background-color);
font-family: var(--GW-sans-serif-font-stack);
margin: 0 2rem 1.5rem 0;
line-height: 1.25;
padding: 10px 10px 2px 14px;
position: relative;
z-index: 11;
}
#TOC:empty {
display: none;
}
/* On mobile, we want the TOC to be inline, but for desktop, we want it side by side with the content.
*/
@media only screen and (max-width: 1280px) {
#TOC {
font-size: 0.95rem;
}
}
@media only screen and (max-width: 1200px) {
#TOC {
font-size: 0.90rem;
}
}
@media only screen and (max-width: 1120px) {
#TOC {
font-size: 0.85rem;
margin: 0 1.5rem 1.25rem 0;
}
}
@media only screen and (max-width: 1040px) {
#TOC {
font-size: 0.80rem;
margin: 0 1.25rem 1rem 0;
}
}
@media only screen and (max-width: 960px) {
#TOC {
margin: 0 1rem 1rem 0;
}
}
@media only screen and (min-width: 900px) {
#TOC {
float: left;
max-width: 285px;
}
}
@media only screen and (max-width: 900px) {
#TOC {
float: none;
margin: 2em auto;
font-size: 1rem;
}
#TOC > ul > li > ul {
column-count: 2;
}
}
@media only screen and (max-width: 649px) {
#TOC a {
display: inline-block;
}
#TOC > ul > li > ul {
column-count: 1;
}
#TOC li li a {
padding: 0 0 1px 0;
}
#TOC li li li a {
padding: 0 0 2px 0;
}
#TOC li li li li a {
padding: 0 0 3px 0;
}
#TOC li li li li a {
padding: 0 0 4px 0;
}
}
/*=-----------------=*/
/*= TOC list layout =*/
/*=-----------------=*/
#TOC ul {
list-style-type: none;
padding-left: 0em;
margin-bottom: 0;
margin-top: 4px;
padding-left: 1.4em;
text-indent: 0;
padding: 0;
overflow: unset;
}
#TOC ul ul {
list-style-type: none;
padding-left: 0.7em;
margin-top: 2px;
}
#TOC li {
font-weight: bold;
margin: 5px 0 10px 0;
padding-left: 1.125em;
position: relative;
overflow-wrap: break-word;
}
#TOC li li {
margin-bottom: 0;
font-weight: normal;
font-size: 0.9em;
}
#TOC p {
margin-top: 9px;
margin-bottom: 3px;
}
/*=------------------=*/
/*= TOC link styling =*/
/*=------------------=*/
#TOC a {
border: 0;
display: block;
position: relative;
padding: 0 0.25rem 0 0;
}
#TOC a:hover {
background-color: var(--GW-TOC-link-hover-background-color);
color: var(--GW-TOC-link-hover-color);
}
#TOC a:hover::after {
content: "";
display: inline-block;
position: absolute;
left: 100%;
top: 0;
background-color: var(--GW-TOC-link-hover-indicator-bar-color);
width: 0.25em;
height: 100%;
}
/*=--------------------------=*/
/*= Inline code in TOC links =*/
/*=--------------------------=*/
#TOC code {
font-family: inherit;
font-size: inherit;
border: none;
padding: 0;
background-color: inherit;
}
/*=-------------------------------=*/
/*= Wikipedia-style TOC numbering =*/
/*=-------------------------------=*/
#TOC > ul {
counter-reset: htoc_1;
}
#TOC > ul > li::before {
counter-increment: htoc_1;
content: counter(htoc_1) "\2006 ";
}
#TOC > ul ul {
counter-reset: htoc_2;
}
#TOC > ul ul li::before {
counter-increment: htoc_2;
content: counter(htoc_1) "." counter(htoc_2) "\2006 ";
}
#TOC > ul ul ul {
counter-reset: htoc_3;
}
#TOC > ul ul ul li::before {
counter-increment: htoc_3;
content: counter(htoc_1) "." counter(htoc_2) "." counter(htoc_3) "\2006 ";
}
#TOC > ul ul ul ul {
counter-reset: htoc_4;
}
#TOC > ul ul ul ul li::before {
counter-increment: htoc_4;
content: counter(htoc_1) "." counter(htoc_2) "." counter(htoc_3) "." counter(htoc_4) "\2006 ";
}
#TOC > ul ul ul ul ul {
counter-reset: htoc_5;
}
#TOC > ul ul ul ul ul li::before {
counter-increment: htoc_5;
content: counter(htoc_1) "." counter(htoc_2) "." counter(htoc_3) "." counter(htoc_4) "." counter(htoc_5) "\2006 ";
}
#TOC > ul ul ul ul ul ul {
counter-reset: htoc_6;
}
#TOC > ul ul ul ul ul ul li::before {
counter-increment: htoc_6;
content: counter(htoc_1) "." counter(htoc_2) "." counter(htoc_3) "." counter(htoc_4) "." counter(htoc_5) "." counter(htoc_6) "\2006 ";
}
#TOC ul li::before {
position: absolute;
right: calc(100% - 1em);
left: unset;
width: 111px;
text-align: right;
font-weight: normal;
pointer-events: none;
color: var(--GW-TOC-number-color);
}
#TOC ul li:hover::before {
color: var(--GW-TOC-number-hover-color);
}
/* The table of contents is a *table*, so align */
#TOC {
font-variant-numeric: tabular-nums;
}
/****************/
/* MAIN CONTENT */
/****************/
.markdownBody {
/* Try to avoid scrollbars on paragraphs: prevents long unbroken
un-hyphenatable lines from causing H-scrolling
*/
overflow-wrap: break-word;
}
/* Breakpoint for sidenotes.
*/
@media only screen and (min-width: 1761px) {
#markdownBody {
position: relative;
}
}
@media only screen and (min-width: 650px) {
@media only screen and (max-width: 1000px) {
/* Replaces A/B-test-set average value; the wider the screen, the more
line-height is necessary, and no one size suits all, so set 3 brackets
of increasing height.
*/
.markdownBody {
line-height: 1.45;
}
}
@media only screen and (min-width: 1001px) and (max-width: 1200px) {
.markdownBody {
line-height: 1.5;
}
}
@media only screen and (min-width: 1201px) {
.markdownBody {
line-height: 1.55;
}
}
}
/* Use justified text (words get broken/hyphenated as necessary to avoid a
'ragged margin'), undoing the default of 'flush left, ragged' right (see
https://en.wikipedia.org/wiki/Typographic_alignment#Flush_left )
WARNING: 'auto' hyphenation does not work in Chrome desktop due to long-standing inability/refusal:
https://bugs.chromium.org/p/chromium/issues/detail?id=47083 https://bugs.chromium.org/p/chromium/issues/detail?id=605840 https://bugs.chromium.org/p/chromium/issues/detail?id=652964
/images/design/2019-02-19-meme-distractedboyfriend-chromehyphenation.jpg
To work around Chrome failure, we use Edward Kmett's Haskell-ification of the TeX algorithm & dictionaries ( https://hackage.haskell.org/package/hyphenation ) to run a Hakyll compilation pass to insert soft hyphens. There is one bad side-effect: soft hyphens are often preserved in copy-paste, cluttering text, so a copy-paste JS listener in rewrite.js deletes all fancy hyphens from copy-pastes.
*/
.markdownBody p,
.markdownBody li {
text-align: justify;
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
/* Cute 'old-style' numerals, look a little nicer inline in text, and available natively in the SS fonts:
https://practicaltypography.com/alternate-figures.html#oldstyle-figures
*/
html {
font-variant-numeric: oldstyle-nums;
}
.abstract > blockquote {
margin: 0 0 1.5em 0;
background-color: var(--GW-abstract-background-color);
border-color: var(--GW-abstract-border-color);
padding: 0.9rem 1.25rem 0.95rem 1.25rem;
clear: none;
}
/* auto-smallcaps the first line of the introduction (= the first `<p>` after an 'abstract' div); this avoids the need to manually specify what to smallcaps, and it auto-adjusts to screen/line-width, which is nicer. */