Removed font smoothing hacks to fix issue in Windows 10/IE 11

This commit is contained in:
IanLunn 2016-10-21 14:49:57 +01:00
parent d99f68df0c
commit 673efca112
5 changed files with 395 additions and 964 deletions

4
css/hover-min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

7
css/hover.css.map Normal file

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,8 @@
.hardwareAccel() {
// Improve performance on mobile/tablet devices
.prefixed(transform, translateZ(0));
// Perspective reduces blurryness of text in Chrome
.prefixed(transform, perspective(1px) translateZ(0));
}
.improveAntiAlias() {
@ -12,12 +13,6 @@
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.fontSmooth() {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
}
.forceBlockLevel() {
// Transforms need to be block-level to work
display: inline-block;
@ -28,5 +23,4 @@
.forceBlockLevel();
.hardwareAccel();
.improveAntiAlias();
.fontSmooth();
}

View File

@ -4,7 +4,8 @@
@mixin hardwareAccel() {
// Improve performance on mobile/tablet devices
@include prefixed(transform, translateZ(0));
// Perspective reduces blurryness of text in Chrome
@include prefixed(transform, perspective(1px) translateZ(0));
}
@mixin improveAntiAlias() {
@ -12,12 +13,6 @@
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
@mixin fontSmooth() {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
}
@mixin forceBlockLevel() {
// Transforms need to be block-level to work
display: inline-block;
@ -28,5 +23,4 @@
@include forceBlockLevel();
@include hardwareAccel();
@include improveAntiAlias();
@include fontSmooth();
}