Skip to content

Commit

Permalink
Add default $base-font-family config
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfyre committed Mar 14, 2018
1 parent dcb3776 commit efb15f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
`$base-font-size` : Base font-size as a percentage, applied to the root.
Defaults to `100%`.

`$base-line-height`: Base line-heigath as unitless ratio, applied to the root.
Defaults to `1.15`.
`$base-line-height`: Base line-height as unitless ratio, applied to the root.

`$base-font-family`: Base font-family stack, applied to the root. Defaults to
`Times, serif`.


<a href="https://github.com/necolas/normalize.css"><img
Expand Down
2 changes: 2 additions & 0 deletions normalize/_document.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

$base-font-size: 100% !default;
$base-line-height: 1.15 !default;
$base-font-family: Times, serif !default;

/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/

html {
font-family: $base-font-family;
font-size: $base-font-size;
line-height: $base-line-height; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
Expand Down

0 comments on commit efb15f5

Please sign in to comment.