From c24684fa8be9b5962527a3eb0f2f92d051cee121 Mon Sep 17 00:00:00 2001 From: tparnell Date: Sat, 2 Feb 2019 12:28:55 -0500 Subject: [PATCH] fix menu animation --- src/TerribleDev.Blog.Web/wwwroot/css/site.css | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/TerribleDev.Blog.Web/wwwroot/css/site.css b/src/TerribleDev.Blog.Web/wwwroot/css/site.css index a4ee49b..64cc0a0 100644 --- a/src/TerribleDev.Blog.Web/wwwroot/css/site.css +++ b/src/TerribleDev.Blog.Web/wwwroot/css/site.css @@ -112,18 +112,19 @@ a { color: white; width: 250px; padding-top: 20px; - transition: width ease-in-out .5s; + transition: left ease-in .3s; + left: 0; z-index: 100; overflow: auto; } - .navBar.withBody > * > * > #closeNav { + .navBar.withBody #closeNav { display: none; } .navBar.withBody.hide { - width: 250px; + left: 0; } .navBar.hide { - width: 0; + left: -250px; } .navBar > * { @@ -237,16 +238,18 @@ a.link-unstyled, div.link-unstyled, span.link-unstyled, svg.link-unstyled { h5 { font-size: 1.8rem; } - - .navBar { - width: 100%; + .navBar.hide { + left: -100vw; } .navBar.withBody.hide { - width: 0; + left: -100vw; } .navBar.withBody > * > * > #closeNav { display: unset; } + .navBar { + width: 100%; + } .bodyWithNav { width: initial;