mirror of https://github.com/IanLunn/Hover.git
Removed font smoothing hacks to fix issue in Windows 10/IE 11
This commit is contained in:
parent
d99f68df0c
commit
673efca112
File diff suppressed because one or more lines are too long
1328
css/hover.css
1328
css/hover.css
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue