Skip to content

Commit 646155d

Browse files
committed
Specify base font-size in em units
This ensures text-resizing in all browsers, while also respecting user preferences for a different default browser text-size.
1 parent c706004 commit 646155d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_sass/_ed.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ body {
3737

3838
html {
3939
font-family: $main-font;
40-
font-size: 16px;
40+
font-size: 1em; /* 16px; specify in ems to support text resizing in all browsers */
4141
line-height: 1.5;
4242
}
4343

assets/css/style.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sitemap: false
1212
/* Fonts */
1313
$main-font: "Palatino Linotype", "Book Antiqua", Palatino, serif;
1414
$heading-font: sans-serif;
15-
$regular-font-size: 20px;
15+
$regular-font-size: 1.25em; /* 20px / 16px = 1.25em; support text resizing in all browsers */
1616

1717

1818
/*

0 commit comments

Comments
 (0)