Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download

📚 The CoCalc Library - books, templates and other resources

Views: 96164
License: OTHER
1
2
/*
3
.workgroup .work .title {
4
font-weight: normal;
5
}
6
*/
7
8
.collectedworks .knowl-output {
9
border: 12px
10
solid #D6E3FF;
11
background: none repeat scroll 0% 0% #FAFCFF;
12
border-radius: 4px;
13
margin-bottom: 1.25em;
14
}
15
16
.collectedworks .subjectwork {
17
max-width: 750px;
18
}
19
20
.collectedworks .bib {
21
margin-bottom: 1em;
22
}
23
24
.collectedworks .bibitem + .bibentry {
25
display: inline;
26
}
27
28
.collectedworks .bibitem {
29
display: inline;
30
font-weight: bold;
31
margin-right: 1em;
32
}
33
34
#primary-navbar .toolbar .toolbar-item a {
35
text-decoration: none;
36
}
37
38
#primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item {
39
/* for the prev/next svg from SL2X */
40
margin-top: -8px;
41
border-left: 0;
42
}
43
44
#primary-navbar .navbar-top-buttons .toolbar-align-right {
45
/* also for the prev/next svg from SL2X */
46
border-right: 0;
47
}
48
49
#primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item-left {
50
float: left;
51
padding: 3px 6px 3px 6px;
52
margin: 4px 10px 0px 5px;
53
border: 1px solid #aaf;
54
background-color: #def;
55
/*
56
border: 1px solid #aaf;
57
margin: 8px 10px 0px 10px;
58
*/
59
font-size: 90%;
60
}
61
62
#primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item-left a {
63
text-decoration: none;
64
/*
65
padding: 3px 6px 3px 6px;
66
margin: 4px 10px 0px 5px;
67
margin: 0;
68
border: 1px solid #aaf;
69
background-color: #def;
70
*/
71
}
72
73
74
#feedback {position: relative;
75
margin-top: 30px; /* negative value of footer height */
76
height: 30px;
77
margin-left: 30px;
78
font-size: 70%;
79
text-align: bottom;
80
clear:both;
81
}
82
83
.mathbook-content figure figcaption {
84
font-weight: normal;
85
}
86
87
.mathbook-content figure figcaption {
88
margin-top: 10px;
89
margin-left: auto;
90
margin-right: auto;
91
font-size: 100%;
92
text-indent: -30px;
93
}
94
95
.mathbook-content figure figcaption .heading, .mathbook-content figure figcaption .codenumber {
96
font-weight: 700;
97
}
98
99
.mathbook-content figure figcaption .heading:after {
100
content: " ";
101
}
102
103
.mathbook-content figure figcaption .codenumber:after {
104
content: ".\2002"; /* en space */
105
}
106
107
.mathbook-content figure figcaption .codenumber:last-child:after {
108
display: inline;
109
content: ". ";
110
}
111
112
.mathbook-content .definition-like p > em {
113
font-weight: 700;
114
}
115
116
.unprocessed {
117
padding: 8px;
118
background-color: rgb(255,230,230)
119
}
120
121
.unprocessed .unprocessed {
122
margin: 8px;
123
background-color: rgb(255,200,255)
124
}
125
126
.unprocessed .unprocessed .unprocessed {
127
margin: 8px;
128
background-color: rgb(205,205,255)
129
}
130
131
/* does this apply anywhere? */
132
133
/*
134
*[knowl] {
135
border-bottom: 1px dotted #00a;
136
}
137
*/
138
139
#toc h2 + h2 {
140
margin-top: 0.3em;
141
}
142
143
h2:last-child {
144
/* for the chapter pages with section links at the bottom */
145
margin-bottom: 100px;
146
}
147
148
.mathbook-content section h2 a {
149
text-decoration: none;
150
}
151
152
.aside-like {
153
padding: 8px 15px 10px 15px;
154
margin: 5px 0px 5px 10px;
155
}
156
157
.aside-like {
158
159
background-color: rgb(245,250,255);
160
border: 2px solid rgb(220,235,250);
161
}
162
163
.aside-like .aside-like {
164
165
background-color: rgb(250,255,245);
166
border: 1px dotted #aaa;
167
168
}
169
170
.mathbook-content {
171
margin: 0;
172
}
173
174
.mathbook-content .paragraphs .heading {
175
display: inline;
176
}
177
178
.mathbook-content .paragraphs .heading .title:not(:empty):after {
179
content: ".\2002"; /* en space */
180
}
181
182
.mathbook-content .paragraphs .heading + p {
183
display: inline;
184
}
185
186
.mathbook-content .paragraphs .heading + p:after {
187
content: "";
188
display: block;
189
margin-bottom: 1.25em;
190
}
191
192
/* the next are to avoid styping a p as inline, because
193
* inline styling messes up the meaning of line-height.
194
* */
195
196
.mathbook-content .paragraphs p .title {
197
font-family: "PT Serif", "Times New Roman", Times, serif;
198
font-size: 1.125em;
199
font-weight: 700;
200
}
201
202
.mathbook-content .paragraphs p .title:after {
203
content: ".\2002";
204
}
205
206
.mathbook-content .paragraphs p h5.heading {
207
display: inline;
208
}
209
210
.mathbook-content section .paragraphs h5.heading {
211
margin-top: 0;
212
}
213
214
.mathbook-content section .paragraphs {
215
margin-top: 0em;
216
}
217
218
.mathbook-content section .paragraphs + .paragraphs {
219
margin-top: 3em;
220
}
221
222
.mathbook-content h6 {
223
line-height: 1em;
224
margin-bottom: 0.5em;
225
}
226
227
.mathbook-content .sidebyside > p, .mathbook-content .sidebyside > figure, .mathbook-content .sidebyside > img, .mathbook-content .sidebyside > table, .mathbook-content .sidebyside > tabular, .mathbook-content .sidebyside > .paragraphs {
228
display: inline-block;
229
margin: 0;
230
}
231
232
.mathbook-content .sidebyside > figure:after {
233
content:'';
234
}
235
236
.mathbook-content .sidebyside figcaption {
237
font-weight: normal;
238
/* padding-left: 5%;
239
*/
240
padding-left: 1em;
241
padding-right: 0;
242
/* padding-top: 20px;
243
*/
244
/* margin-top:0.75em;
245
*/
246
margin: 0.75em 0 0 0;
247
}
248
249
.mathbook-content .sidebyside figcaption .heading, .mathbook-content .sidebyside figcaption .codenumber {
250
font-weight: 700;
251
}
252
253
.mathbook-content .sidebyside figcaption .heading:after {
254
content: "\00a0";
255
}
256
257
.mathbook-content figcaption .codenumber{
258
font-family: "PT Serif", "Times New Roman", Times, serif;
259
}
260
.mathbook-content .sidebyside figcaption .codenumber:after {
261
content: ".\2002"; /* en space */
262
}
263
264
.mathbook-content .sidebyside figcaption .codenumber:last-child:after {
265
display: inline;
266
content: ". ";
267
}
268
269
270
.mathbook-content .sidebyside > p {
271
width: 32%;
272
vertical-align: top;
273
}
274
275
.mathbook-content .sidebyside > p.left, .mathbook-content .sidebyside > p.middle, .mathbook-content .sidebyside > p.right {
276
vertical-align: middle;
277
}
278
279
.mathbook-content .sidebyside > p + img {
280
vertical-align: middle;
281
}
282
283
.mathbook-content .sidebyside {
284
margin-bottom: 20px;
285
}
286
287
.mathbook-content .sidebyside .sbsrow h5.sbsheader {
288
margin-top: 0;
289
}
290
291
/*
292
.mathbook-content .sidebyside {
293
text-align: justify;
294
}
295
*/
296
297
/* Deleted on 9/12/16 because it caused a blank line.
298
Figure out when it was supposed to do, and do it another way.
299
300
.mathbook-content .sidebyside:after {
301
display:inline-block;
302
width:100%;
303
content:'';
304
}
305
*/
306
307
.mathbook-content .sbsgroup {
308
width: 100%;
309
}
310
311
.mathbook-content .sidebyside {
312
width: 100%;
313
}
314
315
.mathbook-content .sbsrow {
316
display: flex;
317
justify-content: space-between;
318
}
319
320
/* Components of three types of "sbsrow" */
321
322
/* titles, totally centered text */
323
.mathbook-content .sbsheader {
324
/*
325
display: flex;
326
*/
327
text-align: center;
328
justify-content: center;
329
}
330
331
/* containers of desired width for actual content */
332
.mathbook-content .sbspanel {
333
display: flex;
334
flex-direction: column;
335
}
336
337
/* fixed-width items are centered horizontally in their panel */
338
/* always used in conjunction with sbspanel */
339
.mathbook-content .fixed-width {
340
align-items: center;
341
}
342
343
/* captions, centered until word-wrapped */
344
.mathbook-content .sbscaption {
345
/*
346
display: flex;
347
*/
348
justify-content: center;
349
}
350
351
352
353
354
355
table {
356
border-spacing: 0;
357
}
358
359
/*
360
table {
361
border-collapse: collapse;
362
}
363
364
table tr td {
365
padding: 2px;
366
padding-left: 5px;
367
padding-right: 5px;
368
font-size: 90%;
369
}
370
*/
371
372
.mathbook-content table tr td.l {
373
text-align: left;
374
}
375
.mathbook-content table tr td.c {
376
text-align: center;
377
}
378
.mathbook-content table tr td.r {
379
text-align: right;
380
}
381
.mathbook-content table tr td.j {
382
text-align: justify;
383
}
384
.mathbook-content table tr td.lines {
385
white-space: nowrap;
386
}
387
388
389
.mathbook-content table tr td.t {
390
vertical-align: top;
391
}
392
.mathbook-content table tr td.b {
393
vertical-align: bottom;
394
}
395
.mathbook-content table tr td.m {
396
vertical-align: middle;
397
}
398
399
.mathbook-content table tr td.vv {
400
border-left: 2px solid #000;
401
border-right: 2px solid #000;
402
}
403
404
.mathbook-content table tr td.vcv {
405
border-left: 2px solid #000;
406
border-right: 2px solid #000;
407
text-align: center;
408
}
409
410
.mathbook-content table tr td.vcvv {
411
border-left: 2px solid #000;
412
border-right: 4px solid #000;
413
text-align: center;
414
}
415
416
.mathbook-content table tr td.vlv {
417
border-left: 2px solid #000;
418
border-right: 2px solid #000;
419
text-align: left;
420
}
421
422
.mathbook-content table tr td.vrv {
423
border-left: 2px solid #000;
424
border-right: 2px solid #000;
425
text-align: right;
426
}
427
428
.mathbook-content table tr td.rv {
429
border-right: 2px solid #000;
430
text-align: right;
431
}
432
433
.mathbook-content table tr td.vr {
434
border-left: 2px solid #000;
435
text-align: right;
436
}
437
438
.mathbook-content table tr td.lv {
439
border-right: 2px solid #000;
440
text-align: left;
441
}
442
443
.mathbook-content table tr td.vl {
444
border-left: 2px solid #000;
445
text-align: left;
446
}
447
.mathbook-content table tr td.cv {
448
border-right: 2px solid #000;
449
text-align: center;
450
}
451
452
.mathbook-content table tr td.Xv {
453
border-right: 2px solid #000;
454
text-align: left;
455
}
456
457
.mathbook-content table tr td.vc {
458
border-left: 2px solid #000;
459
text-align: center;
460
}
461
462
.mathbook-content table tr td.hline {
463
padding: 0;
464
}
465
466
.mathbook-content table tr td.hlinethick {
467
468
padding-left: 0px;
469
padding-right: 0px;
470
471
}
472
473
.mathbook-content table tr td.hline hr {
474
475
margin-top:0;
476
margin-bottom:0;
477
margin-left: -1px;
478
margin-right: -1px;
479
border: 1px solid rgb(0,0,0);
480
481
}
482
483
.mathbook-content table tr td.hlinethick hr {
484
485
margin-top:0;
486
margin-bottom:0;
487
margin-left: -1px;
488
margin-right: -1px;
489
border: 2px solid rgb(0,0,0);
490
491
}
492
493
494
.center table {
495
text-align: center;
496
margin-left: auto;
497
margin-right: auto;
498
}
499
500
501
.mathbook-content table tr td.b1 {
502
border-bottom: 1px solid #000;
503
}
504
.mathbook-content table tr td.b2 {
505
border-bottom: 2px solid #000;
506
}
507
.mathbook-content table tr td.b3 {
508
border-bottom: 3px solid #000;
509
}
510
.mathbook-content table tr td.b0 {
511
border-bottom: none;
512
}
513
514
.mathbook-content table tr td.t1 {
515
border-top: 1px solid #000;
516
}
517
.mathbook-content table tr td.t2 {
518
border-top: 2px solid #000;
519
}
520
.mathbook-content table tr td.t3 {
521
border-top: 3px solid #000;
522
}
523
.mathbook-content table tr td.t0 {
524
border-top: none;
525
}
526
527
.mathbook-content table tr td.r1 {
528
border-right: 1px solid #000;
529
}
530
.mathbook-content table tr td.r2 {
531
border-right: 2px solid #000;
532
}
533
.mathbook-content table tr td.r3 {
534
border-right: 3px solid #000;
535
}
536
.mathbook-content table tr td.r0 {
537
border-right: none;
538
}
539
540
541
.mathbook-content table tr td.l1 {
542
border-left: 1px solid #000;
543
}
544
.mathbook-content table tr td.l2 {
545
border-left: 2px solid #000;
546
}
547
.mathbook-content table tr td.l3 {
548
border-left: 3px solid #000;
549
}
550
.mathbook-content table tr td.l0 {
551
border-left: none;
552
}
553
554
.mathbook-content table tr td p {
555
margin-bottom: 0;
556
}
557
558
.mathbook-content table tr td p + p {
559
margin-top: 1em;
560
}
561
562
.mathbook-content table + p {
563
margin-top: 20px;
564
}
565
566
.mathbook-content table tr td span.decimal {
567
float: left;
568
text-align: right;
569
}
570
571
.mathbook-content table + article.theorem-like {
572
margin-top: 1em;
573
}
574
575
.mathbook-content ol li p, .mathbook-content ul li p {
576
margin-bottom: 0;
577
}
578
579
.mathbook-content ol li + li, .mathbook-content ul li + li {
580
margin-top: 0.5em;
581
}
582
583
.mathbook-content ol li ol, .mathbook-content ol li ul, .mathbook-content ul li ol, .mathbook-content ul li ul {
584
margin-top: 0.5em;
585
}
586
587
.mathbook-content ol li p + p, .mathbook-content ul li p + p {
588
margin-top: 1em;
589
}
590
591
.mathbook-content article h5.heading + dl {
592
margin-top: 1em;
593
}
594
595
.mathbook-content dl dd p {
596
margin-bottom: 0.5em;
597
}
598
599
.mathbook-content dl dd *:last-child {
600
margin-bottom: 0;
601
}
602
603
.mathbook-content dl dt, .mathbook-content dl dd {
604
margin-top: 1em;
605
}
606
607
.mathbook-content dl dt:first-of-type, .mathbook-content dl dd:first-of-type {
608
margin-top: 0;
609
}
610
611
.mathbook-content .hidden-knowl-wrapper .hiddenproof h5 {
612
margin-top: 0;
613
}
614
615
.mathbook-content .hidden-knowl-wrapper article {
616
display: inline;
617
}
618
619
.mathbook-content .hidden-knowl-wrapper {
620
margin-bottom: 1.5em;
621
}
622
623
.mathbook-content .theorem-like + .hidden-knowl-wrapper {
624
margin-top: -0.5em;
625
}
626
627
.mathbook-content .hiddenproof > .heading::after {
628
content: "."
629
}
630
631
.mathbook-content .hidden-knowl-wrapper h5 {
632
display: inline;
633
}
634
635
.amathbook-content figure.figure-like {
636
overflow: auto;
637
}
638
.mathbook-content figure.figure-like {
639
/*
640
margin-left: 0;
641
margin-right: 0;
642
*/
643
margin-left: auto;
644
margin-right: auto;
645
}
646
/*
647
.mathbook-content .sbscaption {
648
width: 100%! important;
649
}
650
*/
651
652
.mathbook-content figure.figure-like figcaption {
653
overflow: hidden;
654
}
655
656
/* need to fix this in the main CSS code */
657
.mathbook-content .proof {
658
padding-top: 0;
659
}
660
661
.mathbook-content .knowl p:last-of-type {
662
margin-bottom: 0;
663
}
664
665
.mathbook-content .knowl-output .knowl-content {
666
margin-bottom: 0.5em;
667
}
668
669
.mathbook-content tt {
670
font-size: 1.4em;
671
margin-left: 0.2em;
672
margin-right: 0.2em;
673
}
674
675
.mathbook-content section .videolink a:link {
676
background-size: 0;
677
text-decoration: none;
678
}
679
680
.mathbook-content .exercise-like ol li table {
681
margin-bottom: 0.5em;
682
}
683
684
.mathbook-content .exercise-like ol li + li {
685
margin-top: 0.5em;
686
}
687
688
.mathbook-content section header .heading a.permalink {
689
opacity: 0.1;
690
color: #d00;
691
font-size: 70%;
692
text-decoration: none;
693
}
694
695
/*
696
.mathbook-content .heading a.permalink:after {
697
content: "permalink";
698
opacity: 0;
699
font-size: 50%;
700
font-weight:normal;
701
font-family: sans-serif;
702
text-decoration: none;
703
}
704
*/
705
706
.mathbook-content .heading a.permalink:hover {
707
opacity: 1;
708
color: #a32;
709
}
710
711
/*
712
.mathbook-content .heading a.permalink:hover:after {
713
opacity: 1;
714
}
715
*/
716
717
.mathbook-content .heading a.permalink:focus {
718
opacity: 1;
719
color: #a32;
720
}
721
/*
722
.mathbook-content .heading a.permalink:focus:after {
723
opacity: 1;
724
}
725
*/
726
727
.mathbook-content .indexitem {
728
margin-top: 2px;
729
}
730
731
.mathbook-content .subindexitem {
732
margin-left: 2em;
733
font-size: 95%;
734
margin-top: -1px;
735
}
736
737
.mathbook-content .subsubindexitem {
738
margin-left: 3.5em;
739
font-size: 95%;
740
margin-top: -1px;
741
}
742
743
.mathbook-content .indexknowl {
744
margin-left: 2em;
745
}
746
747
.mathbook-content .indexitem .indexknowl {
748
font-size: 90%;
749
}
750
751
/*
752
.mathbook-content .indexitem a {
753
font-size: 90%;
754
}
755
*/
756
757
.mathbook-content .indexitem [knowl], .mathbook-content .subindexitem [knowl], .mathbook-content .subsubindexitem [knowl] {
758
padding-right: 2px;
759
padding-left: 2px;
760
}
761
762
.mathbook-content .subindexitem .indexknowl {
763
font-size: 95%;
764
}
765
.mathbook-content .subsubindexitem .indexknowl {
766
font-size: 95%;
767
}
768
769
.mathbook-content .indexletter {
770
margin-top: 1em;
771
font-size: 170%;
772
font-weight: bold;
773
}
774
.mathbook-content .indexletter {
775
padding-top: 1.5em;
776
margin-top: -0.5em;
777
}
778
779
.mathbook-content .indexknowl + .indexknowl{
780
margin-left: 1em;
781
}
782
783
/*
784
.mathbook-content section #hk-exercise-essay article {
785
display: inline;
786
}
787
*/
788
789
.mathbook-content .hidden-knowl-wrapper h5 {
790
display: inline;
791
}
792
.mathbook-content h5 + .hidden-knowl-wrapper {
793
display: inline;
794
}
795
.mathbook-content article .hidden-knowl-wrapper {
796
display: inline;
797
}
798
799
.mathbook-content .incontext {
800
display: block;
801
font-size: 85%;
802
text-align: right;
803
margin-bottom: -0.5em;
804
}
805
806
.mathbook-content .terminology {
807
font-style: italic;
808
font-weight: bold;
809
}
810
811
:target {
812
-webkit-animation: target-fade 10s 1;
813
-moz-animation: target-fade 10s 1;
814
}
815
816
@-webkit-keyframes target-fade {
817
0% { background-color: rgba(120,0,120,.3); }
818
100% { background-color: inherit; }
819
}
820
@-moz-keyframes target-fade {
821
0% { background-color: rgba(120,0,120,.3); }
822
100% { background-color: inherit; }
823
}
824
825
/*
826
.mathbook-content .autoterm {
827
display: inline;
828
}
829
*/
830
831
.mathbook-content .autoterm [knowl], .mathbook-content .autoterm [knowl]:after {
832
font-weight: inherit;
833
color: inherit;
834
padding: 0;
835
margin-bottom: inherit;
836
border-bottom: inherit;
837
border-bottom-color: inherit;
838
}
839
840
/*
841
.mathbook-content .autoterm [knowl]:hover {
842
background: inherit;
843
border-bottom: inherit;
844
}
845
846
.mathbook-content .autoterm [knowl]:hover {
847
background: #eebbff;
848
border-bottom: 1px dotted red;
849
}
850
*/
851
852
/*
853
.mathbook-content .autoterm .active[knowl] {
854
background: inherit;
855
}
856
*/
857
858
.mathbook-content .autoterm [knowl]:hover {
859
background: #ffddff;
860
border-top: 2px dotted purple;
861
border-bottom: 1px dotted red;
862
border-top-left-radius: 0;
863
border-top-right-radius: 0;
864
}
865
866
.has-sidebar-left #primary-navbar-sticky-wrapper .navbar-top-buttons .toolbar, .has-sidebar-left #primary-navbar .navbar-top-buttons .toolbar {
867
border-right: 0;
868
}
869
870
#primary-navbar .toolbar.toolbar-divisor-3 > .toolbar-item:last-child, #primary-navbar-sticky-wrapper .toolbar.toolbar-divisor-3 > .toolbar-item:last-child {
871
border-right: 1px solid #bababa;
872
}
873
874
.mathbook-content ol li.custom-list-style-type {
875
list-style-type: none;
876
}
877
878
.mathbook-content ol li.custom-list-style-type:before {
879
content: attr(label) "\00A0\00A0 ";
880
}
881
882
/* The dl should behave more like the default on a narrow screen,
883
* with the term and definition on separate lines.
884
*/
885
886
.mathbook-content dl.description-list {
887
margin-left: 0;
888
}
889
890
.mathbook-content dl.description-list dt {
891
float: left;
892
clear: left;
893
text-align: right;
894
width: 18ex;
895
}
896
897
.mathbook-content dl.description-list dd {
898
margin-left: 22ex;
899
}
900
901
.mathbook-content dl.description-list dd:after {
902
content: "";
903
display: block;
904
clear: left;
905
}
906
907
.mathbook-content dl.description-list-narrow {
908
margin-left: 0;
909
}
910
.mathbook-content dl.description-list-narrow dt {
911
float: left;
912
clear: left;
913
text-align: right;
914
width: 8ex;
915
}
916
.mathbook-content dl.description-list-narrow dd {
917
margin-left: 12ex;
918
}
919
920
/*
921
#toc ul li.listprefix {
922
list-style-type: none;
923
display: inline-block;
924
}
925
926
#toc ul li.listprefix:before {
927
content: attr(label) "\00A0\00A0 ";
928
display: inline-block;
929
}
930
*/
931
932
.mathbook-content .knowl .definition-like:last-child, .mathbook-content .knowl .theorem-like:last-child, .mathbook-content .knowl .remark-like:last-child, .mathbook-content .knowl .example-like:last-child, .mathbook-content .knowl .exercise-like:last-child, .mathbook-content .knowl .aside-like:last-child {
933
margin-bottom: 0.3em;
934
}
935
936
.mathbook-content a {
937
color: inherit;
938
}
939
940
/* to stop things being blue when rendering MathJax with SVG */
941
a.mjx-svg-href {
942
fill: inherit;
943
stroke: inherit;
944
}
945
946
.floatnav {
947
margin-top: 8px;
948
margin-left: 50px;
949
}
950
951
.floatnav a {
952
text-decoration: none;
953
padding-left: 3px;
954
/*
955
* omitted, because we put a space in the source
956
padding-right: 3px;
957
*/
958
margin-right: -1px;
959
color: inherit;
960
}
961
962
.floatnav a:hover {
963
background: #eeaaff;
964
}
965
966
.mathbook-content .unselectable { /* from Alex Jordan */
967
-webkit-touch-callout: none; /* iOS Safari */
968
-webkit-user-select: none; /* Chrome/Safari/Opera */
969
-khtml-user-select: none; /* Konqueror */
970
-moz-user-select: none; /* Firefox */
971
-ms-user-select: none; /* Internet Explorer/Edge */
972
user-select: none; /* Non-prefixed version, currently
973
not supported by any browser */
974
}
975
976
/* Adapted from William Hammond (attributed to David Carlisle) */
977
/* "mathjax-users" Google Group, 2015-12-27 */
978
979
.mathbook-content .latex-logo {font-family: "PT Serif", "Times New Roman", Times, serif;}
980
981
.mathbook-content .latex-logo .A {font-size: 75%; text-transform: uppercase; vertical-align: .5ex;
982
margin-left: -.48em; margin-right: -.2em;}
983
984
.mathbook-content .latex-logo .E {vertical-align:-.5ex; text-transform: uppercase;
985
margin-left: -.18em; margin-right: -.12em}
986
987
.mathbook-content .posterior {
988
margin-bottom: 1.25em;
989
}
990
991
.mathbook-content .fillin {
992
display: inline-block;
993
border-bottom-style: solid;
994
border-width: 1px;
995
margin-right: 0.1em;
996
margin-bottom: -0.25em;
997
}
998
999
.mathbook-content .exercisegroup {
1000
margin-bottom: 1.0em;
1001
}
1002
.mathbook-content .exercisegroup article.exercise-like p {
1003
margin: 0;
1004
}
1005
.mathbook-content .exercisegroup article.exercise-like .heading {
1006
margin: 0;
1007
}
1008
.mathbook-content .exercisegroup .conclusion .heading {
1009
margin-top: 0.5em;
1010
}
1011
.mathbook-content .exercisegroup .hidden-knowl-wrapper {
1012
margin: 0;
1013
}
1014
.mathbook-content .exercisegroup .exercise-like .heading + p:after {
1015
margin: 0;
1016
}
1017
.mathbook-content .exercisegroup .introduction .heading + p:last-child {
1018
margin-bottom: 0.5em;
1019
}
1020
1021
/* for titles on APEX WW exercises, but should make sense for other exercises */
1022
.mathbook-content .exercise-like .heading {
1023
font-weight: normal;
1024
font-size: inherit;
1025
}
1026
1027
.mathbook-content .exercisegroup article.exercise-like {
1028
margin-left: 2em;
1029
margin-bottom: 0.5em;
1030
}
1031
1032
.mathbook-content .exercisegroup article.exercise-like:not(:first-child) {
1033
margin-top: 0em;
1034
}
1035
1036
.mathbook-content .exercisegroup article.conclusion {
1037
margin-left: 1.5em;
1038
}
1039
1040
1041
.mathbook-content .exercisegroup .exercisegroup-exercises {
1042
width: 100%;
1043
display:inline-flex;
1044
flex-direction:row;
1045
flex-wrap:wrap;
1046
justify-content:flex-start;
1047
align-items:flex-start;
1048
align-content:flex-start;
1049
}
1050
1051
.mathbook-content .exercisegroup .exercisegroup-exercises.cols1 {
1052
display:inline;
1053
}
1054
1055
.mathbook-content .exercisegroup .exercisegroup-exercises.cols1 .knowl-output {
1056
display: block;
1057
}
1058
1059
.mathbook-content .exercisegroup .exercisegroup-exercises article.exercise-like {
1060
margin-top: 0;
1061
}
1062
1063
.mathbook-content .exercisegroup .cols1 article.exercise-like {flex-basis: calc(100% - 2em);}
1064
.mathbook-content .exercisegroup .cols2 article.exercise-like {flex-basis: calc(50% - 2em);}
1065
.mathbook-content .exercisegroup .cols3 article.exercise-like {flex-basis: calc(33.33% - 2em);}
1066
.mathbook-content .exercisegroup .cols4 article.exercise-like {flex-basis: calc(25% - 2em);}
1067
.mathbook-content .exercisegroup .cols5 article.exercise-like {flex-basis: calc(20% - 2em);}
1068
.mathbook-content .exercisegroup .cols6 article.exercise-like {flex-basis: calc(16.66% - 2em);}
1069
/*
1070
.mathbook-content .exercisegroup .cols3 article.exercise-like {flex-basis: calc(100% / 3 - 2em);}
1071
.mathbook-content .exercisegroup .cols6 article.exercise-like {flex-basis: calc(100% / 6 - 2em);}
1072
*/
1073
1074
1075
.mathbook-content .code-inline,
1076
.mathbook-content .code-block,
1077
.mathbook-content .console {
1078
font-family: "Inconsolata", monospace;
1079
}
1080
1081
.main .mathbook-content section h5.heading {
1082
line-height: 1.125em;
1083
}
1084
1085
.mathbook-content .sagecell_sessionOutput pre {
1086
font-family: 'Inconsolata';
1087
}
1088
1089
.mathbook-content .sagecell {
1090
margin-bottom: 1.25em;
1091
}
1092
1093
.mathbook-content .assemblage-like {
1094
border: solid 2px #1100AA;
1095
border-radius: 12px;
1096
padding: 10px;
1097
background-color: #f4f4fe;
1098
}
1099
1100
.mathbook-content .assemblage-like .heading {
1101
margin-top: 0;
1102
}
1103
1104
.mathbook-content .assemblage-like + .assemblage-like {
1105
margin-top: 3ex;
1106
}
1107
1108
.mathbook-content .booktitle {
1109
font-style: oblique;
1110
}
1111
1112
.mathbook-content .definition-like > h5.heading .type:last-child:after, .mathbook-content .theorem-like > h5.heading .type:last-child:after, .mathbook-content .remark-like > h5.heading .type:last-child:after, .mathbook-content .example-like > h5.heading .type:last-child:after, .mathbook-content .exercise-like > h5.heading .type:last-child:after, .mathbook-content .aside-like > h5.heading .type:last-child:after, .mathbook-content .definition-like > h5.heading .codenumber:last-child:after, .mathbook-content .theorem-like > h5.heading .codenumber:last-child:after, .mathbook-content .remark-like > h5.heading .codenumber:last-child:after, .mathbook-content .example-like > h5.heading .codenumber:last-child:after, .mathbook-content .exercise-like > h5.heading .codenumber:last-child:after, .mathbook-content .aside-like > h5.heading .codenumber:last-child:after, .mathbook-content .definition-like > h5.heading .title:last-child:after, .mathbook-content .theorem-like > h5.heading .title:last-child:after, .mathbook-content .remark-like > h5.heading .title:last-child:after, .mathbook-content .example-like > h5.heading .title:last-child:after, .mathbook-content .exercise-like > h5.heading .title:last-child:after, .mathbook-content .aside-like > h5.heading .title:last-child:after, .mathbook-content .definition-like > header > h5.heading .type:last-child:after, .mathbook-content .theorem-like > header > h5.heading .type:last-child:after, .mathbook-content .remark-like > header > h5.heading .type:last-child:after, .mathbook-content .example-like > header > h5.heading .type:last-child:after, .mathbook-content .exercise-like > header > h5.heading .type:last-child:after, .mathbook-content .aside-like > header > h5.heading .type:last-child:after, .mathbook-content .definition-like > header > h5.heading .codenumber:last-child:after, .mathbook-content .theorem-like > header > h5.heading .codenumber:last-child:after, .mathbook-content .remark-like > header > h5.heading .codenumber:last-child:after, .mathbook-content .example-like > header > h5.heading .codenumber:last-child:after, .mathbook-content .exercise-like > header > h5.heading .codenumber:last-child:after, .mathbook-content .aside-like > header > h5.heading .codenumber:last-child:after, .mathbook-content .definition-like > header > h5.heading .title:last-child:after, .mathbook-content .theorem-like > header > h5.heading .title:last-child:after, .mathbook-content .remark-like > header > h5.heading .title:last-child:after, .mathbook-content .example-like > header > h5.heading .title:last-child:after, .mathbook-content .exercise-like > header > h5.heading .title:last-child:after, .mathbook-content .aside-like > header > h5.heading .title:last-child:after {
1113
content: ".\2009 ";
1114
}
1115
1116
.mathbook-content a .definition-like > h5.heading .type:last-child:after, .mathbook-content a .theorem-like > h5.heading .type:last-child:after, .mathbook-content a .remark-like > h5.heading .type:last-child:after, .mathbook-content a .example-like > h5.heading .type:last-child:after, .mathbook-content a .exercise-like > h5.heading .type:last-child:after, .mathbook-content a .aside-like > h5.heading .type:last-child:after, .mathbook-content a .definition-like > h5.heading .codenumber:last-child:after, .mathbook-content a .theorem-like > h5.heading .codenumber:last-child:after, .mathbook-content a .remark-like > h5.heading .codenumber:last-child:after, .mathbook-content a .example-like > h5.heading .codenumber:last-child:after, .mathbook-content a .exercise-like > h5.heading .codenumber:last-child:after, .mathbook-content a .aside-like > h5.heading .codenumber:last-child:after, .mathbook-content a .definition-like > h5.heading .title:last-child:after, .mathbook-content a .theorem-like > h5.heading .title:last-child:after, .mathbook-content a .remark-like > h5.heading .title:last-child:after, .mathbook-content a .example-like > h5.heading .title:last-child:after, .mathbook-content a .exercise-like > h5.heading .title:last-child:after, .mathbook-content a .aside-like > h5.heading .title:last-child:after, .mathbook-content a .definition-like > header > h5.heading .type:last-child:after, .mathbook-content a .theorem-like > header > h5.heading .type:last-child:after, .mathbook-content a .remark-like > header > h5.heading .type:last-child:after, .mathbook-content a .example-like > header > h5.heading .type:last-child:after, .mathbook-content a .exercise-like > header > h5.heading .type:last-child:after, .mathbook-content a .aside-like > header > h5.heading .type:last-child:after, .mathbook-content a .definition-like > header > h5.heading .codenumber:last-child:after, .mathbook-content a .theorem-like > header > h5.heading .codenumber:last-child:after, .mathbook-content a .remark-like > header > h5.heading .codenumber:last-child:after, .mathbook-content a .example-like > header > h5.heading .codenumber:last-child:after, .mathbook-content a .exercise-like > header > h5.heading .codenumber:last-child:after, .mathbook-content a .aside-like > header > h5.heading .codenumber:last-child:after, .mathbook-content a .definition-like > header > h5.heading .title:last-child:after, .mathbook-content a .theorem-like > header > h5.heading .title:last-child:after, .mathbook-content a .remark-like > header > h5.heading .title:last-child:after, .mathbook-content a .example-like > header > h5.heading .title:last-child:after, .mathbook-content a .exercise-like > header > h5.heading .title:last-child:after, .mathbook-content a .aside-like > header > h5.heading .title:last-child:after {
1117
content: "";
1118
}
1119
1120
/* FOr exercises, etc, hidden in knowls */
1121
.mathbook-content a .definition-like > h5.heading .codenumber:not(:empty)::after, .mathbook-content a .theorem-like > h5.heading .codenumber:not(:empty)::after, .mathbook-content a .remark-like > h5.heading .codenumber:not(:empty)::after, .mathbook-content a .example-like > h5.heading .codenumber:not(:empty)::after, .mathbook-content a .exercise-like > h5.heading .codenumber:not(:empty)::after, .mathbook-content a .aside-like > h5.heading .codenumber:not(:empty)::after, .mathbook-content a .theorem-like > header > h5.heading .codenumber:not(:empty)::after, .mathbook-content a .remark-like > header > h5.heading .codenumber:not(:empty)::after, .mathbook-content a .example-like > header > h5.heading .codenumber:not(:empty)::after, .mathbook-content a .exercise-like > header > h5.heading .codenumber:not(:empty)::after, .mathbook-content a .aside-like > header > h5.heading .codenumber:not(:empty)::after {
1122
content: ": \2009";
1123
}
1124
1125
.mathbook-content .hiddenproof > .heading .type:after, .mathbook-content .hiddenproof > header > .heading .type:after {
1126
content: "";
1127
}
1128
1129
.mathbook-content .exercise-like > h5.heading .codenumber:not(:empty):after {
1130
content: ".\2009 ";
1131
}
1132
1133
1134
/* these failed to solve the problem of extra space to the left
1135
* of a knowl that starts a line
1136
*
1137
.mathbook-content [knowl] {
1138
padding-left: 0;
1139
}
1140
.mathbook-content [knowl]:hover {
1141
padding-left: 0;
1142
}
1143
.mathbook-content .active[knowl], .mathbook-content [knowl]:active {
1144
padding-left: 0;
1145
}
1146
1147
.mathbook-content [knowl]::before {
1148
content: "\2002";
1149
}
1150
1151
1152
*/
1153
1154
/* these were put into the main scss
1155
1156
.mathbook-content .hidden-knowl-wrapper > [knowl], .mathbook-content .hidden-knowl-wrapper > [knowl]:hover, .mathbook-content .hidden-knowl-wrapper > .active[knowl] {
1157
padding-left: 2px;
1158
padding-right: 2px;
1159
}
1160
1161
.mathbook-content .hidden-knowl-wrapper > [knowl]::after, .mathbook-content .hidden-knowl-wrapper > [knowl]:hover::after, .mathbook-content .hidden-knowl-wrapper > .active[knowl]::after {
1162
left: 1px;
1163
}
1164
1165
.mathbook-content [knowl], .mathbook-content [knowl]:hover, .mathbook-content .active[knowl] {
1166
padding-left: 1px;
1167
padding-right: 2px;
1168
}
1169
1170
.mathbook-content [knowl]::after, .mathbook-content [knowl]:hover::after, .mathbook-content .active[knowl]::after {
1171
left: 1px;
1172
}
1173
1174
*/
1175
1176
/* these were taken from the local add-on.css.
1177
* need to check if the are needed.
1178
*/
1179
1180
body, html body { background: #fff; }
1181
1182
figure {
1183
margin-top: 10px;
1184
}
1185
1186
.mathbook-content img {
1187
display: inline-block;
1188
margin-left: auto;
1189
margin-right: auto;
1190
}
1191
1192
.mathbook-content img.cs {
1193
1194
display: block;
1195
margin-top: 20px;
1196
margin-bottom: 20px;
1197
margin-left: auto;
1198
margin-right: auto;
1199
}
1200
1201
.mathbook-content img.cs.svg {
1202
/* transform: scale(1.3);
1203
*/
1204
}
1205
1206
img:not(.cs) {
1207
max-width: 550px;
1208
}
1209
1210
.mathbook-content table tr td img {
1211
max-width: 200px;
1212
margin-right: 30px;
1213
}
1214
1215
.mathbook-content table tr td.lines {
1216
white-space: nowrap;
1217
}
1218
1219
p+ img.cs {
1220
margin-top: 0;
1221
}
1222
1223
figure img {
1224
display: block;
1225
margin-left: auto;
1226
margin-right: auto;
1227
max-width: 550px;
1228
}
1229
1230
figure img + img {
1231
margin-top: 30px;
1232
}
1233
1234
figure.wrap img {
1235
width: 250px;
1236
}
1237
1238
div.center img {
1239
display: block;
1240
margin-left: auto;
1241
margin-right: auto;
1242
max-width: 550px;
1243
}
1244
1245
div.center + div.center > img {
1246
margin-top: 60px;
1247
}
1248
1249
div.center > img + img {
1250
margin-top: 60px;
1251
}
1252
1253
figure table {
1254
margin-left: auto;
1255
margin-right: auto;
1256
}
1257
1258
.caption {
1259
margin-top: 10px;
1260
margin-left: auto;
1261
margin-right: auto;
1262
font-size: 100%;
1263
text-align: center;
1264
}
1265
1266
1267
figure.wrap {
1268
float: right;
1269
margin-right: 0;
1270
margin-left: 30px;
1271
}
1272
1273
figure figcaption.wrap {
1274
margin: 10px;
1275
font-size: 100%;
1276
text-align: center;
1277
}
1278
1279
figure img.wrap {
1280
float: right;
1281
margin: 0;
1282
}
1283
1284
1285
.caption .counter:after { content: " ";}
1286
1287
/* above repeated for captions outside figures */
1288
1289
.caption .heading {
1290
font-weight: bold;
1291
}
1292
1293
.caption .heading:after { content: " ";}
1294
1295
.caption .counter {
1296
font-weight: bold;
1297
}
1298
1299
figcaption .counter:after { content: " ";}
1300
1301
div.quote {
1302
padding-left: 40px;
1303
padding-right: 10px;
1304
margin-bottom: 1em;
1305
}
1306
1307
.minipage + .minipage {
1308
display: inline-block;
1309
}
1310
1311
code.inline {
1312
background: none;
1313
border: none;
1314
}
1315
1316
/* sup knowls are used for footnotes */
1317
sup [knowl] {
1318
padding: 0px 0px 0px 3px;
1319
}
1320
1321
sup .active[knowl] {
1322
padding: 0px 0px 0px 3px;
1323
}
1324
1325
sup [knowl]:hover {
1326
padding: 0px 0px 0px 3px;
1327
}
1328
1329
.mathbook-content .proof > .heading:after {
1330
content: ".";
1331
}
1332
1333
/* new "L" styling for definitions, theorems, etc
1334
*/
1335
1336
/* in main css
1337
article.proof {
1338
padding-right: 1.25em;
1339
border-right: 1px dotted #aaa;
1340
}
1341
1342
article.proof:after {
1343
content:'';
1344
border-bottom: 1px dotted #aaa;
1345
display: block;
1346
margin-left: auto;
1347
margin-right: -1.25em;
1348
width: 1.5em;
1349
}
1350
*/
1351
1352
figure pre.prettyprint {
1353
margin-top: 0;
1354
padding-left: 15px;
1355
border-left: 1px solid #aaa;
1356
}
1357
1358
figure pre.prettyprint:before {
1359
content:'';
1360
border-top: 1px solid #aaa;
1361
display: block;
1362
margin-right: auto;
1363
margin-left: -15px;
1364
padding-bottom: 0.25em;
1365
width: 2.5em;
1366
}
1367
1368
1369
article.example-like {
1370
padding-left: 6px;
1371
border-left: 1px solid #569;
1372
}
1373
1374
article.example-like:after {
1375
content:'';
1376
border-bottom: 1px solid #569;
1377
display: block;
1378
margin-right: auto;
1379
margin-left: -6px;
1380
padding-top: 0.25em;
1381
width: 1.5em;
1382
}
1383
1384
.mathbook-content article.example-like > *:last-child {
1385
margin-bottom: 0;
1386
}
1387
.mathbook-content article.example-like > *:last-child::after {
1388
margin-bottom: 0;
1389
}
1390
.mathbook-content article.example-like + .posterior {
1391
margin-top: -0.75em;
1392
}
1393
1394
.mathbook-content article.proof > *:last-child {
1395
margin-bottom: 0;
1396
}
1397
.mathbook-content article.proof > *:last-child::after {
1398
margin-bottom: 0;
1399
}
1400
1401
article.definition-like {
1402
padding-right: 6px;
1403
border-right: 2px solid #956;
1404
}
1405
1406
article.definition-like:after {
1407
content:'';
1408
border-bottom: 2px solid #956;
1409
display: block;
1410
margin-left: auto;
1411
margin-right: -6px;
1412
padding-top: 0.25em;
1413
width: 1.5em;
1414
}
1415
1416
.mathbook-content article.definition-like *:last-child {
1417
margin-bottom: 0;
1418
}
1419
.mathbook-content article.definition-like *:last-child::after {
1420
margin-bottom: 0;
1421
}
1422
1423
article.theorem-like {
1424
padding-right: 6px;
1425
border-right: 1px solid #66a;
1426
}
1427
1428
article.theorem-like:after {
1429
content:'';
1430
border-bottom: 1px solid #66a;
1431
display: block;
1432
margin-left: auto;
1433
margin-right: -6px;
1434
padding-top: 0.25em;
1435
width: 1.5em;
1436
}
1437
1438
.mathbook-content article.theorem-like *:last-child {
1439
margin-bottom: 0;
1440
}
1441
.mathbook-content article.theorem-like *:last-child::after {
1442
margin-bottom: 0;
1443
}
1444
1445
article.remark-like {
1446
padding-right: 6px;
1447
border-right: 1px solid #aaa;
1448
}
1449
1450
article.remark-like:after {
1451
content:'';
1452
border-bottom: 1px solid #aaa;
1453
display: block;
1454
margin-left: auto;
1455
margin-right: -6px;
1456
padding-top: 0.25em;
1457
width: 1.5em;
1458
}
1459
1460
.mathbook-content article.remark-like *:last-child {
1461
margin-bottom: 0;
1462
}
1463
.mathbook-content article.remark-like *:last-child::after {
1464
margin-bottom: 0;
1465
}
1466
1467
.mathbook-content article.aside-like *:last-child {
1468
margin-bottom: 0;
1469
}
1470
.mathbook-content article.aside-like *:last-child::after {
1471
margin-bottom: 0;
1472
}
1473
.mathbook-content .aside-like {
1474
margin-bottom: 1.25em;
1475
}
1476
1477
1478
/* borders above should not appear in a knowl ref
1479
or when the example is created as a knowl */
1480
1481
.knowl article.example-like {
1482
padding-left: 0;
1483
border-left: none;
1484
}
1485
a > article.example-like {
1486
padding-left: 0;
1487
border-left: none;
1488
}
1489
1490
.knowl article.example-like:after {
1491
content:'';
1492
border-bottom: none;
1493
display: inline;
1494
margin-left: 0;
1495
margin-right: 0;
1496
width: 0;
1497
}
1498
a > article.example-like:after {
1499
content:'';
1500
border-bottom: none;
1501
display: inline;
1502
margin-left: 0;
1503
margin-right: 0;
1504
width: 0;
1505
}
1506
1507
/* this is helpful in a knowl
1508
.knowl figure pre.prettyprint {
1509
padding-left: 15px;
1510
border-left: none;
1511
}
1512
1513
.knowl figure pre.prettyprint:before {
1514
content:'';
1515
border-top: none;
1516
display: block;
1517
margin-right: 0;
1518
margin-left: 0;
1519
padding-bottom: 0;
1520
width: 0;
1521
}
1522
*/
1523
1524
.knowl article.definition-like {
1525
padding-right: 0;
1526
border-right: none;
1527
}
1528
1529
.knowl article.definition-like:after {
1530
content:'';
1531
border-bottom: none;
1532
display: inline;
1533
margin-left: 0;
1534
margin-right: 0;
1535
width: 0;
1536
}
1537
1538
.knowl article.theorem-like {
1539
padding-right: 0;
1540
border-right: none;
1541
}
1542
1543
.knowl article.theorem-like:after {
1544
content:'';
1545
border-bottom: none;
1546
display: inline;
1547
margin-left: 0;
1548
margin-right: 0;
1549
width: 0;
1550
}
1551
1552
.knowl article.remark-like {
1553
padding-right: 0;
1554
border-right: none;
1555
}
1556
1557
.knowl article.remark-like:after {
1558
content:'';
1559
border-bottom: none;
1560
display: inline;
1561
margin-left: 0;
1562
margin-right: 0;
1563
width: 0;
1564
}
1565
1566
/*
1567
article.exercise-like span.hint {
1568
}
1569
*/
1570
1571
.mathbook-content article.exercise-like .hint [knowl]{
1572
font-weight: lighter;
1573
}
1574
1575
.mathbook-content .exercise-like .hint {
1576
display: block;
1577
margin-top: -0.75em;
1578
}
1579
1580
.mathbook-content .exercise-like .introduction {
1581
display: inline;
1582
}
1583
.mathbook-content .exercise-like .introduction .heading {
1584
display: inline;
1585
}
1586
.mathbook-content .exercise-like .introduction p {
1587
display: inline;
1588
}
1589
.mathbook-content .exercise-like .introduction::after {
1590
content: "";
1591
display: block;
1592
margin-bottom: 0.5em;
1593
}
1594
1595
/*
1596
.mathbook-content .example-like .hint {
1597
}
1598
*/
1599
1600
.example-like, .exercise-like {
1601
margin: 1.25em 0;
1602
}
1603
1604
/* if hants and solutions are in .posterior, then
1605
* some of the above styling does not apply */
1606
1607
.mathbook-content article.exercise-like + .posterior {
1608
margin-top: -0.75em;
1609
}
1610
1611
1612
.mathbook-content article.example-like .hint {
1613
display: block;
1614
margin-top: -0.75em;
1615
}
1616
1617
.mathbook-content article.example-like .hint [knowl]{
1618
font-weight: lighter;
1619
}
1620
1621
1622