Skip to content

Commit

Permalink
Use Compass 1.0's improved establish-baseline() mixin. #18
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnAlbin committed Jan 21, 2014
1 parent a79de09 commit 647e5f8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions _normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,26 +116,26 @@ template {
Base
========================================================================== */

@if not $strict-normalize or support-legacy-browser(ie, "7") {
/**
* Establish a vertical rhythm unit using $base-font-size, $base-line-height,
* and $rhythm-unit variables. Also, correct text resizing oddly in IE 6/7 when
* body `font-size` is set using `em` units.
*/

@include establish-baseline();
}

/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
* 3. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
* `em` units.
*/

html {
font-family: $base-font-family; /* 1 */
@if not $strict-normalize or support-legacy-browser(ie, "7") {
font-size: 100% * ($base-font-size / 16px); /* 3 */
}
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */

@if not $strict-normalize {
/* Establish a vertical rhythm unit using $base-line-height. */
@include adjust-leading-to(1);
}
}

@if support-legacy-browser(ie, "7") {
Expand Down

0 comments on commit 647e5f8

Please sign in to comment.