From 1cec14f14d713fac5b91aaf6fafe2a7a75cea1ec Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 14 Mar 2014 14:05:30 +0200 Subject: [PATCH] Use `translate3d` instead of `translateX` and `translateY`. --- sass/docs.scss | 8 ++++---- sass/push.scss | 2 +- sass/table-views.scss | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sass/docs.scss b/sass/docs.scss index 1f52b54..3f8d17f 100644 --- a/sass/docs.scss +++ b/sass/docs.scss @@ -109,7 +109,7 @@ body { top: 50% !important; right: 15px !important; margin-top: 0 !important; - @include transform(translateY(-50%) !important); + @include transform(translate3d(0, -50%, 0) !important); } } @@ -127,7 +127,7 @@ body { font-size: 22px; font-weight: 400; z-index: 20; - @include transform(translateX(-50%)); + @include transform(translate3d(-50%, 0, 0)); } .docs-nav { .docs-nav-trigger { @@ -181,7 +181,7 @@ body { .docs-title { position: static; float: left; - @include transform(translateX(0)); + @include transform(translate3d(0, 0, 0)); } // Docs nav @@ -327,7 +327,7 @@ body { @media screen and (min-width: 768px) { .docs-header-content { top: 30%; - @include transform(translateY(-50%)); + @include transform(translate3d(0, -50%, 0)); .btn { display: inline-block; diff --git a/sass/push.scss b/sass/push.scss index 0a3fa4c..d22a3a3 100644 --- a/sass/push.scss +++ b/sass/push.scss @@ -48,7 +48,7 @@ text-decoration: none; line-height: 1; -webkit-font-smoothing: antialiased; - @include transform(translateY(-50%)); + @include transform(translate3d(0, -50%, 0)); } } .navigate-left:after, diff --git a/sass/table-views.scss b/sass/table-views.scss index a76d99a..603e45e 100644 --- a/sass/table-views.scss +++ b/sass/table-views.scss @@ -87,7 +87,7 @@ position: absolute; top: 50%; right: 15px; - @include transform(translateY(-50%)); + @include transform(translate3d(0, -50%, 0)); } // If the cell has a chevron, give some more room.