Skip to content

Commit 4f370cc

Browse files
committed
Styles: Aligned fonts set on content and headers for exports
During review of #6069
1 parent 743a21a commit 4f370cc

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

resources/sass/export-styles.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ html, body {
1212
}
1313

1414
body {
15-
font-family: 'DejaVu Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
1615
margin: 0;
1716
padding: 0;
1817
display: block;
1918
}
2019

20+
// Set fonts to common system fonts, starting with DejaVu Sans due to support in DOMPDF
21+
body, h1, h2, h3, h4, h5, h6 {
22+
font-family: 'DejaVu Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
23+
}
24+
2125
table {
2226
border-spacing: 0;
2327
border-collapse: collapse;
@@ -64,11 +68,6 @@ body.export-format-pdf {
6468
font-size: 14px;
6569
line-height: 1.2;
6670

67-
// Ensure heading glyph coverage for PDF engines that don't handle CSS vars well.
68-
h1, h2, h3, h4, h5, h6 {
69-
font-family: 'DejaVu Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
70-
}
71-
7271
h1, h2, h3, h4, h5, h6 {
7372
line-height: 1.2;
7473
}

0 commit comments

Comments
 (0)