From b8941e172d6a51455711292b4e2a297f599570a5 Mon Sep 17 00:00:00 2001 From: Javi Velasco Date: Wed, 18 Nov 2015 22:33:22 +0100 Subject: [PATCH] Restyle layout to use transforms in main docs --- docs/app/components/layout/main/style.scss | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/app/components/layout/main/style.scss b/docs/app/components/layout/main/style.scss index 42c11ffd..74e82f3a 100644 --- a/docs/app/components/layout/main/style.scss +++ b/docs/app/components/layout/main/style.scss @@ -19,7 +19,8 @@ right: 0; bottom: 0; left: 0; - transition: all $animation-duration $animation-curve-default; + z-index: $z-index-normal; + transition: padding $animation-duration $animation-curve-default; } .navigation { @@ -29,24 +30,25 @@ left: 0; z-index: $z-index-high; box-shadow: $documentation-left-shadow; - transition: all $animation-duration $animation-curve-default; + transition: transform $animation-duration $animation-curve-default; } .playground { position: fixed; top: $appbar-height; + right: 0; bottom: 0; z-index: $z-index-high; width: $playground-width; background: $color-background; box-shadow: $documentation-right-shadow; - transition: right $animation-duration $animation-curve-default; + transition: transform $animation-duration $animation-curve-default; } .root { &:not(.with-playground) { > .playground { - right: - ($playground-width * 1.1); + transform: translateX(100%); } > .documentation { padding-right: 0; @@ -58,7 +60,7 @@ } &.with-playground { > .playground { - right: 0; + transform: translateY(0); } > .documentation { padding-right: $playground-width;