From 3cadd8b957223a16eb076101a649ac90ed752e1f Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 29 Mar 2017 22:56:25 -0400 Subject: [PATCH] Move the font normalization into the font mixins --- resources/assets/sass/_fonts.scss | 6 ++++++ resources/assets/sass/app.scss | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/assets/sass/_fonts.scss b/resources/assets/sass/_fonts.scss index 3c2dcef..f93b794 100644 --- a/resources/assets/sass/_fonts.scss +++ b/resources/assets/sass/_fonts.scss @@ -11,6 +11,12 @@ font-style: normal; } +@mixin normalize-font { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + @mixin font-sans { + @include normalize-font; font-family: OpenSans-Regular, Arial, Helvetica, sans-serif; } diff --git a/resources/assets/sass/app.scss b/resources/assets/sass/app.scss index e1fc692..4fd455b 100644 --- a/resources/assets/sass/app.scss +++ b/resources/assets/sass/app.scss @@ -34,8 +34,6 @@ body { @include font-sans; width: 100%; color: $c-text; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -webkit-overflow-scrolling: touch; @media (max-width: $grid-float-breakpoint-max) { padding-top: $nav-height-mobile; } }