-
Notifications
You must be signed in to change notification settings - Fork 12
/
epub.css
58 lines (53 loc) · 1.33 KB
/
epub.css
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
.ptx-content.epub img {
display: block;
}
.ptx-content.epub .solutions {
margin-top: 1em;
}
.ptx-content.epub .solutions .solution .type,
.ptx-content.epub .solutions .answer .type {
font-family: "PT Serif", "Times New Roman", Times, serif;
font-weight: bold;
}
.ptx-content.epub .solutions .solution .type + .period,
.ptx-content.epub .solutions .answer .type + .period {
margin-right: 0.75em;
}
.ptx-content.epub .solutions .solution .type + p,
.ptx-content.epub .solutions .answer .type + p {
display: inline;
}
/* sage cell code goes in a pre. What else goes there? */
.ptx-content pre {
font-size: 95%;
padding-top: 0.3em;
padding-bottom: 0.5em;
padding-left: 0.5em;
background: #f0f0f0;
}
.ptx-content pre.code.input {
background: #f0f0ff;
}
.ptx-content pre.code.output {
background: #f0fff0;
}
/* these "break-(before/after) might not actually do anything */
.ptx-content section > .heading {
display: block;
margin-top: 0;
break-after: avoid !important;
}
.ptx-content section > .heading + p {
display: block;
break-before: avoid !important;
}
.ptx-content figcaption {
break-before: avoid !important;
}
.ptx-content figure .image-box,
.ptx-content figure .tabular-box {
break-after: avoid !important;
}
.ptx-content figure {
break-inside: avoid !important;
}