-
Notifications
You must be signed in to change notification settings - Fork 181
/
default.html
1256 lines (1086 loc) · 29.9 KB
/
default.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
<!-- default theme -->
<style>
/* import google fonts */
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,700");
@import url("https://fonts.googleapis.com/css?family=Source+Code+Pro");
/* -------------------------------------------------- */
/* global */
/* -------------------------------------------------- */
/* all elements */
* {
/* force sans-serif font unless specified otherwise */
font-family: "Open Sans", "Helvetica", sans-serif;
/* prevent text inflation on some mobile browsers */
-webkit-text-size-adjust: none !important;
-moz-text-size-adjust: none !important;
-o-text-size-adjust: none !important;
text-size-adjust: none !important;
}
@media only screen {
/* "page" element */
body {
position: relative;
box-sizing: border-box;
font-size: 12pt;
line-height: 1.5;
max-width: 8.5in;
margin: 20px auto;
padding: 40px;
border-radius: 5px;
border: solid 1px #bdbdbd;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
background: #ffffff;
}
}
/* when on screen < 8.5in wide */
@media only screen and (max-width: 8.5in) {
/* "page" element */
body {
padding: 20px;
margin: 0;
border-radius: 0;
border: none;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.05) inset;
background: none;
}
}
/* -------------------------------------------------- */
/* headings */
/* -------------------------------------------------- */
/* all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 20px 0;
padding: 0;
font-weight: bold;
}
/* biggest heading */
h1 {
margin: 40px 0;
text-align: center;
}
/* second biggest heading */
h2 {
margin-top: 30px;
padding-bottom: 5px;
border-bottom: solid 1px #bdbdbd;
}
/* heading font sizes */
h1 {
font-size: 2em;
}
h2 {
font-size: 1.5em;
}
h3{
font-size: 1.35em;
}
h4 {
font-size: 1.25em;
}
h5 {
font-size: 1.15em;
}
h6 {
font-size: 1em;
}
/* -------------------------------------------------- */
/* manuscript header */
/* -------------------------------------------------- */
/* manuscript title */
header > h1 {
margin: 0;
}
/* manuscript title caption text (ie "automatically generated on") */
header + p {
text-align: center;
margin-top: 10px;
}
/* -------------------------------------------------- */
/* text elements */
/* -------------------------------------------------- */
/* links */
a {
color: #2196f3;
overflow-wrap: break-word;
}
/* normal links (not empty, not button link, not syntax highlighting link) */
a:not(:empty):not(.button):not(.sourceLine) {
padding-left: 1px;
padding-right: 1px;
}
/* superscripts and subscripts */
sub,
sup {
/* prevent from affecting line height */
line-height: 0;
}
/* unordered and ordered lists*/
ul,
ol {
padding-left: 20px;
}
/* class for styling text semibold */
.semibold {
font-weight: 600;
}
/* class for styling elements horizontally left aligned */
.left {
display: block;
text-align: left;
margin-left: auto;
margin-right: 0;
justify-content: left;
}
/* class for styling elements horizontally centered */
.center {
display: block;
text-align: center;
margin-left: auto;
margin-right: auto;
justify-content: center;
}
/* class for styling elements horizontally right aligned */
.right {
display: block;
text-align: right;
margin-left: 0;
margin-right: auto;
justify-content: right;
}
/* -------------------------------------------------- */
/* section elements */
/* -------------------------------------------------- */
/* horizontal divider line */
hr {
border: none;
height: 1px;
background: #bdbdbd;
}
/* paragraphs, horizontal dividers, figures, tables, code */
p,
hr,
figure,
table,
pre {
/* treat all as "paragraphs", with consistent vertical margins */
margin-top: 20px;
margin-bottom: 20px;
}
/* -------------------------------------------------- */
/* figures */
/* -------------------------------------------------- */
/* figure */
figure {
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
/* figure caption */
figcaption {
padding: 0;
padding-top: 10px;
}
/* figure image element */
figure > img,
figure > svg {
max-width: 100%;
display: block;
margin-left: auto;
margin-right: auto;
}
/* figure auto-number */
img + figcaption > span:first-of-type,
svg + figcaption > span:first-of-type {
font-weight: bold;
margin-right: 5px;
}
/* -------------------------------------------------- */
/* tables */
/* -------------------------------------------------- */
/* table */
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
margin-left: auto;
margin-right: auto;
}
/* table cells */
th,
td {
border: solid 1px #bdbdbd;
padding: 10px;
/* squash table if too wide for page by forcing line breaks */
overflow-wrap: break-word;
word-break: break-word;
}
/* header row and even rows */
th,
tr:nth-child(2n) {
background-color: #fafafa;
}
/* odd rows */
tr:nth-child(2n + 1) {
background-color: #ffffff;
}
/* table caption */
caption {
text-align: left;
padding: 0;
padding-bottom: 10px;
}
/* table auto-number */
table > caption > span:first-of-type,
div.table_wrapper > table > caption > span:first-of-type {
font-weight: bold;
margin-right: 5px;
}
/* -------------------------------------------------- */
/* code */
/* -------------------------------------------------- */
/* multi-line code block */
pre {
padding: 10px;
background-color: #eeeeee;
color: #000000;
border-radius: 5px;
break-inside: avoid;
text-align: left;
}
/* inline code, ie code within normal text */
:not(pre) > code {
padding: 0 4px;
background-color: #eeeeee;
color: #000000;
border-radius: 5px;
}
/* code text */
/* apply all children, to reach syntax highlighting sub-elements */
code,
code * {
/* force monospace font */
font-family: "Source Code Pro", "Courier New", monospace;
}
/* -------------------------------------------------- */
/* quotes */
/* -------------------------------------------------- */
/* quoted text */
blockquote {
margin: 0;
padding: 0;
border-left: 4px solid #bdbdbd;
padding-left: 16px;
break-inside: avoid;
}
/* -------------------------------------------------- */
/* banners */
/* -------------------------------------------------- */
/* info banners */
.banner {
box-sizing: border-box;
display: block;
position: relative;
width: 100%;
margin-top: 20px;
margin-bottom: 20px;
padding: 20px;
text-align: center;
}
/* paragraph in banner */
.banner > p {
margin: 0;
}
/* -------------------------------------------------- */
/* highlight colors */
/* -------------------------------------------------- */
.white {
background: #ffffff;
}
.lightgrey {
background: #eeeeee;
}
.grey {
background: #757575;
}
.darkgrey {
background: #424242;
}
.black {
background: #000000;
}
.lightred {
background: #ffcdd2;
}
.lightyellow {
background: #ffecb3;
}
.lightgreen {
background: #dcedc8;
}
.lightblue {
background: #e3f2fd;
}
.lightpurple {
background: #f3e5f5;
}
.red {
background: #f44336;
}
.orange {
background: #ff9800;
}
.yellow {
background: #ffeb3b;
}
.green {
background: #4caf50;
}
.blue {
background: #2196f3;
}
.purple {
background: #9c27b0;
}
.white,
.lightgrey,
.lightred,
.lightyellow,
.lightgreen,
.lightblue,
.lightpurple,
.orange,
.yellow,
.white a,
.lightgrey a,
.lightred a,
.lightyellow a,
.lightgreen a,
.lightblue a,
.lightpurple a,
.orange a,
.yellow a {
color: #000000;
}
.grey,
.darkgrey,
.black,
.red,
.green,
.blue,
.purple,
.grey a,
.darkgrey a,
.black a,
.red a,
.green a,
.blue a,
.purple a {
color: #ffffff;
}
/* -------------------------------------------------- */
/* buttons */
/* -------------------------------------------------- */
/* class for styling links like buttons */
.button {
display: inline-flex;
justify-content: center;
align-items: center;
margin: 5px;
padding: 10px 20px;
font-size: 0.75em;
font-weight: 600;
text-transform: uppercase;
text-decoration: none;
letter-spacing: 1px;
background: none;
color: #2196f3;
border: solid 1px #bdbdbd;
border-radius: 5px;
}
/* buttons when hovered */
.button:hover:not([disabled]),
.icon_button:hover:not([disabled]) {
cursor: pointer;
background: #f5f5f5;
}
/* buttons when disabled */
.button[disabled],
.icon_button[disabled] {
opacity: 0.35;
pointer-events: none;
}
/* class for styling buttons containg only single icon */
.icon_button {
display: inline-flex;
justify-content: center;
align-items: center;
text-decoration: none;
margin: 0;
padding: 0;
background: none;
border-radius: 5px;
border: none;
width: 20px;
height: 20px;
min-width: 20px;
min-height: 20px;
}
/* icon button inner svg image */
.icon_button > svg {
height: 16px;
}
/* -------------------------------------------------- */
/* icons */
/* -------------------------------------------------- */
/* class for styling icons inline with text */
.inline_icon {
height: 1em;
position: relative;
top: 0.125em;
}
/* -------------------------------------------------- */
/* print control */
/* -------------------------------------------------- */
@media print {
@page {
/* suggested printing margin */
margin: 0.5in;
}
/* document and "page" elements */
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
/* "page" element */
body {
font-size: 11pt !important;
line-height: 1.35;
}
/* all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 15px 0;
}
/* figures and tables */
figure, table {
font-size: 0.85em;
}
/* table cells */
th,
td {
padding: 5px;
}
/* shrink font awesome icons */
i.fas,
i.fab,
i.far,
i.fal {
transform: scale(0.85);
}
/* decrease banner margins */
.banner {
margin-top: 15px;
margin-bottom: 15px;
padding: 15px;
}
/* class for centering an element vertically on its own page */
.page_center {
margin: auto;
width: 100%;
height: 100%;
display: flex;
align-items: center;
vertical-align: middle;
break-before: page;
break-after: page;
}
/* always insert a page break before the element */
.page_break_before {
break-before: page;
}
/* always insert a page break after the element */
.page_break_after {
break-after: page;
}
/* avoid page break before the element */
.page_break_before_avoid {
break-before: avoid;
}
/* avoid page break after the element */
.page_break_after_avoid {
break-after: avoid;
}
/* avoid page break inside the element */
.page_break_inside_avoid {
break-inside: avoid;
}
}
/* -------------------------------------------------- */
/* override pandoc css quirks */
/* -------------------------------------------------- */
.sourceCode {
/* prevent unsightly overflow in wide code blocks */
overflow: auto !important;
}
div.sourceCode {
/* prevent background fill on top-most code block container */
background: none !important;
}
.sourceCode * {
/* force consistent line spacing */
line-height: 1.5 !important;
}
div.sourceCode {
/* style code block margins same as <pre> element */
margin-top: 20px;
margin-bottom: 20px;
}
/* -------------------------------------------------- */
/* tablenos */
/* -------------------------------------------------- */
/* tablenos wrapper */
.tablenos {
/* show scrollbar on tables if necessary to prevent overflow */
width: 100%;
margin: 20px 0;
}
.tablenos > table {
/* move margins from table to table_wrapper to allow margin collapsing */
margin: 0;
}
@media only screen {
/* tablenos wrapper */
.tablenos {
/* show scrollbar on tables if necessary to prevent overflow */
overflow-x: auto !important;
}
.tablenos th,
.tablenos td {
overflow-wrap: unset !important;
word-break: unset !important;
}
/* table in wrapper */
.tablenos table,
.tablenos table * {
/* don't break table words */
overflow-wrap: normal !important;
}
}
/* -------------------------------------------------- */
/* mathjax */
/* -------------------------------------------------- */
/* mathjax containers */
.math.display > span:not(.MathJax_Preview) {
/* turn inline element (no dimensions) into block (allows fixed width and thus scrolling) */
display: flex !important;
overflow-x: auto !important;
overflow-y: hidden !important;
justify-content: center;
align-items: center;
margin: 0 !important;
}
/* right click menu */
.MathJax_Menu {
border-radius: 5px !important;
border: solid 1px #bdbdbd !important;
box-shadow: none !important;
}
/* equation auto-number */
span[id^="eq:"] > span.math.display + span {
font-weight: 600;
}
/* equation */
span[id^="eq:"] > span.math.display > span {
/* nudge to make room for equation auto-number and anchor */
margin-right: 60px !important;
}
/* -------------------------------------------------- */
/* anchors plugin */
/* -------------------------------------------------- */
@media only screen {
/* anchor button */
.anchor {
opacity: 0;
margin-left: 5px;
}
/* anchor buttons within <h2>'s */
h2 .anchor {
margin-left: 10px;
}
/* anchor buttons when hovered/focused and anything containing an anchor button when hovered */
*:hover > .anchor,
.anchor:hover,
.anchor:focus {
opacity: 1;
}
/* anchor button when hovered */
.anchor:hover {
cursor: pointer;
}
}
/* always show anchor button on devices with no mouse/hover ability */
@media (hover: none) {
.anchor {
opacity: 1;
}
}
/* always hide anchor button on print */
@media only print {
.anchor {
display: none;
}
}
/* -------------------------------------------------- */
/* accordion plugin */
/* -------------------------------------------------- */
@media only screen {
/* accordion arrow button */
.accordion_arrow {
margin-right: 10px;
}
/* arrow icon when <h2> data-collapsed attribute true */
h2[data-collapsed="true"] > .accordion_arrow > svg {
transform: rotate(-90deg);
}
/* all elements (except <h2>'s) when data-collapsed attribute true */
*:not(h2)[data-collapsed="true"] {
display: none;
}
/* accordion arrow button when hovered and <h2>'s when hovered */
.accordion_arrow:hover,
h2[data-collapsed="true"]:hover,
h2[data-collapsed="false"]:hover {
cursor: pointer;
}
}
/* always hide accordion arrow button on print */
@media only print {
.accordion_arrow {
display: none;
}
}
/* -------------------------------------------------- */
/* tooltips plugin */
/* -------------------------------------------------- */
@media only screen {
/* tooltip container */
#tooltip {
position: absolute;
width: 50%;
min-width: 240px;
max-width: 75%;
z-index: 1;
}
/* tooltip content */
#tooltip_content {
margin-bottom: 5px;
padding: 20px;
border-radius: 5px;
border: solid 1px #bdbdbd;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
background: #ffffff;
overflow-wrap: break-word;
}
/* tooltip copy of paragraphs and figures */
#tooltip_content > p,
#tooltip_content > figure {
margin: 0;
max-height: 320px;
overflow-y: auto;
}
/* tooltip copy of <img> */
#tooltip_content > figure > img,
#tooltip_content > figure > svg {
max-height: 260px;
}
/* navigation bar */
#tooltip_nav_bar {
margin-top: 10px;
text-align: center;
}
/* navigation bar previous/next buton */
#tooltip_nav_bar > .icon_button {
position: relative;
top: 3px;
}
/* navigation bar previous button */
#tooltip_nav_bar > .icon_button:first-of-type {
margin-right: 5px;
}
/* navigation bar next button */
#tooltip_nav_bar > .icon_button:last-of-type {
margin-left: 5px;
}
}
/* always hide tooltip on print */
@media only print {
#tooltip {
display: none;
}
}
/* -------------------------------------------------- */
/* jump to first plugin */
/* -------------------------------------------------- */
@media only screen {
/* jump button */
.jump_arrow {
position: relative;
top: 0.125em;
margin-right: 5px;
}
}
/* always hide jump button on print */
@media only print {
.jump_arrow {
display: none;
}
}
/* -------------------------------------------------- */
/* link highlight plugin */
/* -------------------------------------------------- */
@media only screen {
/* anything with data-highlighted attribute true */
[data-highlighted="true"] {
background: #ffeb3b;
}
/* anything with data-selected attribute true */
[data-selected="true"] {
background: #ff8a65 !important;
}
/* animation definition for glow */
@keyframes highlight_glow {
0% {
background: none;
}
10% {
background: #bbdefb;
}
100% {
background: none;
}
}
/* anything with data-glow attribute true */
[data-glow="true"] {
animation: highlight_glow 2s;
}
}
/* -------------------------------------------------- */
/* table of contents plugin */
/* -------------------------------------------------- */
@media only screen {
/* toc panel */
#toc_panel {
box-sizing: border-box;
position: fixed;
top: 0;
left: 0;
background: #ffffff;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
z-index: 2;
}
/* toc panel when closed */
#toc_panel[data-open="false"] {
min-width: 60px;
width: 60px;
height: 60px;
border-right: solid 1px #bdbdbd;
border-bottom: solid 1px #bdbdbd;
}
/* toc panel when open */
#toc_panel[data-open="true"] {
min-width: 260px;
max-width: 480px;
/* keep panel edge consistent distance away from "page" edge */
width: calc(((100vw - 8.5in) / 2) - 30px - 40px);
bottom: 0;
border-right: solid 1px #bdbdbd;
}
/* toc panel header */
#toc_header {
box-sizing: border-box;
display: flex;
flex-direction: row;
align-items: center;
height: 60px;
margin: 0;
padding: 20px;
}
/* toc panel header when hovered */
#toc_header:hover {
cursor: pointer;
}
/* toc panel header when panel open */
#toc_panel[data-open="true"] > #toc_header {
border-bottom: solid 1px #bdbdbd;
}
/* toc open/close header button */
#toc_button {
margin-right: 20px;
}
/* hide toc list and header text when closed */
#toc_panel[data-open="false"] > #toc_header > *:not(#toc_button),
#toc_panel[data-open="false"] > #toc_list {
display: none;
}
/* toc list of entries */
#toc_list {
box-sizing: border-box;
width: 100%;
padding: 20px;
position: absolute;
top: calc(60px + 1px);
bottom: 0;
overflow: auto;
}
/* toc entry, link to section in document */
.toc_link {
display: block;
padding: 5px;
position: relative;
font-weight: 600;
text-decoration: none;
}
/* toc entry when hovered or when "viewed" */
.toc_link:hover,
.toc_link[data-viewing="true"] {
background: #f5f5f5;
}
/* toc entry, level 1 indentation */
.toc_link[data-level="1"] {
margin-left: 0;
}
/* toc entry, level 2 indentation */
.toc_link[data-level="2"] {
margin-left: 20px;
}