Skip to content

Commit 07b9904

Browse files
authored
Merge pull request #31 from riscv/30-all-heading-levels-have-same-font-size
Update heading and literal blocks font sizes.
2 parents 35203a4 + b0d3037 commit 07b9904

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

themes/riscv-pdf.yml

+10-15
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ page:
6060
size: A4
6161
base:
6262
font-family: body
63-
font_size: 11.5
63+
font_size: 11
6464
line_height_length: 12
6565
font_style: normal
6666
font_size_large: round($base_font_size * 1.25)
6767
font_size_small: round($base_font_size * 0.85)
68-
font_size_min: $base_font_size * 0.75
68+
font_size_min: 0.75em
6969
border_radius: 3
7070
border_width: 0.25
7171
border_color: EEEEEE
@@ -82,7 +82,7 @@ codespan:
8282
#font_family: Droid Fallback
8383
font_family: JetBrainsMono
8484
font_style: normal
85-
# font-size: 11.5
85+
font-size: $base_font_size_min
8686
menu_caret_content: ' <font size="1.15em"><color rgb="000000">›</color></font> '
8787
heading:
8888
align: left
@@ -93,17 +93,12 @@ heading:
9393
font_color: 000000
9494
font_family: headings
9595
font_style: bold
96-
h1_font_size: floor($base_font_size * 2.8)
97-
# h2 is used for chapter titles (book doctype only)
98-
#h2_font_size: floor($base_font_size * 2.0)
99-
h2-font-size: 11.5
100-
#h3_font_size: round($base_font_size * 1.7)
101-
h3-font-size: 11.5
102-
#h4_font_size: $base_font_size_large
103-
h4-font-size: 11.5
104-
#h5_font_size: $base_font_size
105-
h5-font-size: 11.5
106-
h6_font_size: $base_font_size_small
96+
h1_font_size: 2em
97+
h2-font-size: 1.5em
98+
h3-font-size: 1.17em
99+
h4-font-size: 1em
100+
h5-font-size: .83em
101+
h6_font_size: .67em
107102
title_page:
108103
align: center
109104
logo:
@@ -206,7 +201,7 @@ code:
206201
font-color: 000000
207202
font_family: $codespan_font_family
208203
#font_size: ceil($base_font_size)
209-
font-size: 11
204+
font-size: 10
210205
padding: $code_font_size
211206
line_height: 1.15
212207
# line_gap is an experimental property to control how a background color is applied to an inline block element

0 commit comments

Comments
 (0)