Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
allendowney
GitHub Repository: allendowney/thinkbayes2
Path: blob/master/book/custom.css
1901 views
1
2
div#main {
3
display: grid;
4
grid-template-columns: 1fr;
5
grid-auto-rows: minmax(100px, auto);
6
grid-gap: 10px;
7
gap: 10px;
8
}
9
div#colorbar {
10
display: none;
11
/* background: #DC143C; */
12
}
13
div#content {
14
min-width: 0;
15
padding: 10px;
16
}
17
div#content p:first-of-type {
18
margin-top: 0;
19
}
20
h1, h2, h3, h4, h5, h6 {
21
margin-bottom: 0;
22
}
23
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
24
display: block;
25
}
26
27
img {
28
max-width: 100%
29
}
30
pre.verbatim {
31
overflow-x: auto;
32
max-width: 100%;
33
}
34
35
/* navarrow links */
36
img.navarrow {
37
padding: 0 5px;
38
text-decoration: none;
39
color: #DC143C;
40
}
41
42
body > a, body > a:link {
43
color: #DC143C;
44
}
45
body > a:hover {
46
text-decoration: underline;
47
}
48
49
body div#content a, body div#sidebar a {
50
text-decoration: underline;
51
}
52
53
img.prevarrow:after {
54
content: " 🡄"
55
}
56
img.uparrow:after {
57
content: " 🡅"
58
}
59
img.nextarrow:after {
60
content: " 🡆"
61
}
62
/* end navarrow links */
63
64
div.notice {
65
background-color: #f0f0f0;
66
padding: 8px;
67
border: 1px solid #d0d0d0;
68
margin-bottom: 12px;
69
}
70
71
@media (max-width: 800px) {
72
body > hr:first-of-type {
73
color: #DC143C;
74
background-color: #DC143C;
75
height: 12px;
76
margin-bottom: 0px;
77
border: 0;
78
}
79
div#content {
80
padding: 10px 2px;
81
}
82
}
83
84
@media (min-width: 800px) {
85
hr { border: 0; }
86
div#colorbar {
87
display: block;
88
}
89
div#main {
90
grid-template-columns: 1fr 5fr 200px;
91
}
92
div#content {
93
max-width: 600px;
94
}
95
div#sidebar {
96
max-width: 200px;
97
padding: 0px 10px;
98
}
99
img.prevarrow {
100
margin-left: 15%;
101
}
102
}
103
104