Skip to content

Commit

Permalink
Specify base font-size in em units
Browse files Browse the repository at this point in the history
This ensures text-resizing in all browsers, while also respecting user
preferences for a different default browser text-size.
  • Loading branch information
karlstolley committed Nov 19, 2019
1 parent c706004 commit 646155d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _sass/_ed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ body {

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

Expand Down
2 changes: 1 addition & 1 deletion assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sitemap: false
/* Fonts */
$main-font: "Palatino Linotype", "Book Antiqua", Palatino, serif;
$heading-font: sans-serif;
$regular-font-size: 20px;
$regular-font-size: 1.25em; /* 20px / 16px = 1.25em; support text resizing in all browsers */


/*
Expand Down

0 comments on commit 646155d

Please sign in to comment.