diff options
Diffstat (limited to 'src/scss/utils/mixins/_sidebar.scss')
-rwxr-xr-x | src/scss/utils/mixins/_sidebar.scss | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/scss/utils/mixins/_sidebar.scss b/src/scss/utils/mixins/_sidebar.scss index ef6e5cb..d5ca2ec 100755 --- a/src/scss/utils/mixins/_sidebar.scss +++ b/src/scss/utils/mixins/_sidebar.scss @@ -41,9 +41,8 @@ } } // Used to animate the sidebar (pushed effect) - @include prefix(transition, 'margin-left 0.5s', 'webkit' 'moz'); &.pushed { - margin-left: #{map-get($sidebar, md-screen-width)}; + @include prefix(transform, translate3d(#{map-get($sidebar, md-screen-width)}, 0, 0), 'webkit' 'moz'); } } @@ -104,9 +103,8 @@ } } // Used to animate the sidebar (pushed effect) - @include prefix(transition, 'margin-left 0.5s', 'webkit' 'moz'); &.pushed { - margin-left: #{map-get($sidebar, lg-screen-width)}; + @include prefix(transform, translate3d(#{map-get($sidebar, lg-screen-width)}, 0, 0), 'webkit' 'moz'); } } @@ -196,8 +194,7 @@ } } // Used to animate the sidebar (pushed effect) - @include prefix(transition, 'width 0.5s, margin-left 0.5s', 'webkit' 'moz'); &.pushed { - margin-left: #{map-get($sidebar, xlg-screen-width)}; + @include prefix(transform, translate3d(#{map-get($sidebar, xlg-screen-width)}, 0, 0), 'webkit' 'moz'); } } |