Skip to content

Commit 50d8d9e

Browse files
committed
Create fontSmoothing.scss
1 parent a3a9ab5 commit 50d8d9e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

fontSmoothing.scss

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// =======================
2+
// Font smoothing
3+
// http://maximilianhoffmann.com/posts/better-font-rendering-on-osx
4+
// =======================
5+
6+
@mixin font-smoothing($value: on) {
7+
@if $value == on {
8+
-webkit-font-smoothing: antialiased;
9+
-moz-osx-font-smoothing: grayscale;
10+
}
11+
@else {
12+
-webkit-font-smoothing: subpixel-antialiased;
13+
-moz-osx-font-smoothing: auto;
14+
}
15+
}
16+
17+
// dark on light
18+
// @include font-smoothing(off);
19+
20+
// light on dark
21+
// @include font-smoothing(on);

0 commit comments

Comments
 (0)