From 3432413020c17709e5a668795056eef19ecc9b65 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 13 Oct 2022 21:08:32 +0800 Subject: [PATCH] refactor(mobile): resume footer slide animation & content min-height --- _sass/addon/commons.scss | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index ff93f7e..5965b28 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -1195,6 +1195,10 @@ $sidebar-display: "sidebar-display"; } } + #main-wrapper { + min-height: calc(100vh - #{$footer-height-mobile}); + } + #core-wrapper { min-height: calc(100vh - #{$topbar-height} - #{$footer-height-mobile}) !important; @@ -1259,13 +1263,18 @@ $sidebar-display: "sidebar-display"; overflow-x: hidden; } + footer { + @include slide; + } + [#{$sidebar-display}] { #sidebar { transform: translateX(0); } #topbar-wrapper, - #main-wrapper { + #main-wrapper, + footer { transform: translateX(#{$sidebar-width}); } }