Simplifies font stacks in templates
Refines font configurations in article and modern templates. Removes redundant "serif" and "sans-serif" generic families from the font stacks. This change results in cleaner and more efficient font declarations.
This commit is contained in:
2 files changed
+9
-9
No files matched your search
@@ -61,7 +61,7 @@
|
|||||||
paper: "a4",
|
paper: "a4",
|
||||||
margin: (x: 2cm, y: 2.5cm),
|
margin: (x: 2cm, y: 2.5cm),
|
||||||
cols: 2,
|
cols: 2,
|
||||||
font: ("Concourse OT", "Georgia", "Times New Roman", "serif"),
|
font: ("Concourse OT", "Georgia", "Times New Roman"),
|
||||||
fontsize: 11pt,
|
fontsize: 11pt,
|
||||||
sectionnumbering: none,
|
sectionnumbering: none,
|
||||||
pagenumbering: "1",
|
pagenumbering: "1",
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
// Mixed fonts - serif body, sans-serif headings
|
// Mixed fonts - serif body, sans-serif headings
|
||||||
// Use UI-configured font if available, otherwise use template default
|
// Use UI-configured font if available, otherwise use template default
|
||||||
let body-font = if font != none and type(font) == str {
|
let body-font = if font != none and type(font) == str {
|
||||||
(font, "Concourse OT", "Georgia", "Times New Roman", "serif")
|
(font, "Concourse OT", "Georgia", "Times New Roman")
|
||||||
} else {
|
} else {
|
||||||
font
|
font
|
||||||
}
|
}
|
||||||
@@ -153,11 +153,11 @@
|
|||||||
// Magazine-style heading styles
|
// Magazine-style heading styles
|
||||||
// Use UI-configured heading font and size if available
|
// Use UI-configured heading font and size if available
|
||||||
let heading-font = if heading_font != none and type(heading_font) == str {
|
let heading-font = if heading_font != none and type(heading_font) == str {
|
||||||
(heading_font, "SF Pro Text", "Helvetica Neue", "Arial", "sans-serif")
|
(heading_font, "SF Pro Text", "Helvetica Neue", "Arial")
|
||||||
} else if heading_font != none {
|
} else if heading_font != none {
|
||||||
heading_font
|
heading_font
|
||||||
} else {
|
} else {
|
||||||
("SF Pro Text", "Helvetica Neue", "Arial", "sans-serif")
|
("SF Pro Text", "Helvetica Neue", "Arial")
|
||||||
}
|
}
|
||||||
|
|
||||||
let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 15pt }
|
let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 15pt }
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
// Authors in magazine style
|
// Authors in magazine style
|
||||||
if authors != () and authors != none [
|
if authors != () and authors != none [
|
||||||
#align(center, text(
|
#align(center, text(
|
||||||
font: ("SF Pro Text", "Helvetica Neue", "Arial", "sans-serif"),
|
font: ("SF Pro Text", "Helvetica Neue", "Arial"),
|
||||||
13pt,
|
13pt,
|
||||||
style: "italic",
|
style: "italic",
|
||||||
fill: rgb("#64748b")
|
fill: rgb("#64748b")
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
paper: "a4",
|
paper: "a4",
|
||||||
margin: (x: 1.8cm, y: 1.5cm),
|
margin: (x: 1.8cm, y: 1.5cm),
|
||||||
cols: 1,
|
cols: 1,
|
||||||
font: ("Concourse OT", "Helvetica Neue", "Arial", "sans-serif"),
|
font: ("Concourse OT", "Helvetica Neue", "Arial"),
|
||||||
fontsize: 10pt,
|
fontsize: 10pt,
|
||||||
sectionnumbering: none,
|
sectionnumbering: none,
|
||||||
pagenumbering: none, // Single page doesn't need page numbers
|
pagenumbering: none, // Single page doesn't need page numbers
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
// Modern sans-serif fonts
|
// Modern sans-serif fonts
|
||||||
// Use UI-configured font if available, otherwise use template default
|
// Use UI-configured font if available, otherwise use template default
|
||||||
let body-font = if font != none and type(font) == str {
|
let body-font = if font != none and type(font) == str {
|
||||||
(font, "Concourse OT", "Helvetica Neue", "Arial", "sans-serif")
|
(font, "Concourse OT", "Helvetica Neue", "Arial")
|
||||||
} else {
|
} else {
|
||||||
font
|
font
|
||||||
}
|
}
|
||||||
@@ -135,11 +135,11 @@
|
|||||||
// Modern heading styles with color accents
|
// Modern heading styles with color accents
|
||||||
// Use UI-configured heading font and size if available
|
// Use UI-configured heading font and size if available
|
||||||
let heading-font = if heading_font != none and type(heading_font) == str {
|
let heading-font = if heading_font != none and type(heading_font) == str {
|
||||||
(heading_font, "SF Pro Text", "Helvetica Neue", "Arial", "sans-serif")
|
(heading_font, "SF Pro Text", "Helvetica Neue", "Arial")
|
||||||
} else if heading_font != none {
|
} else if heading_font != none {
|
||||||
heading_font
|
heading_font
|
||||||
} else {
|
} else {
|
||||||
("SF Pro Text", "Helvetica Neue", "Arial", "sans-serif")
|
("SF Pro Text", "Helvetica Neue", "Arial")
|
||||||
}
|
}
|
||||||
|
|
||||||
let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 13pt }
|
let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 13pt }
|
||||||
|
|||||||
Reference in new issue
Block a user