blob: ddcfb77287d5301157d80abe670f700e49f65ab2 (
plain)
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
|
@import "mixins.less";
@import "ebook/variables.less";
body {
font-family: sans-serif;
}
.pdf-footer {
margin-top: 20px;
padding-top: 10px;
border-top: 1px solid #eee;
color:#aaa;
.footer-pages-count {
float:right;
}
}
.pdf-header {
margin-top: 20px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
color: #aaa;
}
.page {
.markdown-content(#000, 1.6);
pre, code, blockquote, tr, img {
page-break-inside: avoid;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h1,
h2,
h3 {
page-break-after: avoid;
}
// Section and first titles
.section {
> h1, > h2, > h3 {
margin-top: 0px;
}
}
// Hide the title (only used to build PDF table of content)
.book-chapter {
display: none;
}
// First page: table of contents
&.page-toc {
}
// Glossary page
&.page-glossary {
.glossary {
margin-bottom: 40px;
h2 {
a, a:hover {
color: inherit;
text-decoration: none;
}
}
.glossary-index {
list-style: none;
margin: 0px;
padding: 0px;
li {
display: inline;
margin: 0px 8px;
white-space: nowrap;
}
}
}
}
}
|