]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Antialiasing for Firefox (v25 and later) on Mac 3849/head
authorMorten Christoffersen <mortenc@gmail.com>
Tue, 10 Dec 2013 09:27:11 +0000 (10:27 +0100)
committerMorten Christoffersen <mortenc@gmail.com>
Tue, 10 Dec 2013 09:27:11 +0000 (10:27 +0100)
As of version 25 of Firefox, antialiasing is now available on Mac using the "-moz-osx-font-smoothing: grayscale;" property. This should be added to the .antialiased class.

scss/foundation/components/_global.scss

index ba185422884c232bb25f62ea168334a3d4e0b372..dcdde09c6f10f084d9635e3c6422f28b9b01f808 100644 (file)
@@ -364,8 +364,8 @@ $cursor-text-value: text !default;
     // Font smoothing
     // Antialiased font smoothing works best for light text on a dark background.
     // Apply to single elements instead of globally to body.
-    // Note this only applies to webkit-based desktop browsers on the Mac.
-    .antialiased { -webkit-font-smoothing: antialiased; }
+    // Note this only applies to webkit-based desktop browsers and Firefox 25 (and later) on the Mac.
+    .antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
 
     // Get rid of gap under images by making them display: inline-block; by default
     img {