From a0945807091d5ac93eed0976a4f1697947a20682 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 31 Aug 2021 16:33:30 +0800 Subject: [PATCH] fix style --- assets/stylesheets/template/layout/header.scss | 1 + assets/stylesheets/template/modules/menu.scss | 3 +++ 2 files changed, 4 insertions(+) diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss index 1afd5c1..c336196 100644 --- a/assets/stylesheets/template/layout/header.scss +++ b/assets/stylesheets/template/layout/header.scss @@ -427,6 +427,7 @@ .modules-menu .modules-menu-level-0 > li:hover .modules-menu-level-1{ @media (min-width: $screen-sm){ visibility: visible; + max-height: none; opacity: 1; padding:1em 20% 3em; transition-duration: opacity 0.3s cubic-bezier(0.48, 0.01, 0.5, 0.99),visibility 0.1s linear; diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss index fb2080e..36e52ce 100644 --- a/assets/stylesheets/template/modules/menu.scss +++ b/assets/stylesheets/template/modules/menu.scss @@ -180,11 +180,14 @@ left:0; display: flex; visibility: hidden; + position: fixed!important; opacity: 0; width: 100vw; box-shadow: 2px 2px 5px #00000033; margin: 0.8em 0; padding: 0; + max-height: 0; + overflow: hidden; transition-duration: 0.5s; }