glyph 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.textile +37 -10
- data/README.textile +16 -11
- data/VERSION +1 -1
- data/book/config.yml +3 -5
- data/book/document.glyph +6 -4
- data/book/lib/layouts/bookindex.glyph +120 -123
- data/book/lib/layouts/bookpage.glyph +121 -123
- data/book/lib/layouts/project.glyph +3 -6
- data/book/lib/tasks/tasks.rake +6 -9
- data/book/text/changelog.glyph +9 -0
- data/book/text/compiling/programmatic_usage.glyph +1 -1
- data/book/text/extending/output_format.glyph +9 -12
- data/book/text/introduction.glyph +0 -7
- data/book/text/macros/macros_core.glyph +1 -1
- data/book/text/macros/macros_inline.glyph +1 -1
- data/book/text/text_editing/esc_quot.glyph +6 -6
- data/book/text/text_editing/stylesheets.glyph +1 -1
- data/config.yml +2 -0
- data/glyph.gemspec +25 -19
- data/lib/glyph/document.rb +23 -24
- data/lib/glyph/macro.rb +1 -2
- data/macros/html/structure.rb +3 -3
- data/macros/html5/block.rb +1 -1
- data/spec/files/test.sass +2 -0
- data/spec/files/test.scss +5 -0
- data/spec/lib/macro_spec.rb +3 -3
- data/spec/macros/filters_spec.rb +3 -2
- data/spec/macros/html5_spec.rb +1 -1
- data/spec/macros/macros_spec.rb +9 -7
- data/styles/coderay.css +47 -119
- data/styles/coderay.scss +43 -0
- data/styles/default.css +203 -217
- data/styles/default.scss +258 -0
- data/styles/definitions.scss +20 -0
- data/styles/generate +3 -0
- data/styles/pagination.css +124 -188
- data/styles/pagination.scss +214 -0
- data/tasks/generate.rake +1 -1
- metadata +27 -21
data/styles/default.scss
ADDED
@@ -0,0 +1,258 @@
|
|
1
|
+
@import "definitions.scss";
|
2
|
+
|
3
|
+
* {
|
4
|
+
border: none;
|
5
|
+
font-family: inherit;
|
6
|
+
font-size: 100%;
|
7
|
+
font-style: inherit;
|
8
|
+
margin: 0;
|
9
|
+
padding: 0; }
|
10
|
+
|
11
|
+
html {
|
12
|
+
background: #fff; }
|
13
|
+
|
14
|
+
ol, ul {
|
15
|
+
margin: 0.3em 0; }
|
16
|
+
|
17
|
+
p {
|
18
|
+
margin: 1em 0; }
|
19
|
+
|
20
|
+
table {
|
21
|
+
border-collapse: collapse;
|
22
|
+
border-spacing: 0;
|
23
|
+
margin: auto;
|
24
|
+
margin-top: 1em; }
|
25
|
+
|
26
|
+
body {
|
27
|
+
line-height: 1.2em;
|
28
|
+
margin: 0;
|
29
|
+
padding: 0;
|
30
|
+
padding: 0 1em;
|
31
|
+
text-align: justify; }
|
32
|
+
|
33
|
+
/* Structure */
|
34
|
+
|
35
|
+
.halftitlepage {
|
36
|
+
margin: auto;
|
37
|
+
text-align: center; }
|
38
|
+
|
39
|
+
.titlepage {
|
40
|
+
margin: auto;
|
41
|
+
text-align: center;
|
42
|
+
h1 {
|
43
|
+
font-size: 2.5em;
|
44
|
+
font-weight: bold;
|
45
|
+
line-height: 1.5em;
|
46
|
+
margin-bottom: 0.2em; } }
|
47
|
+
|
48
|
+
.halftitlepage {
|
49
|
+
h1 {
|
50
|
+
font-size: 2.5em;
|
51
|
+
font-weight: bold;
|
52
|
+
line-height: 1.5em;
|
53
|
+
margin-bottom: 0.2em; }
|
54
|
+
h2 {
|
55
|
+
font-size: 1.1em;
|
56
|
+
font-style: italic;
|
57
|
+
font-weight: bold;
|
58
|
+
line-height: 1.2em;
|
59
|
+
margin-bottom: 0.5em;
|
60
|
+
prince-bookmark-level: none; } }
|
61
|
+
|
62
|
+
.titlepage h2 {
|
63
|
+
font-size: 1.1em;
|
64
|
+
font-style: italic;
|
65
|
+
font-weight: bold;
|
66
|
+
line-height: 1.2em;
|
67
|
+
margin-bottom: 0.5em;
|
68
|
+
prince-bookmark-level: none; }
|
69
|
+
|
70
|
+
.author {
|
71
|
+
font-size: 1em; }
|
72
|
+
|
73
|
+
.pubdate {
|
74
|
+
font-size: 0.8em; }
|
75
|
+
|
76
|
+
li {
|
77
|
+
list-style-type: square;
|
78
|
+
margin: 0.4em 0;
|
79
|
+
margin-left: 1.5em; }
|
80
|
+
|
81
|
+
ol li {
|
82
|
+
list-style-type: decimal; }
|
83
|
+
|
84
|
+
.contents li {
|
85
|
+
list-style-type: none; }
|
86
|
+
|
87
|
+
img {
|
88
|
+
margin: 0 5px;
|
89
|
+
padding: 2px; }
|
90
|
+
|
91
|
+
dt {
|
92
|
+
font-weight: bold;
|
93
|
+
margin-top: 1em; }
|
94
|
+
|
95
|
+
dd {
|
96
|
+
font-style: italic; }
|
97
|
+
|
98
|
+
blockquote {
|
99
|
+
margin: 1em 1em;
|
100
|
+
font-style: italic;
|
101
|
+
color: #121212; }
|
102
|
+
|
103
|
+
table {
|
104
|
+
@include standard-border; }
|
105
|
+
|
106
|
+
th {
|
107
|
+
background: #EEE; }
|
108
|
+
|
109
|
+
tr, td, th {
|
110
|
+
padding: 5px; }
|
111
|
+
|
112
|
+
td, tr {
|
113
|
+
@include standard-border; }
|
114
|
+
|
115
|
+
sup {
|
116
|
+
font-size: 0.7em;
|
117
|
+
font-weight: bold;
|
118
|
+
margin-left: -0.4em; }
|
119
|
+
|
120
|
+
/* BLOCKS */
|
121
|
+
|
122
|
+
.center {
|
123
|
+
margin: auto;
|
124
|
+
text-align: center; }
|
125
|
+
|
126
|
+
.left {
|
127
|
+
margin: auto;
|
128
|
+
text-align: left; }
|
129
|
+
|
130
|
+
.right {
|
131
|
+
margin: auto;
|
132
|
+
text-align: center; }
|
133
|
+
|
134
|
+
.note, .important, .tip, .caution, .box {
|
135
|
+
@include standard-border;
|
136
|
+
display: block;
|
137
|
+
margin: 0.5em auto;
|
138
|
+
padding: 0 0.5em;
|
139
|
+
width: 600px;
|
140
|
+
background: #EEE;
|
141
|
+
color: #1F1F1F; }
|
142
|
+
|
143
|
+
.note>p, .important>p, .tip>p, .caution>p {
|
144
|
+
margin: 0;
|
145
|
+
padding: 0; }
|
146
|
+
|
147
|
+
.note-title {
|
148
|
+
font-weight: bold;
|
149
|
+
margin-right: 1em; }
|
150
|
+
|
151
|
+
.box-title {
|
152
|
+
display: block;
|
153
|
+
text-align: center;
|
154
|
+
font-weight: bold; }
|
155
|
+
|
156
|
+
.comment {
|
157
|
+
display: block;
|
158
|
+
border: 1px solid #004D00;
|
159
|
+
background: #7AFF7A;
|
160
|
+
padding: 3px;
|
161
|
+
margin: 1px;
|
162
|
+
.comment-pre {
|
163
|
+
color: #004D00; } }
|
164
|
+
|
165
|
+
.todo {
|
166
|
+
display: block;
|
167
|
+
border: 1px solid #990000;
|
168
|
+
background: #FF9999;
|
169
|
+
padding: 3px;
|
170
|
+
margin: 1px;
|
171
|
+
.todo-pre {
|
172
|
+
color: #990000; } }
|
173
|
+
|
174
|
+
/* TEXT */
|
175
|
+
|
176
|
+
body {
|
177
|
+
color: #000;
|
178
|
+
font-size: 1em; }
|
179
|
+
|
180
|
+
h2, section section h1, h1.toc-header {
|
181
|
+
display: block;
|
182
|
+
font-size: 2em;
|
183
|
+
font-weight: bold;
|
184
|
+
margin: 3em 0 1em 0; }
|
185
|
+
|
186
|
+
h3, section section section h1 {
|
187
|
+
font-size: 1.6em;
|
188
|
+
font-weight: bold;
|
189
|
+
margin: 3em 0 1em 0; }
|
190
|
+
|
191
|
+
h4, section section section section h1 {
|
192
|
+
font-size: 1.3em;
|
193
|
+
font-weight: bold;
|
194
|
+
margin: 3em 0 1em 0; }
|
195
|
+
|
196
|
+
h5, section section section section section h1 {
|
197
|
+
font-size: 1.2em;
|
198
|
+
font-weight: bold;
|
199
|
+
margin: 3em 0 1em 0; }
|
200
|
+
|
201
|
+
em {
|
202
|
+
font-style: italic; }
|
203
|
+
|
204
|
+
a {
|
205
|
+
color: $link-color;
|
206
|
+
text-decoration: none;
|
207
|
+
&:hover {
|
208
|
+
color: $link-hover-color; } }
|
209
|
+
|
210
|
+
pre > code {
|
211
|
+
@include codeblock; }
|
212
|
+
|
213
|
+
code {
|
214
|
+
font-size: 0.8em; }
|
215
|
+
|
216
|
+
span.line-numbers {
|
217
|
+
margin: 0;
|
218
|
+
padding: 3px; }
|
219
|
+
|
220
|
+
nav, .navigation {
|
221
|
+
display: block;
|
222
|
+
margin: 1em auto;
|
223
|
+
text-align: center;
|
224
|
+
@include standard-border; }
|
225
|
+
|
226
|
+
nav {
|
227
|
+
&.contents {
|
228
|
+
margin: auto;
|
229
|
+
text-align: left;
|
230
|
+
border: none; }
|
231
|
+
a {
|
232
|
+
margin: 1em; } }
|
233
|
+
|
234
|
+
.navigation a {
|
235
|
+
margin: 1em; }
|
236
|
+
|
237
|
+
nav.contents a {
|
238
|
+
margin: 0; }
|
239
|
+
|
240
|
+
mark {
|
241
|
+
font-weight: bolder;
|
242
|
+
font-style: italic;
|
243
|
+
background: none; }
|
244
|
+
|
245
|
+
td {
|
246
|
+
p, ul, ol {
|
247
|
+
margin: 0; } }
|
248
|
+
|
249
|
+
.topic {
|
250
|
+
margin: 2em auto; }
|
251
|
+
|
252
|
+
/* FONTS */
|
253
|
+
|
254
|
+
body {
|
255
|
+
font-family: "Gentium Book Basic", "Book Antiqua", "Times New Roman", "Serif"; }
|
256
|
+
|
257
|
+
code, pre {
|
258
|
+
font-family: "Droid Sans Mono", "Consolas", "Monaco", "Courier", "Monospace"; }
|
@@ -0,0 +1,20 @@
|
|
1
|
+
$border-color: #e6e6e6;
|
2
|
+
$link-color: #007BC4;
|
3
|
+
$link-hover-color: #005B91;
|
4
|
+
|
5
|
+
@mixin standard-border {
|
6
|
+
border: 1px solid $border-color;
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin codeblock {
|
10
|
+
-webkit-border-radius: 5px;
|
11
|
+
-moz-border-radius: 5px;
|
12
|
+
border-radius: 5px;
|
13
|
+
background-color: #222;
|
14
|
+
font-family: 'Courier New', 'Terminal', monospace;
|
15
|
+
color: #E6E0DB;
|
16
|
+
padding: 20px;
|
17
|
+
overflow: auto;
|
18
|
+
font-size: 0.8em;
|
19
|
+
margin: 20px 0 20px 0;
|
20
|
+
}
|
data/styles/generate
ADDED
data/styles/pagination.css
CHANGED
@@ -1,248 +1,184 @@
|
|
1
1
|
@page {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
@bottom {
|
9
|
-
}
|
2
|
+
size: A4;
|
3
|
+
margin: 40pt 30pt 40pt 30pt;
|
4
|
+
@top {
|
5
|
+
content: string(book-title) " - " string(chapter-title);
|
6
|
+
font-style: italic; }
|
7
|
+
|
8
|
+
@bottom {
|
9
|
+
content: counter(page, decimal); } }
|
10
10
|
|
11
11
|
@page frontmatter {
|
12
|
-
|
13
|
-
}
|
12
|
+
@bottom {
|
13
|
+
content: counter(page, lower-roman); } }
|
14
14
|
|
15
15
|
@page backmatter {
|
16
|
-
|
17
|
-
}
|
16
|
+
@bottom {
|
17
|
+
content: counter(page, decimal); } }
|
18
|
+
|
19
|
+
@page :first {
|
20
|
+
padding-top: 10%;
|
21
|
+
@top {
|
22
|
+
content: normal; }
|
18
23
|
|
19
|
-
@
|
20
|
-
|
21
|
-
@top { content: normal; }
|
22
|
-
@bottom { content: normal; }
|
23
|
-
}
|
24
|
+
@bottom {
|
25
|
+
content: normal; } }
|
24
26
|
|
25
27
|
ol.toc {
|
26
|
-
|
27
|
-
|
28
|
+
margin-left: 1.5em; }
|
29
|
+
|
28
30
|
.toc > li[class] {
|
29
|
-
|
30
|
-
}
|
31
|
+
font-weight: bold; }
|
31
32
|
.toc li {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
}
|
38
|
-
|
39
|
-
.
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
.titlepage h1, .halftitlepage h1 {
|
44
|
-
string-set: book-title content();
|
45
|
-
}
|
33
|
+
list-style-type: none;
|
34
|
+
margin-left: 0; }
|
35
|
+
.toc li a {
|
36
|
+
color: #000; }
|
37
|
+
.toc li a:hover {
|
38
|
+
color: #000; }
|
39
|
+
.toc li a::after {
|
40
|
+
content: leader(".") target-counter(attr(href), page); }
|
41
|
+
|
42
|
+
.titlepage h1, .halftitlepage h1 {
|
43
|
+
string-set: book-title content(); }
|
46
44
|
|
47
45
|
/* TOC Counters */
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
.toc>li[class~=appendix] {
|
55
|
-
counter-increment: appendix1;
|
56
|
-
counter-reset: toc2;
|
57
|
-
}
|
58
|
-
|
46
|
+
.toc > li[class~=chapter] {
|
47
|
+
counter-increment: toc1;
|
48
|
+
counter-reset: toc2; }
|
49
|
+
.toc > li[class~=appendix] {
|
50
|
+
counter-increment: appendix1;
|
51
|
+
counter-reset: toc2; }
|
59
52
|
.toc ol li[class] {
|
60
|
-
|
61
|
-
|
62
|
-
}
|
63
|
-
|
53
|
+
counter-increment: toc2;
|
54
|
+
counter-reset: toc3; }
|
64
55
|
.toc ol ol li[class] {
|
65
|
-
|
66
|
-
|
67
|
-
}
|
68
|
-
|
56
|
+
counter-increment: toc3;
|
57
|
+
counter-reset: toc4; }
|
69
58
|
.toc ol ol ol li[class] {
|
70
|
-
|
71
|
-
|
72
|
-
}
|
73
|
-
|
59
|
+
counter-increment: toc4;
|
60
|
+
counter-reset: toc5; }
|
74
61
|
.toc ol ol ol ol li[class] {
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
.toc>li[class~=
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
.toc>li[class~=appendix]::before {
|
84
|
-
content: counter(appendix1, upper-latin) ". ";
|
85
|
-
}
|
86
|
-
|
87
|
-
.toc>li[class] {
|
88
|
-
margin: 1em 0;
|
89
|
-
}
|
90
|
-
|
91
|
-
/* TOC Margins */
|
92
|
-
|
62
|
+
counter-increment: toc5; }
|
63
|
+
.toc > li[class~=chapter]::before {
|
64
|
+
content: counter(toc1) ". "; }
|
65
|
+
.toc > li[class~=appendix]::before {
|
66
|
+
content: counter(appendix1, upper-latin) ". "; }
|
67
|
+
.toc > li[class] {
|
68
|
+
margin: 1em 0; }
|
93
69
|
.toc ol li[class]::before {
|
94
|
-
|
95
|
-
}
|
96
|
-
|
70
|
+
margin-left: 1em; }
|
97
71
|
.toc ol ol li[class]::before {
|
98
|
-
|
99
|
-
}
|
100
|
-
|
72
|
+
margin-left: 2em; }
|
101
73
|
.toc ol ol ol li[class]::before {
|
102
|
-
|
103
|
-
}
|
104
|
-
|
74
|
+
margin-left: 3em; }
|
105
75
|
.toc ol ol ol ol li[class]::before {
|
106
|
-
|
107
|
-
}
|
108
|
-
|
109
|
-
/* TOC Numbers */
|
110
|
-
|
76
|
+
margin-left: 4em; }
|
111
77
|
.toc ol li[class~=frontmatter]::before {
|
112
|
-
|
113
|
-
}
|
114
|
-
|
78
|
+
content: " "; }
|
115
79
|
.toc ol li[class~=bodymatter]::before {
|
116
|
-
|
117
|
-
}
|
80
|
+
content: counter(toc1) "." counter(toc2) " "; }
|
118
81
|
.toc ol li[class~=appendix]::before {
|
119
|
-
|
120
|
-
}
|
121
|
-
|
82
|
+
content: counter(appendix1, upper-latin) "." counter(toc2) " "; }
|
122
83
|
.toc ol ol li[class~=bodymatter]::before {
|
123
|
-
|
124
|
-
}
|
84
|
+
content: counter(toc1) "." counter(toc2) "." counter(toc3) " "; }
|
125
85
|
.toc ol ol li[class~=appendix]::before {
|
126
|
-
|
127
|
-
}
|
128
|
-
|
86
|
+
content: counter(appendix1, upper-latin) "." counter(toc2) "." counter(toc3) " "; }
|
129
87
|
.toc ol ol ol li[class~=bodymatter]::before {
|
130
|
-
|
131
|
-
}
|
88
|
+
content: counter(toc1) "." counter(toc2) "." counter(toc3) "." counter(toc4) " "; }
|
132
89
|
.toc ol ol ol li[class~=appendix]::before {
|
133
|
-
|
134
|
-
}
|
135
|
-
|
90
|
+
content: counter(appendix1, upper-latin) "." counter(toc2) "." counter(toc3) "." counter(toc4) " "; }
|
136
91
|
.toc ol ol ol ol li[class~=bodymatter]::before {
|
137
|
-
|
138
|
-
}
|
92
|
+
content: counter(toc1) "." counter(toc2) "." counter(toc3) "." counter(toc4) "." counter(toc5) " "; }
|
139
93
|
.toc ol ol ol ol li[class~=appendix]::before {
|
140
|
-
|
141
|
-
}
|
94
|
+
content: counter(appendix1, upper-latin) "." counter(toc2) "." counter(toc3) "." counter(toc4) "." counter(toc5) " "; }
|
142
95
|
|
143
|
-
div.frontmatter{
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
div.backmatter{
|
148
|
-
page: backmatter;
|
149
|
-
}
|
96
|
+
div.frontmatter {
|
97
|
+
page: frontmatter; }
|
98
|
+
div.backmatter {
|
99
|
+
page: backmatter; }
|
150
100
|
|
151
101
|
.bodymatter h2::before, .bodymatter h1:before {
|
152
|
-
|
153
|
-
|
154
|
-
}
|
102
|
+
content: "Chapter " counter(h2, upper-roman) ": ";
|
103
|
+
counter-reset: footnote; }
|
155
104
|
|
156
|
-
.backmatter h2::before
|
157
|
-
|
158
|
-
}
|
105
|
+
.backmatter h2::before {
|
106
|
+
content: "Appendix " counter(a2, upper-latin) ": "; }
|
159
107
|
|
160
|
-
.bodymatter
|
161
|
-
|
162
|
-
|
108
|
+
.bodymatter section h1:before {
|
109
|
+
content: "Appendix " counter(a2, upper-latin) ": "; }
|
110
|
+
.bodymatter h3::before, .bodymatter section h1:before {
|
111
|
+
content: counter(h2) "." counter(h3) " "; }
|
163
112
|
|
164
|
-
.backmatter h3::before
|
165
|
-
|
166
|
-
}
|
113
|
+
.backmatter h3::before {
|
114
|
+
content: counter(a2, upper-latin) "." counter(h3) " "; }
|
167
115
|
|
116
|
+
.bodymatter section section h1:before {
|
117
|
+
content: counter(a2, upper-latin) "." counter(h3) " "; }
|
168
118
|
.bodymatter h4::before, .bodymatter section section h1:before {
|
169
|
-
|
170
|
-
}
|
119
|
+
content: counter(h2) "." counter(h3) "." counter(h4) " "; }
|
171
120
|
|
172
|
-
.backmatter h4::before
|
173
|
-
|
174
|
-
}
|
121
|
+
.backmatter h4::before {
|
122
|
+
content: counter(a2, upper-latin) "." counter(h3) "." counter(h4) " "; }
|
175
123
|
|
124
|
+
.bodymatter section section section h2:before {
|
125
|
+
content: counter(a2, upper-latin) "." counter(h3) "." counter(h4) " "; }
|
176
126
|
.bodymatter h5::before, .bodymatter section section section section h2:before {
|
177
|
-
|
178
|
-
}
|
127
|
+
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) " "; }
|
179
128
|
|
180
129
|
.backmatter h5::before, .bodymatter section section section section h2:before {
|
181
|
-
|
182
|
-
}
|
130
|
+
content: counter(a2, upper-latin) "." counter(h3) "." counter(h4) "." counter(h5) " "; }
|
183
131
|
|
184
|
-
h2, section h1 {
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
}
|
132
|
+
h2, section h1 {
|
133
|
+
padding-top: 2em;
|
134
|
+
string-set: chapter-title content();
|
135
|
+
page-break-before: always; }
|
189
136
|
|
190
137
|
.halftitlepage h2, .titlepage h2 {
|
191
|
-
|
192
|
-
}
|
138
|
+
page-break-before: avoid; }
|
193
139
|
|
194
|
-
.bodymatter h2, .bodymatter h1{
|
195
|
-
|
196
|
-
|
197
|
-
}
|
140
|
+
.bodymatter h2, .bodymatter h1 {
|
141
|
+
counter-increment: h2;
|
142
|
+
counter-reset: h3; }
|
198
143
|
|
199
|
-
.backmatter h2, .backmatter h1{
|
200
|
-
|
201
|
-
|
202
|
-
}
|
144
|
+
.backmatter h2, .backmatter h1 {
|
145
|
+
counter-increment: a2;
|
146
|
+
counter-reset: h3; }
|
203
147
|
|
204
148
|
.bodymatter h3, .backmatter h3, .bodymatter section h1, .backmatter section h1 {
|
205
|
-
|
206
|
-
|
207
|
-
}
|
149
|
+
counter-increment: h3;
|
150
|
+
counter-reset: h4; }
|
208
151
|
|
209
152
|
.bodymatter h4, .backmatter h4, .bodymatter section section h1, .backmatter section section h1 {
|
210
|
-
|
211
|
-
|
212
|
-
}
|
153
|
+
counter-increment: h4;
|
154
|
+
counter-reset: h5; }
|
213
155
|
|
214
156
|
.bodymatter h5, .backmatter h5, .bodymatter section section section h1, .backmatter section section section h1 {
|
215
|
-
|
216
|
-
}
|
157
|
+
counter-increment: h5; }
|
217
158
|
|
218
|
-
h1, h2, h3, h4, h5 {
|
219
|
-
|
159
|
+
h1, h2, h3, h4, h5 {
|
160
|
+
page-break-after: avoid; }
|
220
161
|
|
221
|
-
|
162
|
+
.box, .note, .important, .tip, .caution, .code {
|
163
|
+
page-break-inside: avoid; }
|
222
164
|
|
165
|
+
/* Footnotes */
|
223
166
|
@page {
|
224
|
-
|
225
|
-
|
226
|
-
}
|
227
|
-
}
|
167
|
+
@footnotes {
|
168
|
+
border-top: 1px solid #000; } }
|
228
169
|
|
229
170
|
.fn {
|
230
|
-
|
231
|
-
|
171
|
+
font-size: 85%;
|
172
|
+
margin-left: 1.5em;
|
232
173
|
display: prince-footnote;
|
233
|
-
counter-increment: footnote;
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
}
|
244
|
-
|
245
|
-
.fn::footnote-marker {
|
246
|
-
font-weight: bold;
|
247
|
-
margin-right: 0.5em;
|
248
|
-
}
|
174
|
+
counter-increment: footnote; }
|
175
|
+
.fn:footnote-call {
|
176
|
+
content: counter(footnote);
|
177
|
+
font-size: 85%;
|
178
|
+
vertical-align: super;
|
179
|
+
line-height: none;
|
180
|
+
font-weight: bold;
|
181
|
+
margin-left: 1pt; }
|
182
|
+
.fn:footnote-marker {
|
183
|
+
font-weight: bold;
|
184
|
+
margin-right: 0.5em; }
|