-
Notifications
You must be signed in to change notification settings - Fork 12
/
kindle.css
103 lines (92 loc) · 2.38 KB
/
kindle.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
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
.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;
}
/* default behavior is excessive space below display math. */
/* should the selector be .mjpage__block? */
.ptx-content .mjpage + p {
margin-top: -0.5em !important;
}
.ptx-content .mjpage {
margin-bottom: 0 !important;
}
/* align inline math baseline */
.ptx-content .mjpage {
vertical-align: -.68ex;
}
.ptx-content .solution-like > .type {
font-weight: bold;
}
.ptx-content .solution-like .type + p {
display: inline;
}
/* Greg's L was a line too long */
.ptx-content article.theorem-like::after,
.ptx-content article.definition-like::after,
.ptx-content article.example-like::after,
.ptx-content article.project-like::after,
.ptx-content article.remark-like::after,
.ptx-content article.computation-like::after {
margin-top: -1em;
}
.ptx-content .mjpage {
vertical-align: -.68ex;
}
.ptx-content section {
padding-top: 0 !important;
}
.ptx-content .subsection {
margin-top: 1.5em !important;
}
/* 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 article > .heading,
.ptx-content section > .heading {
display: block;
margin-top: 0;
break-after: avoid !important;
}
.ptx-content section > .heading + p,
.ptx-content section article > .heading + p,
.ptx-content section article > .heading + .introduction {
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;
}