25
25
background_color: ffffff
26
26
layout: portrait
27
27
margin: [0.5in, 0.67in, 0.67in, 0.67in]
28
+ # margin_inner and margin_outer keys are used for recto/verso print margins when media=prepress
28
29
margin_inner: 0.75in
29
30
margin_outer: 0.59in
30
31
size: A4
@@ -39,16 +40,16 @@ base:
39
40
#font_color: [0, 0, 0, 92%]
40
41
font_family: Noto Serif
41
42
# choose one of these font_size/line_height_length combinations
42
- font_size: 14
43
- line_height_length: 20
43
+ # font_size: 14
44
+ # line_height_length: 20
44
45
#font_size: 11.25
45
46
#line_height_length: 18
46
47
#font_size: 11.2
47
48
#line_height_length: 16
48
- # font_size: 10.5
49
+ font_size: 10.5
49
50
#line_height_length: 15
50
51
# correct line height for Noto Serif metrics
51
- # line_height_length: 12
52
+ line_height_length: 12
52
53
#font_size: 11.25
53
54
#line_height_length: 18
54
55
line_height: $base_line_height_length / $base_font_size
@@ -74,11 +75,12 @@ literal:
74
75
font_family: M+ 1mn
75
76
menu_caret_content: " \u203a "
76
77
heading:
78
+ align: left
77
79
#font_color: 181818
78
80
font_color: $base_font_color
79
- font_family: M+ 1p Fallback
81
+ font_family: $base_font_family
80
82
font_style: bold
81
- # h1 is used for part titles (book doctype only )
83
+ # h1 is used for part titles (book doctype) or the doctitle (article doctype )
82
84
h1_font_size: floor($base_font_size * 2.6)
83
85
# h2 is used for chapter titles (book doctype only)
84
86
h2_font_size: floor($base_font_size * 2.15)
@@ -115,6 +117,7 @@ block:
115
117
margin_bottom: $vertical_rhythm
116
118
caption:
117
119
align: left
120
+ font_size: $base_font_size * 0.95
118
121
font_style: italic
119
122
# FIXME perhaps set line_height instead of / in addition to margins?
120
123
margin_inside: $vertical_rhythm / 3
@@ -129,21 +132,31 @@ abstract:
129
132
line_height: $lead_line_height
130
133
font_style: italic
131
134
first_line_font_style: bold
135
+ title:
136
+ align: center
137
+ font_color: $heading_font_color
138
+ font_family: $heading_font_family
139
+ font_size: $heading_h4_font_size
140
+ font_style: $heading_font_style
132
141
admonition:
133
- border_color : $base_border_color
134
- border_width : $base_border_width
142
+ column_rule_color : $base_border_color
143
+ column_rule_width : $base_border_width
135
144
padding: [0, $horizontal_rhythm, 0, $horizontal_rhythm]
136
- # icon:
137
- # tip:
138
- # name: fa-lightbulb-o
139
- # stroke_color: 111111
140
- # size: 24
145
+ #icon:
146
+ # tip:
147
+ # name: fa-lightbulb-o
148
+ # stroke_color: 111111
149
+ # size: 24
150
+ label:
151
+ text_transform: uppercase
152
+ font_style: bold
141
153
blockquote:
142
154
font_color: $base_font_color
143
155
font_size: $base_font_size_large
144
156
border_color: $base_border_color
145
157
border_width: 5
146
- padding: [$vertical_rhythm / 2, $horizontal_rhythm, $vertical_rhythm / -2, $horizontal_rhythm + $blockquote_border_width / 2]
158
+ # FIXME disable negative padding bottom once margin collapsing is implemented
159
+ padding: [0, $horizontal_rhythm, $block_margin_bottom * -0.75, $horizontal_rhythm + $blockquote_border_width / 2]
147
160
cite_font_size: $base_font_size_small
148
161
cite_font_color: 999999
149
162
# code is used for source blocks (perhaps change to source or listing?)
@@ -153,6 +166,8 @@ code:
153
166
font_size: ceil($base_font_size)
154
167
padding: $code_font_size
155
168
line_height: 1.25
169
+ # line_gap is an experimental property to control how a background color is applied to an inline block element
170
+ line_gap: 3.8
156
171
background_color: f5f5f5
157
172
border_color: cccccc
158
173
border_radius: $base_border_radius
@@ -166,20 +181,20 @@ example:
166
181
border_color: $base_border_color
167
182
border_radius: $base_border_radius
168
183
border_width: 0.75
169
- background_color: transparent
170
- # FIXME reenable margin bottom once margin collapsing is implemented
184
+ background_color: ffffff
185
+ # FIXME reenable padding bottom once margin collapsing is implemented
171
186
padding: [$vertical_rhythm, $horizontal_rhythm, 0, $horizontal_rhythm]
172
187
image:
173
188
align: left
174
189
prose:
175
- margin_top: 0
176
- margin_bottom: $vertical_rhythm
190
+ margin_top: $block_margin_top
191
+ margin_bottom: $block_margin_bottom
177
192
sidebar:
178
- border_color: $page_background_color
193
+ background_color: eeeeee
194
+ border_color: e1e1e1
179
195
border_radius: $base_border_radius
180
196
border_width: $base_border_width
181
- background_color: eeeeee
182
- # FIXME reenable margin bottom once margin collapsing is implemented
197
+ # FIXME reenable padding bottom once margin collapsing is implemented
183
198
padding: [$vertical_rhythm, $vertical_rhythm * 1.25, 0, $vertical_rhythm * 1.25]
184
199
title:
185
200
align: center
@@ -194,35 +209,35 @@ thematic_break:
194
209
margin_top: $vertical_rhythm * 0.5
195
210
margin_bottom: $vertical_rhythm * 1.5
196
211
description_list:
197
- term_font_style: italic
212
+ term_font_style: bold
198
213
term_spacing: $vertical_rhythm / 4
199
214
description_indent: $horizontal_rhythm * 1.25
200
215
outline_list:
201
216
indent: $horizontal_rhythm * 1.5
202
- # NOTE item_spacing applies to list items that do not have complex content
203
- item_spacing: $vertical_rhythm / 2
204
217
#marker_font_color: 404040
218
+ # NOTE outline_list_item_spacing applies to list items that do not have complex content
219
+ item_spacing: $vertical_rhythm / 2
205
220
table:
206
221
background_color: $page_background_color
207
222
#head_background_color:
208
223
#head_font_color: $base_font_color
209
224
head_font_style: bold
210
- even_row_background_color: f9f9f9
211
- #odd_row_background_color:
225
+ #body_background_color:
226
+ body_stripe_background_color: f9f9f9
212
227
foot_background_color: f0f0f0
213
228
border_color: dddddd
214
229
border_width: $base_border_width
215
- # HACK accounting for line-height
216
- cell_padding: [3, 3, 6, 3]
230
+ cell_padding: 3
217
231
toc:
218
- dot_leader_color: dddddd
219
- #dot_leader_content: '. '
220
232
indent: $horizontal_rhythm
221
233
line_height: 1.4
222
- # NOTE In addition to footer, header is also supported
234
+ dot_leader:
235
+ #content: ". "
236
+ font_color: a9a9a9
237
+ #levels: 2 3
238
+ # NOTE in addition to footer, header is also supported
223
239
footer:
224
240
font_size: $base_font_size_small
225
- font_color: $base_font_color
226
241
# NOTE if background_color is set, background and border will span width of page
227
242
border_color: dddddd
228
243
border_width: 0.25
@@ -239,12 +254,18 @@ footer:
239
254
# * {chapter-title}
240
255
# * {section-title}
241
256
# * {section-or-chapter-title}
242
- recto_content:
243
- #right: '{section-or-chapter-title} | {page-number}'
244
- #right: '{document-title} | {page-number}'
245
- right: '{page-number}'
246
- #center: '{page-number}'
247
- verso_content:
248
- #left: '{page-number} | {chapter-title}'
249
- left: '{page-number}'
250
- #center: '{page-number}'
257
+ recto:
258
+ #columns: "<50% =0% >50%"
259
+ right:
260
+ content: '{page-number}'
261
+ #content: '{section-or-chapter-title} | {page-number}'
262
+ #content: '{document-title} | {page-number}'
263
+ #center:
264
+ # content: '{page-number}'
265
+ verso:
266
+ #columns: $footer_recto_columns
267
+ left:
268
+ content: $footer_recto_right_content
269
+ #content: '{page-number} | {chapter-title}'
270
+ #center:
271
+ # content: '{page-number}'
0 commit comments