Standardizes heading font size calculation
Removes configurable heading and small font sizes, and calculates the heading font size based on the body font size to ensure consistency across templates.
This commit is contained in:
4 files changed
+6
-14
No files matched your search
@@ -68,8 +68,6 @@
|
|||||||
// Support for UI-configurable options
|
// Support for UI-configurable options
|
||||||
heading_font: none,
|
heading_font: none,
|
||||||
monospace_font: none,
|
monospace_font: none,
|
||||||
heading_fontsize: none,
|
|
||||||
small_fontsize: none,
|
|
||||||
margin_top: none,
|
margin_top: none,
|
||||||
margin_right: none,
|
margin_right: none,
|
||||||
margin_bottom: none,
|
margin_bottom: none,
|
||||||
@@ -160,7 +158,7 @@
|
|||||||
("SF Pro Text", "Helvetica Neue", "Arial")
|
("SF Pro Text", "Helvetica Neue", "Arial")
|
||||||
}
|
}
|
||||||
|
|
||||||
let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 15pt }
|
let heading-fontsize = body-fontsize * 1.5
|
||||||
|
|
||||||
show heading.where(level: 1): it => block(
|
show heading.where(level: 1): it => block(
|
||||||
width: 100%,
|
width: 100%,
|
||||||
|
|||||||
@@ -64,8 +64,6 @@
|
|||||||
// Support for UI-configurable options
|
// Support for UI-configurable options
|
||||||
heading_font: none,
|
heading_font: none,
|
||||||
monospace_font: none,
|
monospace_font: none,
|
||||||
heading_fontsize: none,
|
|
||||||
small_fontsize: none,
|
|
||||||
margin_top: 9cm,
|
margin_top: 9cm,
|
||||||
margin_right: none,
|
margin_right: none,
|
||||||
margin_bottom: none,
|
margin_bottom: none,
|
||||||
@@ -149,7 +147,7 @@
|
|||||||
("SF Pro Text", "Helvetica Neue", "Arial")
|
("SF Pro Text", "Helvetica Neue", "Arial")
|
||||||
}
|
}
|
||||||
|
|
||||||
let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 14pt }
|
let heading-fontsize = body-fontsize * 1.5
|
||||||
|
|
||||||
show heading.where(level: 1): it => block(
|
show heading.where(level: 1): it => block(
|
||||||
width: 100%,
|
width: 100%,
|
||||||
|
|||||||
@@ -63,8 +63,6 @@
|
|||||||
// Support for UI-configurable options
|
// Support for UI-configurable options
|
||||||
heading_font: none,
|
heading_font: none,
|
||||||
monospace_font: none,
|
monospace_font: none,
|
||||||
heading_fontsize: none,
|
|
||||||
small_fontsize: none,
|
|
||||||
margin_top: none,
|
margin_top: none,
|
||||||
margin_right: none,
|
margin_right: none,
|
||||||
margin_bottom: none,
|
margin_bottom: none,
|
||||||
@@ -142,7 +140,7 @@
|
|||||||
("SF Pro Text", "Helvetica Neue", "Arial")
|
("SF Pro Text", "Helvetica Neue", "Arial")
|
||||||
}
|
}
|
||||||
|
|
||||||
let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 13pt }
|
let heading-fontsize = body-fontsize * 1.4
|
||||||
|
|
||||||
show heading.where(level: 1): it => block(
|
show heading.where(level: 1): it => block(
|
||||||
width: 100%,
|
width: 100%,
|
||||||
|
|||||||
@@ -74,8 +74,6 @@
|
|||||||
// Support for UI-configurable options
|
// Support for UI-configurable options
|
||||||
heading_font: none,
|
heading_font: none,
|
||||||
monospace_font: none,
|
monospace_font: none,
|
||||||
heading_fontsize: none,
|
|
||||||
small_fontsize: none,
|
|
||||||
margin_top: none,
|
margin_top: none,
|
||||||
margin_right: none,
|
margin_right: none,
|
||||||
margin_bottom: none,
|
margin_bottom: none,
|
||||||
@@ -180,7 +178,7 @@
|
|||||||
inset: 12pt,
|
inset: 12pt,
|
||||||
stroke: (left: 4pt + rgb("#1f2937")),
|
stroke: (left: 4pt + rgb("#1f2937")),
|
||||||
)[
|
)[
|
||||||
#set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: 18pt, weight: "bold", fill: rgb("#1f2937"))
|
#set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: body-fontsize * 1.5, weight: "bold", fill: rgb("#1f2937"))
|
||||||
#grid(
|
#grid(
|
||||||
columns: (auto, 1fr),
|
columns: (auto, 1fr),
|
||||||
column-gutter: 12pt,
|
column-gutter: 12pt,
|
||||||
@@ -196,7 +194,7 @@
|
|||||||
inset: (bottom: 6pt),
|
inset: (bottom: 6pt),
|
||||||
stroke: (bottom: 1pt + rgb("#e5e7eb")),
|
stroke: (bottom: 1pt + rgb("#e5e7eb")),
|
||||||
)[
|
)[
|
||||||
#set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: 14pt, weight: "semibold", fill: rgb("#374151"))
|
#set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: body-fontsize * 1.3, weight: "semibold", fill: rgb("#374151"))
|
||||||
#h(0.8em)
|
#h(0.8em)
|
||||||
#it.body
|
#it.body
|
||||||
]
|
]
|
||||||
@@ -206,7 +204,7 @@
|
|||||||
below: 0.8em,
|
below: 0.8em,
|
||||||
above: 1.5em,
|
above: 1.5em,
|
||||||
)[
|
)[
|
||||||
#set text(size: 12pt, weight: "medium", fill: rgb("#4b5563"))
|
#set text(size: body-fontsize * 1.1, weight: "medium", fill: rgb("#4b5563"))
|
||||||
#h(0.5em)
|
#h(0.5em)
|
||||||
#it.body
|
#it.body
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in new issue
Block a user