Skip to content

Commit

Permalink
Use boolean for font-smoothig mixin. (froala#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
m5o authored and stefanneculai committed Dec 8, 2018
1 parent 0c705f4 commit f877d84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions src/scss/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
@mixin font-smoothing($value: on) {
@if $value == on {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@mixin font-smoothing($value: false) {
@if $value {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

@else {
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;
}
}
2 changes: 1 addition & 1 deletion src/scss/froala_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ p {
}

.fdb-block {
@include font-smoothing(on);
@include font-smoothing(true);
text-rendering: optimizelegibility;
padding: $block-padding 0;
position: relative;
Expand Down

0 comments on commit f877d84

Please sign in to comment.